Last active
December 15, 2015 09:19
-
-
Save raytiley/5237901 to your computer and use it in GitHub Desktop.
Trying to figure out how I can run the same code that is in didInsertElement when items are added or removed from the sortedDocuments use in the #each helper.
This file contains hidden or 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
App.SortableContainer = Ember.View.extend({ | |
tagName: 'ul', | |
didInsertElement: function() { | |
Ember.run.next(this, function() { | |
$(this.get('element')).sortable(); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment