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...
Ember.meta(APP.stuff)
This returns an object that contains a "watching" hash, which contains the properties being watched and the number of watchers.
Ember is cool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With