reactivity
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -32,6 +32,5 @@ // Generated by CoffeeScript 1.6.3 | ||
Base.prototype.transition = function(state, f) { | ||
var handler, t; | ||
t = "" + this.state + " -> " + state; | ||
var handler; | ||
if (!(state in this.states)) { | ||
throw new Error('Invalid Transition ' + t); | ||
throw new Error('Invalid Transition ' + ("" + this.state + " -> " + state)); | ||
} | ||
@@ -38,0 +37,0 @@ if (this.state === 'ready') { |
@@ -33,7 +33,9 @@ // Generated by CoffeeScript 1.6.3 | ||
Evaluation.prototype.monitor = function() { | ||
return this.m != null ? this.m : this.m = new Monitor; | ||
}; | ||
Evaluation.prototype.notifier = function() { | ||
return (function(m) { | ||
var _ref; | ||
return (_ref = m.evaluation$create_notifier()) != null ? _ref.public_api : void 0; | ||
})(this.m != null ? this.m : this.m = new Monitor); | ||
var _ref; | ||
return (_ref = this.monitor().evaluation$create_notifier()) != null ? _ref.public_api : void 0; | ||
}; | ||
@@ -40,0 +42,0 @@ |
@@ -51,3 +51,2 @@ // Generated by CoffeeScript 1.6.3 | ||
f.fire = this.user$fire; | ||
f; | ||
} | ||
@@ -54,0 +53,0 @@ |
@@ -7,6 +7,6 @@ // Generated by CoffeeScript 1.6.3 | ||
return function(func, cb) { | ||
var current_monitor, iter, stopper; | ||
current_monitor = null; | ||
var iter, mon, stopper; | ||
mon = null; | ||
stopper = function() { | ||
return current_monitor != null ? current_monitor.removeListener('change', iter) : void 0; | ||
return mon != null ? mon.removeListener('change', iter) : void 0; | ||
}; | ||
@@ -19,4 +19,4 @@ (iter = function() { | ||
} | ||
current_monitor = r.monitor; | ||
return current_monitor != null ? current_monitor.once('change', iter) : void 0; | ||
mon = r.monitor; | ||
return mon != null ? mon.once('change', iter) : void 0; | ||
})(); | ||
@@ -23,0 +23,0 @@ return stopper; |
{ | ||
"name": "reactivity", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Native Reactivity for Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Aldo Bucchi <aldo.bucchi@gmail.com>", |
21032
431