You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 searching window.
string.js:
...
// make sure roots is an arrayroots=$.isArray(roots) ? roots : [roots||window];if(/\$|jQuery/.test(parts[0])){parts.shift();roots=[$];length=parts.length;}if(length==0){returnroots[0];}
...
Change the usage of getObject() in jQueryMX to start at jQuery instead of window where appropriate.
class.js:
...
// do namespace stuffif(fullName){varparts=fullName.split(/\./),shortName=parts.pop(),root=/\$|jQuery/.test(parts[0]) ?
parts.shift()&&$ :
window,current=getObject(parts.join('.'),root,true),namespace=current;current[shortName]=Class;}
...
The text was updated successfully, but these errors were encountered:
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 atwindow
, tries to walk to$
, and fails.This could be solved 1 of 2 ways:
getObject()
to use the$
it has instead of searchingwindow
.string.js:
getObject()
in jQueryMX to start atjQuery
instead ofwindow
where appropriate.class.js:
The text was updated successfully, but these errors were encountered: