Permalink
Browse files

fix: 参照兼容之前的逻辑

  • Loading branch information...
1 parent 9c2c42d commit d867879d8ab145835fdc66a2e1f8f31ae5225883 liuyk committed Nov 16, 2016
Showing with 7 additions and 7 deletions.
  1. +7 −7 js/neoui-refer.js
View
@@ -126,13 +126,13 @@ Refer.fn.open = function () {
self.contentDiv.innerHTML = this.options['module'].template;
this.options['module'].init(self);
}
- //else if(require && require.amd){
- // require([this.options.pageUrl], function(module) {
- // self.contentDiv.innerHTML = module.template;
- // module.init(self);
- // self.loaded = true;
- // })
- //}
+ else if(require){
+ require([this.options.pageUrl], function(module) {
+ self.contentDiv.innerHTML = module.template;
+ module.init(self);
+ self.loaded = true;
+ })
+ }
}
/**

0 comments on commit d867879

Please sign in to comment.