Skip to content

Commit

Permalink
prototypes 101
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 12, 2016
1 parent 6ae541e commit 2484820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ API.Builder.prototype.bundle = function(expressionOrTree, outFile, opts) {
if (!('normalize' in opts))
opts.normalize = true;

return bundle.Builder.bundle.call(this, expressionOrTree, opts);
return bundle.Builder.prototype.bundle.call(this, expressionOrTree, opts);
};

API.Builder.prototype.buildStatic = function(expressionOrTree, outFile, opts) {
Expand All @@ -131,7 +131,7 @@ API.Builder.prototype.buildStatic = function(expressionOrTree, outFile, opts) {
if (!('format' in opts))
opts.format = 'global';

return bundle.Builder.buildStatic.call(this, expressionOrTree, opts);
return bundle.Builder.prototype.buildStatic.call(this, expressionOrTree, opts);
};


Expand Down

0 comments on commit 2484820

Please sign in to comment.