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

Commit

Permalink
ensure we have a bindingDelegate in instanceTemplate.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 11, 2014
1 parent 880c47b commit e0cf310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/instance/mdv.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@

// element api supporting mdv
var mdv = {
//syntax: syntax,
instanceTemplate: function(template) {
var dom = template.createInstance(this, this.syntax);
// ensure a default bindingDelegate
var syntax = this.syntax || (!template.bindingDelegate &&
this.element.syntax);
var dom = template.createInstance(this, syntax);
this.registerObservers(dom.bindings_);
return dom;
},
Expand Down
1 change: 0 additions & 1 deletion src/polymer-body.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
modelName: 'model',

ready: function() {
this.syntax = this.element.syntax;
this.template = document.querySelector('template');
var model = window[this.modelName];
if (model) {
Expand Down

0 comments on commit e0cf310

Please sign in to comment.