update packaged ace
This commit is contained in:
parent
5cc67ba146
commit
a5eb376e4c
133 changed files with 13027 additions and 3335 deletions
18
build/pilot/typecheck.js
Normal file
18
build/pilot/typecheck.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
define(function(d, b) {
|
||||
var c = Object.prototype.toString;
|
||||
b.isString = function(a) {
|
||||
return a && c.call(a) === "[object String]"
|
||||
};
|
||||
b.isBoolean = function(a) {
|
||||
return a && c.call(a) === "[object Boolean]"
|
||||
};
|
||||
b.isNumber = function(a) {
|
||||
return a && c.call(a) === "[object Number]" && isFinite(a)
|
||||
};
|
||||
b.isObject = function(a) {
|
||||
return a !== undefined && (a === null || typeof a == "object" || Array.isArray(a) || b.isFunction(a))
|
||||
};
|
||||
b.isFunction = function(a) {
|
||||
return a && c.call(a) === "[object Function]"
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue