Fix ordering on workers lists
Emebr does not allow to use mixin on create, it needs to be passed to extend(). (closes #151)
This commit is contained in:
parent
406dd06952
commit
ea3ea61146
|
@ -33,11 +33,11 @@ Travis.reopen
|
|||
for worker in content.toArray()
|
||||
host = worker.get('host')
|
||||
unless groups[host]
|
||||
groups[host] = Em.ArrayProxy.create(Em.SortableMixin,
|
||||
groups[host] = Em.ArrayProxy.extend(Em.SortableMixin,
|
||||
content: [],
|
||||
sortProperties: ['nameForSort']
|
||||
)
|
||||
groups[host].addObject(worker)
|
||||
).create()
|
||||
groups[host].pushObject(worker)
|
||||
|
||||
$.values(groups)
|
||||
).property('length')
|
||||
|
|
Loading…
Reference in New Issue
Block a user