[ https://issues.apache.org/jira/browse/CB-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255695#comment-13255695 ]
Filip Maj commented on CB-499: ------------------------------ @MichaĆ: The {{addConstructor}} method is still there (although it is slated for removal in 2.0 - just a heads up). You can see the code for it [here|https://github.com/apache/incubator-cordova-js/blob/master/lib/cordova.js#L224-L232]. Can you check your device logs for the "Failed to run constructor" error? Perhaps there is something in there that is failing. Feel free to e-mail me (fil at adobe dot com) so I can help you with your plugin off this thread (as that is a different issue). @Dewang: I believe this is something to do with the fact that cordova uses its own definitions of {{require}} and {{define}} inside the script - which may be "overriding" any other module loader's implementation implicitly inside the cordova.js file. I think what you are looking for is the feature defined in CB-341, so keep tabs on that issue. > Cordova 1.6 breaks with RequireJS > --------------------------------- > > Key: CB-499 > URL: https://issues.apache.org/jira/browse/CB-499 > Project: Apache Callback > Issue Type: Bug > Components: CordovaJS > Affects Versions: 1.6.0 > Environment: Android, Cordova 1.6.0, RequireJS 1.0.7 > Reporter: Dewang Shah > Assignee: Filip Maj > > Cordova 1.6 breaks compatibility with RequireJS. This uesd to work in 1.5 but > now stops all other Require modules from loading. The deviceready event fires > within seconds (much sooner that 1.5) and then all modules fail to load. > Making Cordova the last module to load does not make any difference. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira