Skip to content

Commit

Permalink
fix(plugins): set es5 computed properties correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedshuhel committed Jan 28, 2015
1 parent 3b011da commit f1b140d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Plugins {
Function.prototype.computed = function(computedProperties){
for(var key in computedProperties){
if(computedProperties.hasOwnProperty(key)){
Object.defineProperty(this.prototype, key, { get: prop[key], enumerable: true });
Object.defineProperty(this.prototype, key, { get: computedProperties[key], enumerable: true });
}
}
}
Expand Down Expand Up @@ -115,4 +115,4 @@ export class Plugins {

return next();
}
}
}

0 comments on commit f1b140d

Please sign in to comment.