Created
July 6, 2015 21:57
-
-
Save Samsinite/47e3de5d97056d462f42 to your computer and use it in GitHub Desktop.
Ember sortable array proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
var SortableArrayProxy = Ember.ArrayProxy.extend(Ember.SortableMixin); | |
export function createSortableArray(arrayToProxy, sortProperties, sortAscending) { | |
return SortableArrayProxy.create({ | |
content: arrayToProxy, | |
sortProperties: sortProperties, | |
sortAscending: sortAscending | |
}); | |
} | |
export default SortableArrayProxy; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment