Skip to content

Commit

Permalink
don't bind this context when calling dataType.set
Browse files Browse the repository at this point in the history
  • Loading branch information
chesles committed Oct 30, 2015
1 parent 2466cee commit 89b01fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ampersand-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ assign(Base.prototype, Events, {

// check type if we have one
if (dataType && dataType.set) {
cast = dataType.set.call(this, newVal, options);
cast = dataType.set(newVal);
newVal = cast.val;
newType = cast.type;
}
Expand Down

0 comments on commit 89b01fd

Please sign in to comment.