diff -Nur dojo-release-0.9.0/dijit/form/Button.js dojo/dijit/form/Button.js
|
old
|
new
|
|
| 47 | 47 | if (this.showLabel == false){ |
| 48 | 48 | var labelText = ""; |
| 49 | 49 | this.label = this.containerNode.innerHTML; |
| 50 | | labelText = dojo.trim(this.containerNode.innerText || this.containerNode.textContent); |
| | 50 | // Safari 2.0.4: empty Strings in this.containerNode.innerText are treated |
| | 51 | // as false-values. this.containerNode.textContent otoh is |
| | 52 | // undefined. Use explicit typecast(?) to String to ensure |
| | 53 | // this call to dojo.trim doesn't kill our button. |
| | 54 | labelText = dojo.trim(String(this.containerNode.innerText || this.containerNode.textContent)); |
| 51 | 55 | // set title attrib on iconNode |
| 52 | 56 | this.titleNode.title=labelText; |
| 53 | 57 | dojo.addClass(this.containerNode,"dijitDisplayNone"); |