Skip to content

Commit

Permalink
fix(searchBox): Use hasAttribute instead of getAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Sep 28, 2015
1 parent e820cc3 commit a122af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/search-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function searchbox(params) {

// Overrides attributes if not already set
forEach(defaultAttributes, (value, key) => {
if (input.getAttribute(key)) {
if (input.hasAttribute(key)) {
return;
}
input.setAttribute(key, value);
Expand Down

0 comments on commit a122af9

Please sign in to comment.