Skip to content

Commit

Permalink
remove redundant logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lasky committed Mar 16, 2016
1 parent 042ebb1 commit ad7fcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mm-list-item/mm-list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},

_highlightChanged: function() {
if (this.highlight && this.highlight.length > 0) {
if (this.highlight) {
var s = this.innerText;
Polymer.dom(this).innerHTML = s.replace(new RegExp(this.highlight,"ig"),function(orig) {
return '<span class="mm-list-item highlight">'+orig+'</span>';
Expand Down

0 comments on commit ad7fcdf

Please sign in to comment.