From 1eef48ef42e3cd8e64ae2ed00c6f0347e80d17c9 Mon Sep 17 00:00:00 2001 From: Jayce Pulsipher Date: Mon, 10 Feb 2014 11:29:54 -0700 Subject: [PATCH] use element's style instead of getComputedStyle --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1d6a763..9f4efe9 100644 --- a/index.js +++ b/index.js @@ -153,7 +153,7 @@ Sortable.prototype.ondragstart = function(e){ while (this.draggable.parentNode != this.el) { this.draggable = this.draggable.parentNode; } - this.display = window.getComputedStyle(e.target).display; + this.display = e.target.style.display; this.i = indexof(e.target); e.dataTransfer.setData('text', ' '); e.dataTransfer.effectAllowed = 'move';