diff --git a/src/core/controller/controller.resizer.js b/src/core/controller/controller.resizer.js index 522e617751..ad1ac2c42d 100644 --- a/src/core/controller/controller.resizer.js +++ b/src/core/controller/controller.resizer.js @@ -18,8 +18,8 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - if ("onorientationchange" in window) { - window.onorientationchange = fn; + if ("onorientationchange" in _global) { + _global.onorientationchange = fn; } else { BI.Widget._renderEngine.createElement(_global).resize(fn); }