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

* adjust code.

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