Permalink
Browse files

Fixing the build by reverting the issue refs #19, as it breaks the Do…

…jo build since it doesn't properly use define.amd, fixes #20. Will fix #19 once Dojo build tool is fixed
  • Loading branch information...
1 parent 8e0e11e commit d3cb8cac13ce3b02c13677b904411d1b5f65ae2a @kriszyp committed Mar 19, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 package.js
  2. +1 −1 put.js
View
@@ -20,6 +20,10 @@ var profile = {
return isTestRe.test(filename) || mid in miniExcludes;
},
+ amd: function(filename, mid){
+ return isJsRe.test(filename) && !(mid in amdExcludes);
+ },
+
copyOnly: function(filename, mid){
return mid in copyOnly;
}
View
2 put.js
@@ -213,7 +213,7 @@ define([], forDocument = function(doc, newFragmentFasterHeuristic){
});
})(function(id, deps, factory){
factory = factory || deps;
- if(typeof define === "function" && define.amd){
+ if(typeof define === "function"){
// AMD loader
define([], function(){
return factory();

0 comments on commit d3cb8ca

Please sign in to comment.