From d79129c856dbf154d5204873a0add687022fc95d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 27 Mar 2014 10:08:06 -0400 Subject: [PATCH] feature(client) currentToParent: rm scrollIntoViewIfNeeded --- lib/client.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/client.js b/lib/client.js index d1ce9ed2..515cb7f5 100644 --- a/lib/client.js +++ b/lib/client.js @@ -77,10 +77,8 @@ var Util, DOM, CloudFunc; dirName = Util.removeStr(dirName, '/'); rootDir = DOM.getCurrentFileByName(dirName); - if (rootDir) { + if (rootDir) DOM.setCurrentFile(rootDir); - DOM.scrollIntoViewIfNeeded(rootDir, true); - } } /**