JS: ineffizienten Funktionsaufruf gefixt (von jshint)
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:12:05 +0000 (17:12 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:12:05 +0000 (17:12 +0200)
js/kivi.CustomerVendor.js

index 4b4aa3f..38afb74 100644 (file)
@@ -155,9 +155,7 @@ namespace('kivi.CustomerVendor', function(ns) {
           showMap();
         });
       for(var i in $mapSearchElements)
-        $mapSearchElements[i].keyup(function() {
-          testInputs();
-        });
+        $mapSearchElements[i].keyup(testInputs);
       this.testInputs();
     };