piotrz wrote
> var componentHandler:Object = window["componentHandler"];
> if (componentHandler)
> {
> componentHandler.upgradeElement(element); //MDL function
> }
How you access 'window' in above example, Piotr?
In my case I able to access 'window' by accessing 'document.defaultView'.
But this access breaks the componentHandler code in 'bin-release' version.
It throws error like this:
Uncaught TypeError: document.defaultView.componentHandler.ag is not a
function
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Add-Remove-item-s-to-TabBar-tp59508p59920.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.