From b2fbe269d3d17dd3bd59264a9efdd61b7fa4a746 Mon Sep 17 00:00:00 2001 From: Narciso Guillen Date: Tue, 10 Sep 2013 20:53:07 -0500 Subject: [PATCH] Avoid bracking when combining with an Object --- src/sortable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sortable.js b/src/sortable.js index 5989c56..fd5531f 100644 --- a/src/sortable.js +++ b/src/sortable.js @@ -14,7 +14,9 @@ angular.module('ui.sortable', []) function combineCallbacks(first,second){ if( second && (typeof second === "function") ){ return function(e,ui){ + if( first && (typeof first === 'function') ){ first(e,ui); + } second(e,ui); }; }