From 1850041ae29247ffc7baec9bad808cca45acf239 Mon Sep 17 00:00:00 2001 From: Erik Bryn Date: Thu, 22 Jan 2015 15:37:55 -0800 Subject: [PATCH] =?UTF-8?q?Prevent=20jQuery=20UI=20from=20moving=20DOM=20n?= =?UTF-8?q?odes=20itself,=20otherwise=20Ember=E2=80=99s=20morph=20library?= =?UTF-8?q?=20will=20lose=20track=20of=20DOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views.coffee b/src/views.coffee index 61261cbc4..74eda3357 100644 --- a/src/views.coffee +++ b/src/views.coffee @@ -182,6 +182,7 @@ Ember.View.extend Ember.AddeparMixins.StyleBindingsMixin, onColumnSortDone: (event, ui) -> newIndex = ui.item.index() + @$('> div').sortable('cancel') # Prevent jQuery UI from moving the DOM itself view = Ember.View.views[ui.item.attr('id')] column = view.get 'column' @get('controller').onColumnSort column, newIndex