initial commit
This commit is contained in:
1
node_modules/jibo-tools/lib/simulator/timer.js
generated
vendored
Normal file
1
node_modules/jibo-tools/lib/simulator/timer.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var t=function(){function t(t,n){for(var e in n){var r=n[e];r.configurable=!0,r.value&&(r.writable=!0)}Object.defineProperties(t,n)}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),n=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},e=function(){function e(){var t=this;n(this,e),this.interval=33,this.updaters=[],setInterval(function(){t.updaters.forEach(function(t){t.update()})},this.interval)}return t(e,{add:{value:function(t){this.updaters.push(t)}},remove:{value:function(t){var n=this.updaters.indexOf(t);n>=0&&this.updaters.splice(n,1)}}}),e}();module.exports=new e;
|
||||
Reference in New Issue
Block a user