Skip to content

Commit

Permalink
add proto versions of methods to library for ES7 bind syntax, close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 14, 2015
1 parent 7dc41f5 commit f1d2437
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/library/modules/$.def.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function $def(type, name, source){
else exp = type & $def.P && isFunction(out) ? ctx(Function.call, out) : out;
// export
$.hide(exports, key, exp);
if(type & $def.P)(exports.prototype || (exports.prototype = {}))[key] = out;
}
}
module.exports = $def;

0 comments on commit f1d2437

Please sign in to comment.