Skip to content

Commit

Permalink
fix(behavior-instance): classic loop, function var bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 8, 2015
1 parent 8ec8630 commit 359749a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/behavior-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ export class BehaviorInstance {
skipSelfSubscriber = behaviorType.handlesBind,
attributes = instruction.attributes,
boundProperties = this.boundProperties = [],
properties = behaviorType.properties,
i, ii, prop, selfSubscriber, observer, info, attribute;

for(i = 0, ii = properties.length; i < ii; ++i){
prop = properties[i];
properties = behaviorType.properties;

properties.forEach(prop => {
var selfSubscriber, observer, info, attribute;

if(prop.changeHandler){
selfSubscriber = (newValue, oldValue) => executionContext[prop.changeHandler](newValue, oldValue);
}
Expand Down Expand Up @@ -51,7 +50,7 @@ export class BehaviorInstance {

observer.publishing = true;
observer.selfSubscriber = selfSubscriber;
}
});
}

created(context){
Expand Down

0 comments on commit 359749a

Please sign in to comment.