javascript - How to delete a property from an Emberjs Object? -


plain old javascript object properties can deleted so...

var foo = {bar: 'baz'}; delete foo.bar 

how delete (not set null) property in ember object?

var foo = ember.object.create({bar: 'baz'}); 

the same normal object:

delete foo.bar 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -