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:
Piotr Sarnacki 2013-03-25 00:40:08 +01:00
parent 406dd06952
commit ea3ea61146

View File

@ -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')