Permalink
Browse files

fix expose AMD

  • Loading branch information...
eduardo-matos committed Mar 17, 2013
1 parent 02b943a commit cc6d11f53f08440ae3c97b16218b858587a1777f
Showing with 1 addition and 1 deletion.
  1. +1 −1 put.js
View
2 put.js
@@ -213,7 +213,7 @@ define([], forDocument = function(doc, newFragmentFasterHeuristic){
});
})(function(id, deps, factory){
factory = factory || deps;
- if(typeof define != "undefined"){
+ if(typeof define === "function" && define.amd){
// AMD loader
define([], function(){
return factory();

0 comments on commit cc6d11f

Please sign in to comment.