fixed bug with opening empty files in CodeMiror. Editor window could not be cloused

This commit is contained in:
coderaiser 2012-12-10 04:52:19 -05:00
parent 30165530d4
commit 707914bcff
2 changed files with 17 additions and 4 deletions

View file

@ -169,6 +169,10 @@ config.json to env.
* Fixed bug with auth in github.
* Fixed bug with opening empty files in CodeMiror.
Editor window could not be cloused.
2012.10.01, Version 0.1.7
* Changed name of menu files, fixed npm and jitsu

View file

@ -116,7 +116,7 @@ var Util, exports;
return Util.loadOnLoad(lFunc_a, pData);
};
if(pData)
if( !Util.isUndefined(pData) )
pData = {
data : pData,
callback : lCallBack
@ -194,6 +194,14 @@ var Util, exports;
return Util.isType(pVarible, 'boolean');
};
/**
* functions check is pVarible is function
* @param pVarible
*/
Util.isFunction = function(pVarible){
return Util.isType(pVarible, 'function');
};
/**
* functions check is pVarible is object
* @param pVarible
@ -211,12 +219,13 @@ var Util, exports;
};
/**
* functions check is pVarible is function
* functions check is pVarible is string
* @param pVarible
*/
Util.isFunction = function(pVarible){
return Util.isType(pVarible, 'function');
Util.isUndefined = function(pVarible){
return Util.isType(pVarible, 'undefined');
};
/**
* functions check is pVarible is pType
* @param pVarible