Permalink
Browse files

fix: 修正弹出层未传参数报错

  • Loading branch information...
1 parent be7a435 commit 47627fcf82a550b2d122c187d2198dfcc70b29fd @onvno onvno committed Nov 23, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/neoui-loader.js
View
@@ -10,7 +10,7 @@ import {makeDOM, makeModal} from 'tinper-sparrow/js/dom';
*/
var loadTemplate = "<div class='u-loader-container'><div class='u-loader'>{centerContent}</div>{loadDesc}</div>"; //{centerContent}为加载条中间内容
/**
- * @param {Object} options
+ * @param {Object} options
* @return {[type]}
*/
var showLoader = function(options) {
@@ -37,6 +37,7 @@ var showLoader = function(options) {
};
var hideLoader = function(options) {
var cssStr,hasback;
+ options = options || {};
if(options && options.cssStr){
cssStr = options.cssStr ;
}else{

0 comments on commit 47627fc

Please sign in to comment.