scion-core
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -387,2 +387,3 @@ // Copyright 2011-2012 Jacob Beard, INFICON, and other SCION contributors | ||
this._listeners[type].forEach(function __emit(listener) { | ||
console.log('listener',listener); | ||
listener.apply(this, modifiedArgs); | ||
@@ -1074,5 +1075,5 @@ }, this); | ||
registerListener : function(listener){ | ||
this.on('onEntry',listener.onEntry); | ||
this.on('onExit',listener.onExit); | ||
this.on('onTransition',listener.onTransition); | ||
if(listener.onEntry) this.on('onEntry',listener.onEntry); | ||
if(listener.onExit) this.on('onExit',listener.onExit); | ||
if(listener.onTransition) this.on('onTransition',listener.onTransition); | ||
}, | ||
@@ -1082,5 +1083,5 @@ | ||
unregisterListener : function(listener){ | ||
this.off('onEntry',listener.onEntry); | ||
this.off('onExit',listener.onExit); | ||
this.off('onTransition',listener.onTransition); | ||
if(listener.onEntry) this.off('onEntry',listener.onEntry); | ||
if(listener.onExit) this.off('onExit',listener.onExit); | ||
if(listener.onTransition) this.off('onTransition',listener.onTransition); | ||
}, | ||
@@ -1087,0 +1088,0 @@ |
{ | ||
"name": "scion-core", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "StateCharts Interpretation and Optimization eNgine (SCION) CORE is an implementation of Statecharts in JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
772005
21574