Skip to content

Commit

Permalink
fix jshint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bmomberger-bitovi committed May 1, 2017
1 parent b2c10a8 commit fbf76d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions can-define.js
Expand Up @@ -54,7 +54,8 @@ var eachPropertyDescriptor = function(map, cb){

module.exports = define = ns.define = function(objPrototype, defines, baseDefine) {
// default property definitions on _data
var dataInitializers = Object.create(baseDefine ? baseDefine.dataInitializers : null),
var prop,
dataInitializers = Object.create(baseDefine ? baseDefine.dataInitializers : null),
// computed property definitions on _computed
computedInitializers = Object.create(baseDefine ? baseDefine.computedInitializers : null);

Expand All @@ -73,7 +74,7 @@ module.exports = define = ns.define = function(objPrototype, defines, baseDefine
// with a `_data` object local to the instance. It also defines getters
// for any value that has a default value.
if(objPrototype.hasOwnProperty("_data")) {
for (var prop in dataInitializers) {
for (prop in dataInitializers) {
replaceWith(objPrototype._data, prop, dataInitializers[prop].bind(objPrototype), true);
}
} else {
Expand Down

0 comments on commit fbf76d1

Please sign in to comment.