-
Notifications
You must be signed in to change notification settings - Fork 369
Open
Description
While this sounds similar to #134, the cause is different.
jQueryMX has access to jQuery but jQuery has been removed from global scope using jQuery.noConflict( true );
The result is whenever $.String.getObject() is called for a jQueryMX object, like $.Class, it starts at window, tries to walk to $, and fails.
This could be solved 1 of 2 ways:
- Add logic to
getObject()to use the$it has instead of searchingwindow.
string.js:
...
// make sure roots is an array
roots = $.isArray(roots) ? roots : [roots || window];
if( /\$|jQuery/.test( parts[ 0 ] ) ){
parts.shift();
roots = [ $ ];
length = parts.length;
}
if(length == 0){
return roots[0];
}
...- Change the usage of
getObject()in jQueryMX to start atjQueryinstead ofwindowwhere appropriate.
class.js:
...
// do namespace stuff
if ( fullName ) {
var parts = fullName.split(/\./),
shortName = parts.pop(),
root = /\$|jQuery/.test( parts[ 0 ] ) ?
parts.shift() && $ :
window,
current = getObject(parts.join('.'), root, true),
namespace = current;
current[shortName] = Class;
}
...Metadata
Metadata
Assignees
Labels
No labels