Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior with functions in concatenated properties #3307

Closed
mbixby opened this issue Sep 2, 2013 · 2 comments
Closed

Unexpected behavior with functions in concatenated properties #3307

mbixby opened this issue Sep 2, 2013 · 2 comments
Labels

Comments

@mbixby
Copy link

mbixby commented Sep 2, 2013

Fiddle

A = Ember.Object.extend({ concatenatedProperties: ['shared'], shared: [] })
B = A.extend({ shared: Ember.K })

console.log( B.create().get('shared') ) 
//=> `Ember.K` (expected `[Ember.K]`)

console.log( B.create({ shared: Ember.K }).get('shared') ) 
//=> `[Ember.K, Ember.K]` as expected
@lukemelia
Copy link
Member

@mbixby This does seem unexpected. Can you create a failing test for https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/tests/mixin/concatenatedProperties_test.js ?

@mbixby
Copy link
Author

mbixby commented Sep 2, 2013

I'll have some time to fix it tomorrow.

@wagenet wagenet closed this as completed in 307a654 Sep 6, 2013
wagenet added a commit that referenced this issue Sep 6, 2013
Close #3307 – Fix unexpected behavior with functions in concatenated properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants