Skip to content

Commit

Permalink
facets: use prototype from appliesTo if schema does not provide one
Browse files Browse the repository at this point in the history
possibly fixes persvr#21
  • Loading branch information
neonstalwart committed Dec 29, 2011
1 parent 6539553 commit bff4fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facet.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ exports.Permissive = function(appliesTo, schema){
schema = schema || {quality:0.5};
var appliesToPrototype = appliesTo.prototype;
if(appliesToPrototype){
var schemaPrototype = schema.prototype = schema.prototype || {};
var schemaPrototype = schema.prototype = schema.prototype || appliesToPrototype;
schemaPrototype.__noSuchMethod__ = function(name, source, args, onlyIfAvailable){
if(appliesToPrototype[name]){
return facet.wrap(appliesToPrototype[name].apply(source, args));
Expand Down

0 comments on commit bff4fa4

Please sign in to comment.