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

Commit 40bde06

Browse files
committed
Refine binding warning so it doesn't incorrectly warn when element is stamped from a template without binding.
1 parent 64ec77b commit 40bde06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instance/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
ready: function() {
2525
},
2626
createdCallback: function() {
27-
if (this.templateInstance) {
27+
if (this.templateInstance && this.templateInstance.model) {
2828
console.warn('Attributes on ' + this.localName + ' were data bound ' +
2929
'prior to Polymer upgrading the element. This may result in ' +
3030
'incorrect binding types.');

0 commit comments

Comments
 (0)