From d1ef8b723e47372c4e0fac1b0b191ee9674f8f40 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 10 Jun 2013 06:51:06 -0400 Subject: [PATCH] removed init property from view and edit --- ChangeLog | 2 ++ lib/client/edit/_codemirror.js | 2 ++ lib/client/view.js | 12 +++++++----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b300551..8cda2460 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/lib/client/edit/_codemirror.js b/lib/client/edit/_codemirror.js index 80cf34cc..1a82e1ea 100644 --- a/lib/client/edit/_codemirror.js +++ b/lib/client/edit/_codemirror.js @@ -38,6 +38,8 @@ var CloudCmd, Util, DOM, CodeMirror; DOM.Events.addKey(listener); DOM.setButtonKey('f4', Edit.show); + + delete Edit.init; }; function listener(pEvent){ diff --git a/lib/client/view.js b/lib/client/view.js index 610b49ea..8fb02e20 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -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; } }