fixed bug parent object of function hide

This commit is contained in:
coderaiser 2012-07-17 13:33:48 -04:00
parent 2b545346d9
commit 4429e2a3e9

View file

@ -76,23 +76,20 @@ CloudCommander.Editor.CloudMirror = {
lCloudEditor &&
(lCloudEditor.className = '');
}),
hide :(function() {
CloudCommander.keyBinded = true;
var lLeft = this.getById('left');
var lCloudEditor = this.getById('CloudEditor');
lCloudEditor &&
(lCloudEditor.className = 'hidden');
lLeft &&
(lLeft.className = 'panel');
}),
}),
hide :(function(pParent) {
return function(){
CloudCommander.keyBinded = true;
var lLeft = pParent.getById('left');
var lCloudEditor = pParent.getById('CloudEditor');
lCloudEditor &&
(lCloudEditor.className = 'hidden');
lLeft &&
(lLeft.className = 'panel');
}}),
getById: function(pId){return document.getElementById(pId);}
};
CloudCommander.Editor.Keys = (function(){