Commits

kai zhu  committed 6748edb

move EXPORTS from process to global

  • Participants
  • Parent commits dd4760c

Comments (0)

Files changed (5)

File moduleInit.js

 
   'use strict';
 
-  var EXPORTS = global.EXPORTS = process.EXPORTS = process.EXPORTS || {}, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// debug

File moduleMain.js2

 
 (function moduleGist() {
 
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 (function moduleRepl() {
 
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 (function moduleHttp() {
 
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 (function () {
 
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 (function () {
 
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       if (!EXPORTS.HTTP_PORT) { return; }
 
 
 (function moduleExternal() {
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 
 (function moduleTest() {
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
 
 
 (function moduleMain() {
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS

File moduleMisc.js2

 /*jslint bitwise: true, browser: true, indent: 2, nomen: true*/
 /*global $: false*/
 'use strict';
-function moduleXhrProgress(EXPORTS) {
-  var local = {
+(function moduleXhrProgress(global) {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// css
           'border-radius: 4px;' +
           'display: none;' +
           'left: 50%;' +
-          'margin-left: -64px;' +
+          'margin: 0px 0px 0px -64px;' +
           'padding: 10px 5px 0px 5px;' +
           'position: fixed;' +
           'top: 25%;' +
 
   };
   local._init();
-}
-//// EXPORTS
-moduleXhrProgress(window);
+}(window));
 /*FILE_END*/
 
 
 /*jslint browser: true, indent: 2, nomen: true*/
 'use strict';
 (function moduleMisc() {
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       EXPORTS.externalRollup();

File moduleUnused.js2

 /*FILE_BEG {"actions": ["jslint"], "name": "/FS_MODULE/libUnused.js"}*/
 /*jslint bitwise: true, indent: 2, nomen: true*/
-
 'use strict';
-
 (function moduleUnused() {
-
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     arrayRandom: function (length) {
       //// create an array with random numbers
     },
 
   };
-
 }());
 
 
 
 (function moduleCron() {
-
-  var EXPORTS = process.EXPORTS, local = {
+  var EXPORTS = global.EXPORTS = global.EXPORTS || {}, local = {
 
     _init: function () {
       //// EXPORTS
     }
 
   };
-
   local._init();
-
 }());
 /*FILE_END*/

File package.json

   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },
-  "version": "2013.03.23-18.10.28"
+  "version": "2013.03.24-03.03.50"
 }