2
0
Bläddra i källkod

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 år sedan
förälder
incheckning
576bded48d
1 ändrade filer med 7 tillägg och 3 borttagningar
  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;
 });