Commit a21e6b1b authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

$.isFunction -> typeof

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53302 954022d7-b5bf-4e40-9824-e11837661b57
parent 187e4aef
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
close: function (saveValue) { close: function (saveValue) {
var t = this, opt = t.options, ret = false; var t = this, opt = t.options, ret = false;
if (saveValue && $.isFunction(opt.saveValueCallback)) { if (saveValue && "function" === typeof opt.saveValueCallback) {
ret = t._wrapFragments(opt.fragments); // восстанавливаем символы \n ret = t._wrapFragments(opt.fragments); // восстанавливаем символы \n
ret = opt.saveValueCallback(opt.fragments, t.textFlags, /*skip NL check*/ret); ret = opt.saveValueCallback(opt.fragments, t.textFlags, /*skip NL check*/ret);
if (!ret) {return false;} if (!ret) {return false;}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment