Skip to content

Commit

Permalink
When the namespace already exists, do not set namespace.[define|requi…
Browse files Browse the repository at this point in the history
…re|requirejs]. The line that does this needs to be included in the if block that skips requirejs processing for namespaces that are already defined.
  • Loading branch information
joshed-io committed Sep 30, 2011
1 parent 96c7b67 commit 775b652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/jslib/pragma.js
Expand Up @@ -55,11 +55,11 @@ define(['parse', 'logger'], function (parse, logger) {
ns + " === 'undefined') {\n" +
ns + ' = {};\n' +
fileContents +
"\n}\n" +
"\n" +
ns + ".requirejs = requirejs;" +
ns + ".require = require;" +
ns + ".define = define;\n" +
"}());";
"}\n}());";
}

//Finally, if the file wants a special wrapper because it ties
Expand Down

0 comments on commit 775b652

Please sign in to comment.