Compile changes made in pull #7.
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -168,7 +168,11 @@ | ... | @@ -168,7 +168,11 @@ |
168 | unselected: stateBinding('selected', true), | 168 | unselected: stateBinding('selected', true), |
169 | enabled: stateBinding('disabled', true), | 169 | enabled: stateBinding('disabled', true), |
170 | text: function(el, value) { | 170 | text: function(el, value) { |
171 | return el.innerText = value || ''; | 171 | if (el.innerText != null) { |
172 | return el.innerText = value || ''; | ||
173 | } else { | ||
174 | return el.textContent = value || ''; | ||
175 | } | ||
172 | }, | 176 | }, |
173 | html: function(el, value) { | 177 | html: function(el, value) { |
174 | return el.innerHTML = value || ''; | 178 | return el.innerHTML = value || ''; | ... | ... |
-
Please register or sign in to post a comment