提交 2a7c0c29 编写于 作者: C Catouse

* adjust code.

上级 8a29d902
...@@ -127,6 +127,14 @@ ...@@ -127,6 +127,14 @@
var that = this, var that = this,
options = this.options; options = this.options;
if($.isFunction(message)) {
var oldCallback = callback;
callback = message;
if(oldCallback !== undefined) {
message = oldCallback;
}
}
if(that.isShow) { if(that.isShow) {
that.hide(function() { that.hide(function() {
that.show(message, callback); that.show(message, callback);
...@@ -139,14 +147,6 @@ ...@@ -139,14 +147,6 @@
that.hiding = null; that.hiding = null;
} }
if($.isFunction(message)) {
var oldCallback = callback;
callback = message;
if(oldCallback !== undefined) {
message = oldCallback;
}
}
that.update(message); that.update(message);
var placement = options.placement; var placement = options.placement;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册