From 3f39e4ac11b29e36390a2b5ec0aac5a536fe4579 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 12 Apr 2015 16:55:01 -0400 Subject: [PATCH] feature(view) rm FocusWas --- lib/client/view.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/client/view.js b/lib/client/view.js index b4bdfe52..e44add2b 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -8,7 +8,6 @@ var CloudCmd, Util, DOM, CloudFunc, $; function ViewProto(CallBack) { var Name = 'View', Loading = false, - FocusWas = false, Events = DOM.Events, Info = DOM.CurrentInfo, Key = CloudCmd.Key, @@ -28,16 +27,10 @@ var CloudCmd, Util, DOM, CloudFunc, $; hideOverlay(); }, afterShow : function(callback) { - if (!FocusWas) { - Element.focus(); - FocusWas = true; - } - + Element.focus(); Util.exec(callback); }, afterClose : function(callback) { - FocusWas = false; - Util.exec(callback); }, fitToView : true,