ember.js - Ember.Object.create removes function from my original object -


i'm using complex javascript object want wrap ember.object.create can benefit of binding on properties. however, when create ember object, loose functions had in initial object properties transferred.

here's example:

http://jsfiddle.net/kcjzw/88/

the introduce function part of original object lost after ember.object.create. there way keep prototypes function while keeping benefits of ember.object.create.

thank help

you can use ember's bindings without using ember object system.

here's example of using ember.bind() setup bindings other objects. ember.run.sync() calls necessary sync bindings after binding setup , property changes.

http://jsfiddle.net/kcjzw/95/


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -