Skip to content

Commit

Permalink
Fixes #66, bad namespace rename for jQuery define check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Dec 22, 2011
1 parent 9fa0774 commit 6f0a3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/jslib/pragma.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define(['parse', 'logger'], function (parse, logger) {

//Namespace define jquery use:
fileContents = fileContents.replace(pragma.defineJQueryRegExp,
"typeof " + ns + ".define === 'function' && " + ns + ".define.amd && " + ns + ".define.jQuery");
"typeof " + ns + ".define === 'function' && " + ns + ".define.amd && " + ns + ".define.amd.jQuery");

//Namespace has.js define use:
fileContents = fileContents.replace(pragma.defineHasRegExp,
Expand Down
2 changes: 1 addition & 1 deletion build/tests/lib/namespace/expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

}));

if (typeof foo.define === 'function' && foo.define.amd && foo.define.jQuery) {
if (typeof foo.define === 'function' && foo.define.amd && foo.define.amd.jQuery) {
foo.define('modules/two',[],function () {
return { name: 'two' };
});
Expand Down

0 comments on commit 6f0a3f2

Please sign in to comment.