Explorar o código

Merge pull request #750 from herby/getter-syntax-old-browsers

Do not use getter ES5 syntax for old browsers.
Nicolas Petton %!s(int64=11) %!d(string=hai) anos
pai
achega
ff2507d73a
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  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;
 });