Mootools and ExtJs 4.x seem to be incompatible, how to solve? -
mootools , extjs have compatibility issue when used on same page. mootools throws following error :
uncaught typeerror: property 'id' of object #<htmldocument> not function how can use both frameworks side side ? there workaround ?
this looks document.id('..') reference issue, defined it's not mootools method...
nothing work if it's not pointed mootools method.
i argue extjs or app has added property id document, not function string or primitive.
pretty sure extjs not have been overwriting document.id, given (sencha) employed mootools core team dev @subtlegradient (thomas aylott) co-wrote slick selector engine , helped engineer document.id transition in mootools simple $ in 1.11
you cannot document.id = $ restore it's reference , it's been overwritten.
only chance try loading mootools after extjs loaded , started - or load mootools, save ref document.$id = document.id; after, load extjs , restore when ready via document.id = document.$id; delete document.$id - still no guarantees run @ right time. need see modifies document object in web inspector (you can add watcher)
Comments
Post a Comment