Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor clean up of CommonJS support

  • Loading branch information...
commit 36840a2f2db299798bd7be72095089b71586945c 1 parent c866a2c
@onsi authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 Coccyx.js
View
7 Coccyx.js
@@ -5,13 +5,11 @@
// http://github.com/onsi/coccyx
(function() {
-
var Coccyx;
- // Exported for both CommonJS and the browser
+
if (typeof exports !== 'undefined') {
Coccyx = exports;
- }
- else {
+ } else {
Coccyx = this.Coccyx = {};
}
@@ -47,7 +45,6 @@
Backbone.Model.prototype.on = Backbone.Collection.prototype.on = Backbone.Router.prototype.on = Backbone.View.prototype.on = Backbone.Events.on;
Backbone.Model.prototype.bind = Backbone.Collection.prototype.bind = Backbone.Router.prototype.bind = Backbone.View.prototype.bind = Backbone.Events.bind = Backbone.Events.on;
-
})();
_.extend(Backbone.View.prototype, {
Please sign in to comment.
Something went wrong with that request. Please try again.