Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Support textContent that has spaces
Browse files Browse the repository at this point in the history
Currently, the check fails for a <paper-button> that contains text that has a space.
Change the test to check what it is supposed to - whether there's any non-whitespace
content.
  • Loading branch information
cbiesinger committed Aug 15, 2014
1 parent 6fa4c08 commit 04813f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paper-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
z: 1,

attached: function() {
if (this.textContent && !this.textContent.match(/\s+/)) {
if (this.textContent && this.textContent.match(/\S+/)) {
console.warn('Using textContent to label the button is deprecated. Use the "label" property instead');
this.label = this.textContent;
}
Expand Down

0 comments on commit 04813f9

Please sign in to comment.