Browse Source

1.0.6

pull/6/head v1.0.6
sentsin 8 years ago
parent
commit
2f2f5f110c
  1. 2
      build/lay/dest/layui.all.js
  2. 2
      build/layui.js
  3. 2
      src/layui.js

2
build/lay/dest/layui.all.js

File diff suppressed because one or more lines are too long

2
build/layui.js vendored

File diff suppressed because one or more lines are too long

2
src/layui.js vendored

@ -108,7 +108,7 @@ Lay.fn.use = function(apps, callback, exports){
//静态资源host //静态资源host
config.host = config.host || (dir.match(/\/\/([\s\S]+?)\//)||['//'+ location.host +'/'])[0]; config.host = config.host || (dir.match(/\/\/([\s\S]+?)\//)||['//'+ location.host +'/'])[0];
if(apps.length === 0 || layui['layui.all']){ if(apps.length === 0 || (layui['layui.all'] && modules[item])){
return typeof callback === 'function' && callback.apply(layui, exports), that; return typeof callback === 'function' && callback.apply(layui, exports), that;
} }

Loading…
Cancel
Save