editor_file

This commit is contained in:
YouWei Zhao committed 2019-04-23 14:39:19 -04:00
1 parent cb10654e58
commit 4e102eba6c
7 files changed
+37 -27

No files matched your search

+11
View File
@@ -157,6 +157,17 @@ editor_util_wrapper = function (editor) {
}).join(''))
}
editor_util.prototype.isset = function (val) {
return val != null && !(typeof val == 'number' && isNaN(val));
}
editor_util.prototype.checkCallback=function(callback){
if (!editor.util.isset(callback)) {
editor.printe('未设置callback');
throw('未设置callback')
}
}
editor.constructor.prototype.util = new editor_util();
}
//editor_util_wrapper(editor);