Skip to content

Commit

Permalink
Improve readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
null-a committed Apr 17, 2016
1 parent b7f2f2f commit cc0f5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erp.ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ function makeErpType(options) {
erp.prototype.constructor = erp;
erp.prototype.name = options.name;

var methods = _.pick(options, methodNames);
_.extendOwn.apply(_, _.flatten([erp.prototype, options.mixins, methods], true));
_.extendOwn.apply(_, [erp.prototype].concat(options.mixins));
_.extendOwn(erp.prototype, _.pick(options, methodNames));

['sample', 'score'].forEach(function(method) {
if (!erp.prototype[method]) {
Expand Down

0 comments on commit cc0f5ef

Please sign in to comment.