blackberry / WebWorks

BlackBerry WebWorks for Smartphones is a platform for building deeply integrated web applications for BlackBerry smartphones
http://developer.blackberry.com/html5
268 stars 51 forks source link

WidgetConfigImpl.getConfigXML is needlessly complicated #80

Open muerl opened 12 years ago

muerl commented 12 years ago

Why does it need to be loaded via the browser? The file has to be local to the cod.

_configXMLDoc = docBuilder.parse( docBuilder.getClass().getResourceAsStream("/"+ _configXML ); );

will do what all of the logic in the try block is doing more cleanly and without requiring browser field initialization.