Author: ygrego Date: 2015-06-18 12:58:53 +0000 (Thu, 18 Jun 2015) New Revision: 1748 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1748 Log: Some angular services need additional features to manage state transtion of oipf objects. Added: oipf/emulator/js/utils/ oipf/emulator/js/utils/Service.js Added: oipf/emulator/js/utils/Service.js =================================================================== --- oipf/emulator/js/utils/Service.js (rev 0) +++ oipf/emulator/js/utils/Service.js 2015-06-18 12:58:53 UTC (rev 1748) @@ -0,0 +1,17 @@ +var Service = Class.extend({ + + init: function() { + this.transitions = [] + this.currentTransition = {}; + this.currentIndex = 0; + + var testCase = new TestCase(); + + if (testCase) { + this.onChangeState = testCase.onChangeState.bind(this); + this.addTransition = testCase.addTransition.bind(this); + this.addTransitionWithError = testCase.addTransitionWithError.bind(this); + } + } + +});