From 10e6ae8678d7a65b08785ea22173d92367051a76 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 2 Dec 2014 04:02:27 -0500 Subject: [PATCH] feature(dom) Images load: top true -> "top" --- lib/client/dom.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 94709db9..2bc1d7bd 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -88,14 +88,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * position = {top: true}; */ function load(position) { - var top = position && position.top, - current, + var current, image = Images.loading(), parent = image.parentElement; - if (top) + if (position === 'top') { current = DOM.getRefreshButton().parentElement; - else { + } else { current = DOM.getCurrentFile(); current = DOM.getByClass('name', current); }