Apparently I can't have Mootools loaded in my custom back-end component since its colliding and worst even, its manipulating all standard String methods and cause a extreme slow down(crap in String.test patch) and/or crashes all over the place in my Javascript application(ibm-js, modern scripts according to latest stable w3c specs).
So I filtered all Javascript via filtering JFactory::getDocument()->_scripts but it seems to break the admin menu(at least its not working anymore). I also tried every other things found on the internet but with no success.
Does anyone knows the official way to disable MooTools in back-end components whilst not breaking the admin-menu?
If there is no clean way to disable that scripts, what are the alternatives? Currently I see only iFrame as solution (document.write(myHtml)). Or would writing a admin template help you too?
thank you!
(Joomla-3.4.1 with standard plugins like RS-Firewall,...)
Update, this seems to kickoff more-tools-core at least:
JHTML::_( 'behavior.framework', false );
$doc = JFactory::getDocument();
// remove joomla stuff
$doc->_scripts = null;
$doc->_script = null;
$doc->_styleSheets = null;
$myComponent->handleRequest();
for some reason "more-tools-more" is still on the page.