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

Commit

Permalink
make no-theme result 'null' insetad of 'undefined' to avoid spurious …
Browse files Browse the repository at this point in the history
…data changes (i.e. observation of value going from null to undefined)
  • Loading branch information
Scott J. Miles committed Oct 3, 2013
1 parent dceefb9 commit 2a4dc0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polymer-ui-theme-aware/polymer-ui-theme-aware.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
PolymerUI = {
findTheme: function() {
var p = this, theme;
var p = this, theme = null;
while (p && !theme) {
theme = p.getAttribute && p.getAttribute('theme');
p = p.parentNode || p.host;
Expand Down

0 comments on commit 2a4dc0e

Please sign in to comment.