Merge pull request #415 from der-On/patch-1
fixes TypeError: Illegal Invocation in node-webkit
This commit is contained in:
commit
63391d936f
1 changed files with 2 additions and 2 deletions
|
|
@ -11,8 +11,8 @@ var m = (function app(window, undefined) {
|
|||
function initialize(window){
|
||||
$document = window.document;
|
||||
$location = window.location;
|
||||
$cancelAnimationFrame = window.cancelAnimationFrame || window.clearTimeout;
|
||||
$requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
|
||||
$cancelAnimationFrame = (window.cancelAnimationFrame || window.clearTimeout).bind(window);
|
||||
$requestAnimationFrame = (window.requestAnimationFrame || window.setTimeout).bind(window);
|
||||
}
|
||||
|
||||
initialize(window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue