Permalink
Browse files

proper export

  • Loading branch information...
1 parent 3f0be33 commit 649af63e09002055633439748167d430e1b5ffe2 @maccman committed Sep 19, 2011
Showing with 4 additions and 12 deletions.
  1. +1 −4 lib/panel.js
  2. +1 −4 lib/stage.js
  3. +1 −2 src/panel.coffee
  4. +1 −2 src/stage.coffee
View
@@ -121,8 +121,5 @@
};
return Panel;
})();
- if (typeof exports === "undefined" || exports === null) {
- exports = this;
- }
- exports.Panel = Panel;
+ (typeof module !== "undefined" && module !== null ? module.exports = Panel : void 0) || (this.Panel = Panel);
}).call(this);
View
@@ -142,8 +142,5 @@
Global.prototype.global = true;
return Global;
})();
- if (typeof exports === "undefined" || exports === null) {
- exports = this;
- }
- exports.Stage = Stage;
+ (typeof module !== "undefined" && module !== null ? module.exports = Stage : void 0) || (this.Stage = Stage);
}).call(this);
View
@@ -60,5 +60,4 @@ class Panel extends Stage
@content.queueNext =>
@el.removeClass('active')
-exports ?= @
-exports.Panel = Panel
+(module?.exports = Panel) or @Panel = Panel
View
@@ -82,5 +82,4 @@ class Stage extends Spine.Controller
class Stage.Global extends Stage
global: true
-exports ?= @
-exports.Stage = Stage
+(module?.exports = Stage) or @Stage = Stage

0 comments on commit 649af63

Please sign in to comment.