Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal binding behavior - error when inside if.bind #157

Closed
dev-zb opened this issue Nov 18, 2015 · 1 comment
Closed

Signal binding behavior - error when inside if.bind #157

dev-zb opened this issue Nov 18, 2015 · 1 comment

Comments

@dev-zb
Copy link

dev-zb commented Nov 18, 2015

When an element containing a binding with a signal is removed from and/or readd to a view (using an if.bind or similar) an error is thrown:

  • Remove: ReferenceError: signals is not defined
  • Readd: Error: A binding behavior named "signal" has already been applied to ...

Seems to be fixed by changing

let bindings = signals[name];

to

let bindings = this.signals[name];

on this line https://github.com/aurelia/templating-resources/blob/master/src/signal-binding-behavior.js#L27

@jdanyow
Copy link
Contributor

jdanyow commented Nov 18, 2015

thanks @zebrooks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants