Sha256: e7f28637b8f81f09288742ec3c8994543af579d635723af2ed334e5f95961a81
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
/* The wait component delays function calls. */ re.c('wait') .requires('update') .defines({ wait:function(time, callback){ var c = 0; this.bind('update', function(t){ c += t; if(c >= time){ this.callback.apply(this, Array.prototype.slice.call(arguments, 2)); return false; } }); return this; } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
entityjs-0.3.2 | src/cycle/wait.js |
entityjs-0.3.1 | src/cycle/wait.js |
entityjs-0.3.0 | src/cycle/wait.js |