Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fix for AMD, checked `window` element instead `require`.

  • Loading branch information...
commit 47a4df7ebc8748d1c8b2a413c72c65f389bc2659 1 parent ac27fb3
@jdkanani jdkanani authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  backbone-associations.js
View
2  backbone-associations.js
@@ -21,7 +21,7 @@
var _, Backbone, BackboneModel, BackboneCollection, ModelProto,
defaultEvents, AssociatedModel, pathChecker;
- if (typeof require !== 'undefined') {
+ if (typeof window === 'undefined') {
_ = require('underscore');
Backbone = require('backbone');
if(typeof exports !== 'undefined') {
Please sign in to comment.
Something went wrong with that request. Please try again.