mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
removed init property from view and edit
This commit is contained in:
parent
fa56259a78
commit
d1ef8b723e
3 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,8 @@ var CloudCmd, Util, DOM, CodeMirror;
|
|||
|
||||
DOM.Events.addKey(listener);
|
||||
DOM.setButtonKey('f4', Edit.show);
|
||||
|
||||
delete Edit.init;
|
||||
};
|
||||
|
||||
function listener(pEvent){
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue