Skip to content

Commit 4012b94

Browse files
committed
fix(sortable): enforce use of a jQuery element
Force the use of a jQuery element so even if jQuery is loaded after angular the element grabbed by jQlite becomes a jQuery element. Closes angular-ui#93
1 parent 8068bad commit 4012b94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sortable.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ angular.module('ui.sortable', [])
1212
return {
1313
require: '?ngModel',
1414
link: function(scope, element, attrs, ngModel) {
15-
15+
/* global jQuery:false */
16+
element = jQuery(element);
1617
function combineCallbacks(first,second){
1718
if( second && (typeof second === 'function') ){
1819
return function(e,ui){

0 commit comments

Comments
 (0)