Skip to content

Commit

Permalink
Do not attempt to define a getter if there is no __defineGetter__
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelr committed Mar 18, 2012
1 parent 3d95d2c commit 483a3c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
} else {
animationStartTime = function() { return window[prop]; };
}
window.__defineGetter__('animationStartTime', animationStartTime);
if(window.__defineGetter__) {
window.__defineGetter__('animationStartTime', animationStartTime);
}
}
}());

Expand Down

0 comments on commit 483a3c7

Please sign in to comment.