From 7ff5f6b064c7990beb94e92db67592ce81323b68 Mon Sep 17 00:00:00 2001 From: Max Bylugin Date: Wed, 1 Jun 2016 16:18:53 +0300 Subject: [PATCH] reduce trash in code no logic, no reason for this --- src/angular-gridster.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/angular-gridster.js b/src/angular-gridster.js index 5aba216a..21ca4362 100755 --- a/src/angular-gridster.js +++ b/src/angular-gridster.js @@ -1376,16 +1376,16 @@ match = true; break; } - for (var p = 0; p < 20; ++p) { - var parent = e.target.parentNode; - if (parent === $el[0]) { - break; - } - if (parent === handle) { - match = true; - break outerloop; - } + + var parent = e.target.parentNode; + if (parent === $el[0]) { + break; + } + if (parent === handle) { + match = true; + break outerloop; } + } if (!match) { return false;