AMD Loader disable, enable in theme

為{幸葍}努か 提交于 2019-12-02 03:58:42

I think that's possible. Create 2 additional JavaScript files:

disable_amd.js with the following contents:

if (typeof define === 'function' && define.amd) {if(define.amd.vendor =='dojotoolkit.org'){define._amd = define.amd;delete define.amd;}}

and

enable_amd.js with the following contents:

if (typeof define === 'function' && define._amd) {define.amd = define._amd; delete define._amd;}

Load the first one before you load bootstrap-slider.js JavaScript file (place it above that) and the second one afterwards.

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