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

Commit

Permalink
assigning bindingDelegate while template is operating throws
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Feb 6, 2014
1 parent e66083f commit b78a841
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 126 deletions.
5 changes: 5 additions & 0 deletions src/TemplateBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@
// make sense to issue a warning or even throw if the template is already

This comment has been minimized.

Copy link
@jmesserly

jmesserly May 21, 2014

Contributor

btw, I noticed the TODO up here is fixed now & can be removed :)

This comment has been minimized.

Copy link
@rafaelw

rafaelw May 23, 2014

Author Contributor

done

// "activated", since this would be a strange thing to do.
set bindingDelegate(bindingDelegate) {
if (this.delegate_) {
throw Error('Template must be cleared before a new bindingDelegate ' +
'can be assigned');
}

this.setDelegate_(this.newDelegate_(bindingDelegate));
},

Expand Down
Loading

0 comments on commit b78a841

Please sign in to comment.