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){
|
function initialize(window){
|
||||||
$document = window.document;
|
$document = window.document;
|
||||||
$location = window.location;
|
$location = window.location;
|
||||||
$cancelAnimationFrame = window.cancelAnimationFrame || window.clearTimeout;
|
$cancelAnimationFrame = (window.cancelAnimationFrame || window.clearTimeout).bind(window);
|
||||||
$requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
|
$requestAnimationFrame = (window.requestAnimationFrame || window.setTimeout).bind(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
initialize(window);
|
initialize(window);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue