From c677045d3f0b9d986ec21f8d2dddb345f7bf1bca Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 26 Feb 2013 19:08:09 +0400 Subject: [PATCH] fixed a couple of bugs... Signed-off-by: Alex A. Naanou --- lib/jli.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jli.js b/lib/jli.js index a8f97d2..6e13f5a 100755 --- a/lib/jli.js +++ b/lib/jli.js @@ -134,8 +134,7 @@ function createCSSClassToggler(elem, class_list, callback_a, callback_b){ // pre callback... if(callback_pre != null){ - var res = callback_pre(action) - if(res === false){ + if(callback_pre(action) === false){ return } }