handle: null\r
};\r
(function(frame) {\r
- var $frame = base("$frame"),\r
- _cancel = cancel; /*cancelのエイリアス*/\r
- _cancel.handle = requestAnimationFrame(step);\r
- function step() {\r
- if (!$frame.isPaused) {\r
+ var _cancel = cancel; /*cancelのエイリアス*/\r
+ var step = function () {\r
+ if (!this.isPaused) {\r
frame++;\r
try {\r
- $frame.setFrame(frame);\r
+ this.setFrame(frame);\r
} catch(e) {\r
}\r
_cancel.handle = requestAnimationFrame(step);\r
}\r
- };\r
+ }.bind(base("$frame"));\r
+ _cancel.handle = requestAnimationFrame(step);\r
})(-1);\r
return cancel;\r
} else {\r