mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug with opening empty files in CodeMiror. Editor window could not be cloused
This commit is contained in:
parent
30165530d4
commit
707914bcff
2 changed files with 17 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
17
lib/util.js
17
lib/util.js
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue