Skip to content

Commit

Permalink
Publish DomBind in Polymer. scope
Browse files Browse the repository at this point in the history
Fixes #4797
  • Loading branch information
tomalec committed Aug 17, 2017
1 parent 72a59f7 commit 6005435
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/elements/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@

customElements.define('dom-bind', DomBind);

Polymer.DomBind = DomBind;

})();

</script>
7 changes: 7 additions & 0 deletions test/unit/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@

<script>

suite('Polymer.DomBind class', function() {
test('is available', function() {
assert.isDefined(Polymer.DomBind);
assert.equal(typeof Polymer.DomBind, 'function');
});
});

suite('dom-bind touched before upgrade', function() {
test('value binds top-down', function() {
assert.equal(earlyBoundChild.textContent, 'hi!');
Expand Down

0 comments on commit 6005435

Please sign in to comment.