Permalink
Browse files

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

  • Loading branch information...
jdkanani committed Mar 27, 2013
1 parent ac27fb3 commit 47a4df7ebc8748d1c8b2a413c72c65f389bc2659
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone-associations.js
View
@@ -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') {

0 comments on commit 47a4df7

Please sign in to comment.