Skip to content

Commit

Permalink
[Bugfix beta] ensure Binding doesn’t change shape on us by predefinin…
Browse files Browse the repository at this point in the history
…g its members
  • Loading branch information
stefanpenner committed Jul 20, 2014
1 parent b805c1c commit de18087
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/ember-metal/lib/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ function getWithGlobals(obj, path) {
// BINDING
//

var Binding = function(toPath, fromPath) {
function Binding(toPath, fromPath) {
this._direction = 'fwd';
this._from = fromPath;
this._to = toPath;
this._directionMap = Map.create();
};
this._readyToSync = undefined;
this._oneWay = undefined;
}

/**
@class Binding
Expand Down Expand Up @@ -324,7 +326,6 @@ mixinProperties(Binding, {
}

});

/**
An `Ember.Binding` connects the properties of two objects so that whenever
the value of one property changes, the other property will be changed also.
Expand Down

0 comments on commit de18087

Please sign in to comment.