From 205f3b769cbf7c8e5f153fdd2e37a2611a5489d8 Mon Sep 17 00:00:00 2001 From: Allain Lalonde Date: Thu, 12 Feb 2015 09:47:41 -0500 Subject: [PATCH] inputclass not being respected the check for whether the attribute name contains attr will always return -1 because line 118 removes them. By changing line 121, at least the attributes are respected. --- script/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/autocomplete.js b/script/autocomplete.js index 377ad0f..138b3bb 100644 --- a/script/autocomplete.js +++ b/script/autocomplete.js @@ -118,7 +118,7 @@ app.directive('autocomplete', function() { attr = a.replace('attr', '').toLowerCase(); // add attribute overriding defaults // and preventing duplication - if (a.indexOf('attr') === 0) { + if (a.indexOf('attr') === -1) { scope.attrs[attr] = attrs[a]; } }