Skip to content

Commit 574b38d

Browse files
Cribacirminsul
authored andcommitted
Update base.js
MutableCell object structure has changed from using key/value pairs to symbols. @see also this pr: Semantic-Org#270
1 parent 54801b7 commit 574b38d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addon/mixins/base.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ Semantic.BaseMixin = Ember.Mixin.create({
183183
// if its a mutable object, get the actual value
184184
if (typeof value === 'object') {
185185
let objectKeys = Ember.A(Object.keys(value));
186-
if (objectKeys.any((objectkey) => objectkey.indexOf('MUTABLE_CELL') >= 0)) {
186+
let objectSymbols = Ember.A(Object.getOwnPropertySymbols(value));
187+
188+
if (objectKeys.any((objectkey) => objectkey.indexOf('MUTABLE_CELL') >= 0) ||
189+
objectSymbols.any(objectSymbol => objectSymbol.description === 'MUTABLE_CELL')) {
187190
value = Ember.get(value, 'value');
188191
}
189192
}

0 commit comments

Comments
 (0)