Sfoglia il codice sorgente

Recompile with $pkg.

Herby Vojčík 5 anni fa
parent
commit
fc9fe25c84
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/ProfStef.js

+ 3 - 3
src/ProfStef.js

@@ -1,9 +1,9 @@
 define(["amber/boot", "amber/web/Web", "amber_core/Kernel-Objects"], function($boot){"use strict";
 if(!("nilAsValue" in $boot))$boot.nilAsValue=$boot.nilAsReceiver;
 var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
-$core.addPackage("ProfStef");
-($core.packageDescriptors||$core.packages)["ProfStef"].innerEval = function (expr) { return eval(expr); };
-($core.packageDescriptors||$core.packages)["ProfStef"].transport = {"type":"amd","amdNamespace":"profstef"};
+var $pkg = $core.addPackage("ProfStef");
+$pkg.innerEval = function (expr) { return eval(expr); };
+$pkg.transport = {"type":"amd","amdNamespace":"profstef"};
 
 $core.addClass("AbstractTutorial", $globals.Object, [], "ProfStef");
 //>>excludeStart("ide", pragmas.excludeIdeData);