diff --git a/ampersand-state.js b/ampersand-state.js index a2dd10b..33a9ae6 100644 --- a/ampersand-state.js +++ b/ampersand-state.js @@ -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; }