From 9b377bf4f710ca994437786117ee1259b4d716d0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 12 Jan 2017 10:30:03 +0100 Subject: [PATCH] PartPicker: unbenutzte Variable last_unverified_dummy entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sie wird nur gesetzt, nie gelesen, und vor allem auch nicht mit »var« deklariert — wodurch es im Strict-Modus zu JavaScript-Fehlermeldungen kommt. --- js/autocomplete_part.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index 4c0442c63..d6c8f23d5 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -90,7 +90,6 @@ namespace('kivi', function(k){ state = STATES.PICKED; last_real = $real.val(); last_dummy = $dummy.val(); - last_unverified_dummy = $dummy.val(); $real.trigger('change'); if (o.fat_set_item && item.id) { @@ -114,7 +113,6 @@ namespace('kivi', function(k){ } else if (state == STATES.UNDEFINED && $dummy.val() === '') set_item({}) else { - last_unverified_dummy = $dummy.val(); set_item({ id: last_real, name: last_dummy }) } annotate_state(); @@ -126,7 +124,6 @@ namespace('kivi', function(k){ else if (state == STATES.UNDEFINED && $dummy.val() === '') $dummy.removeClass(STATES.UNDEFINED).addClass(STATES.PICKED); else { - last_unverified_dummy = $dummy.val(); $dummy.addClass(STATES.UNDEFINED).removeClass(STATES.PICKED); } } -- 2.20.1