ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

'bind-attr' regression: Observers are not properly removed

Open nonsensery opened this issue 12 years ago • 2 comments

Commit 6a8137902d removed the invoker function from the bind-attr helper. It looks like the removeObserver call was missed though, as it still references the invoker function, rather than the observer function.

All of that is to say that line 492 of packages/ember-handlebars/lib/helpers/binding.js was left as:

Ember.removeObserver(normalized.root, normalized.path, invoker);

When it should have been:

Ember.removeObserver(normalized.root, normalized.path, observer);

On master, this is currently line 643, and the same problem exists on line 766

nonsensery avatar Feb 05 '14 20:02 nonsensery

Closing in favor of #4686 fixing the issue.

rwjblue avatar Apr 10 '14 03:04 rwjblue

Hey, cool! Thanks for fixing this. At the time I filed the bug, I wasn't really sure how the whole pull-request process worked, so it was nice to ride shotgun on this one, so to speak.

nonsensery avatar Apr 16 '14 18:04 nonsensery