@@ -34,7 +34,7 @@ ElmRuntime.filterDeadInputs = function(inputs) {
3434
3535// define the draw function
3636var vendors = ['ms', 'moz', 'webkit', 'o'];
37−var win = window || {};
37+var win = typeof window !== 'undefined' ? window : {};
3838for (var i = 0; i < vendors.length && !win.requestAnimationFrame; ++i) {
3939 win.requestAnimationFrame = win[vendors[i]+'RequestAnimationFrame'];
4040 win.cancelAnimationFrame = win[vendors[i]+'CancelAnimationFrame'] ||