Example in coffeescript
window.APP = Ember.Application.create()
APP.stuff = Ember.Object.create(
name: "The Name"
)
APP.things = Ember.Object.create(
nameBinding: "APP.stuff.name"
)
APP.gizmos = Ember.Object.create(
nameBinding: "APP.stuff.name"
)
Is there anyway to detect that APP.stuff has 2 bindings to its name property?
I finally found the answer after digging through lots of source code….
I’m not sure the Devs recommend this approach….but it gives me what I want.
Basically the answer is to call…
This returns an object that contains a “watching” hash, which contains the properties being watched and the number of watchers.
Ember is cool.