1
0
فهرست منبع

Revert "amber/xxx: define call without explicit name"

This reverts commit 1a1ae9921df396f6aa7d3f95a6009d0764b791da.
Explicit names needed in amberc. Module name is parsed from them.
Herbert Vojčík 10 سال پیش
والد
کامیت
819c80295d
4فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      internal/grunt-tasks/grunt-peg.js
  2. 1 1
      support/boot.js
  3. 1 1
      support/helpers.js
  4. 1 1
      support/parser.js

+ 1 - 1
internal/grunt-tasks/grunt-peg.js

@@ -18,7 +18,7 @@ module.exports = function(grunt) {
       export_var: 'module.exports'
     });
     var parser = PEG.buildParser(grunt.file.read(this.data.src), options);
-    var content = 'define(["amber/boot"], function($boot) {\nvar $globals = $boot.globals, nil = $boot.nil;\n'+options.export_var + ' = ' + parser + ';\n});';
+    var content = 'define("amber/parser", ["./boot"], function($boot) {\nvar $globals = $boot.globals, nil = $boot.nil;\n'+options.export_var + ' = ' + parser + ';\n});';
     grunt.file.write(this.data.dest, content);
   });
 };

+ 1 - 1
support/boot.js

@@ -39,7 +39,7 @@
 
 //jshint eqnull:true
 
-define([ 'require', './browser-compatibility' ], function (require) {
+define("amber/boot", [ 'require', './browser-compatibility' ], function (require) {
 
 	/* Reconfigurable micro composition system, https://github.com/amber-smalltalk/brikz */
 

+ 1 - 1
support/helpers.js

@@ -1,4 +1,4 @@
-define(["amber/boot", "require"], function (boot, require) {
+define("amber/helpers", ["amber/boot", "require"], function (boot, require) {
     var globals = boot.globals,
         exports = {},
         api = boot.api,

+ 1 - 1
support/parser.js

@@ -1,4 +1,4 @@
-define(["amber/boot"], function($boot) {
+define("amber/parser", ["./boot"], function($boot) {
 var $globals = $boot.globals, nil = $boot.nil;
 $globals.SmalltalkParser = (function() {
   /*