2
0
فهرست منبع

Do not use getter ES5 syntax for old browsers.

IE8 seems to have problems with this,
so using ES5-shim's Object.defineProperty instead.
Herbert Vojčík 11 سال پیش
والد
کامیت
576bded48d
1فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 7 3
      support/helpers.js

+ 7 - 3
support/helpers.js

@@ -1,8 +1,12 @@
 define("amber/helpers", ["amber_vm/smalltalk", "require"], function (smalltalk, require) {
-    return {
+    var exports = {
         popupHelios: function () {
             window.open(require.toUrl('amber_html/helios.html'), "Helios", "menubar=no, status=no, scrollbars=no, menubar=no, width=1000, height=600");
-        },
-        get smalltalk() { return smalltalk; }
+        }
     };
+    Object.defineProperty(exports, "smalltalk", {
+        get: function () { return smalltalk; },
+        enumerable: true, configurable: true
+    });
+    return  exports;
 });