From 5fa3a4ce4760334b1a6e2df2255616e1cecbb76f Mon Sep 17 00:00:00 2001 From: miripiruni Date: Sun, 20 Jan 2013 03:15:53 +0400 Subject: [PATCH] simplified shower._checkInteractiveElement() --- shower.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/shower.js b/shower.js index b7ba143..3a10a41 100755 --- a/shower.js +++ b/shower.js @@ -128,11 +128,7 @@ window.shower = (function(window, document, undefined) { * @returns {Boolean} */ shower._checkInteractiveElement = function(e) { - if ('A' === e.target.nodeName) { - return true; - } else { - return false; - } + return 'A' === e.target.nodeName; }; /**