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

Commit

Permalink
Call bindFinished during template production and mark stagingDocument…
Browse files Browse the repository at this point in the history
…. This will allow custom elements which wish to delay construction work if bindings are coming to detect that case and to know when binding is finished.

R=arv
BUG=

Review URL: https://codereview.appspot.com/88570043
  • Loading branch information
rafaelw committed Apr 16, 2014
1 parent ab7bb51 commit 1cee027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TemplateBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
var owner = template.ownerDocument;
if (!owner.stagingDocument_) {
owner.stagingDocument_ = owner.implementation.createHTMLDocument('');

owner.stagingDocument_.isStagingDocument = true;
// TODO(rafaelw): Remove when fix for
// https://codereview.chromium.org/164803002/
// makes it to Chrome release.
Expand Down Expand Up @@ -794,6 +794,7 @@
instanceBindings.push(binding);
}

node.bindFinished();
if (!bindings.isTemplate)
return;

Expand Down

0 comments on commit 1cee027

Please sign in to comment.