Skip to content

Commit

Permalink
Fixed readme. Added polymer-ready event
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioibrahim committed Mar 24, 2015
1 parent 1f1428c commit bce4be8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ Usage
<lp-ugettext></lp-ugettext>
<script>
var ug = document.querySelector('lp-ugettext');
console.log(s.language);
window.addEventListener('polymer-ready', function(e) {
var uget = document.querySelector('lp-ugettext');
var mylanguage = document.querySelector('#mylanguage');
mylanguage.innerHTML = uget.language;
});
</script>
</body>
```

0 comments on commit bce4be8

Please sign in to comment.