update layer.js

add "define.amd"
pull/42/head^2
wangyateng 2017-02-24 14:16:39 +08:00 committed by GitHub
parent a04f6bc9d1
commit 4fa05ef1dc
1 changed files with 2 additions and 2 deletions

View File

@ -1227,7 +1227,7 @@ window.layui && layui.define ? (
exports('layer', layer);
})
) : (
typeof define === 'function' ? define(['jquery'], function(){ //requirejs加载
(typeof define === 'function' && define.amd) ? define(['jquery'], function(){ //requirejs加载
ready.run(window.jQuery);
return layer;
}) : function(){ //普通script标签加载