blackberry-webworks/BBX-Framework — Issue #36: Possible name collision between our framework JS code and user's JS code
Author: nukulb
Created: 2011-12-06 16:20:48+00:00
State: open

As we implemented packager correctly and now we stored all user’s HTML and JS under the output’s root folder, it might cause a name collision if in the user’s code he uses \lib\framework.js and other same JS files we are using in framework/bootstrap. We had this issue before and our solution is rename our files and directories, e.g. rename the “lib” folder to “WebWorksFrameworkBootstrapLibmain0”, so the name is not likely to be used by user. Although this is a workaround, it’s very easy to implement and under most cases it works.

I wonder whether we would like to use the same method which requires us to change our folders’ name or probably there is a better way to fix it.