Dojo version compatibility

只愿长相守 提交于 2020-01-24 21:56:06

问题


I started working on a web application that currently uses version 0.4. How would I go about upgrading to the latest version, 1.5? I don't think it's backward compatible? Would I make a sub-directory in the "js" dir, call it v1.5, and add new code using a new tag that references the new version? Then, over time, refactor the old code to use the new version?


回答1:


There are a lot of changes from 0.4 to the current version (1.5). There used to be some porting guides available on the Dojo site, but they don't seem to be there anymore. It's definitely not backwards compatible.

I haven't played with two versions of Dojo side by side, but if they load together then the method you mentioned is your best bet - any new code using 1.5, and refactor the old code as you go.



来源:https://stackoverflow.com/questions/4997320/dojo-version-compatibility

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!