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

Commit

Permalink
Merge pull request #20 from cbiesinger/patch-2
Browse files Browse the repository at this point in the history
support textContent that has spaces
  • Loading branch information
Yvonne Yip committed Aug 15, 2014
2 parents 6fa4c08 + 04813f9 commit 9941e11
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 9941e11

Please sign in to comment.