removed init property from view and edit

This commit is contained in:
coderaiser 2013-06-10 06:51:06 -04:00
parent fa56259a78
commit d1ef8b723e
3 changed files with 11 additions and 5 deletions

View file

@ -52,6 +52,8 @@ getJSONfromFileTable.
* Updated socket.io to v0.9.16.
* Removed init property from view and edit.
2012.04.22, v0.2.0

View file

@ -38,6 +38,8 @@ var CloudCmd, Util, DOM, CodeMirror;
DOM.Events.addKey(listener);
DOM.setButtonKey('f4', Edit.show);
delete Edit.init;
};
function listener(pEvent){

View file

@ -6,8 +6,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
CloudCmd.View = new ViewProto(CloudCmd, Util, DOM, CloudFunc);
function ViewProto(CloudCmd, Util, DOM, CloudFunc){
var Key = CloudCmd.Key,
FancyBox = this,
var Key = CloudCmd.Key,
View = this,
Config = {
beforeShow : function(){
@ -40,13 +40,15 @@ var CloudCmd, Util, DOM, CloudFunc, $;
this.init = function(pCallBack){
Util.loadOnLoad([
pCallBack,
FancyBox.show,
View.show,
load,
DOM.jqueryLoad
]);
DOM.Events.addKey(listener);
DOM.setButtonKey('f3', view);
delete View.init;
};
this.showHelp = function(){
@ -127,7 +129,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
function view(){
DOM.Images.showLoad();
FancyBox.show( DOM.getCurrentFile() );
View.show( DOM.getCurrentFile() );
}
function listener(pEvent){
@ -145,7 +147,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
break;
case lF1:
FancyBox.showHelp();
View.showHelp();
break;
}
}