diff --git a/ChangeLog b/ChangeLog index 484af02c..b79425b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/lib/util.js b/lib/util.js index 9143bc54..5c7ec2ca 100644 --- a/lib/util.js +++ b/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