Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit e53fcdf

Browse files
committed
Merge pull request #74 from thgreasi/angular1.2
Added extra check to test if placeholder.element is a function.
2 parents 95422b1 + a1f8f10 commit e53fcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sortable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ angular.module('ui.sortable', [])
7676
// been created, either placeholder will be false if no
7777
// placeholder class was given or placeholder.element will be
7878
// undefined if a class was given (placeholder will be a string)
79-
if (placeholder && placeholder.element) {
79+
if (placeholder && placeholder.element && typeof placeholder.element === 'function') {
8080
// exact match with the placeholder's class attribute to handle
8181
// the case that multiple connected sortables exist and
8282
// the placehoilder option equals the class of sortable items

0 commit comments

Comments
 (0)