From ccd276926a96be2b1cc646e28a5a00d004c15707 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 13 Feb 2021 23:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/controller/controller.resizer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/controller/controller.resizer.js b/src/core/controller/controller.resizer.js index bb095e55c..522e61775 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 ("onoreientationchange" in window) { - window.onoreientationchange = fn; + if ("onorientationchange" in window) { + window.onorientationchange = fn; } else { BI.Widget._renderEngine.createElement(_global).resize(fn); }