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

Commit 3e45085

Browse files
committed
added {} and ; to make JSHint pass
1 parent 716cfcb commit 3e45085

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/sortable.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,44 +65,49 @@ angular.module('ui.sortable', []).value('uiSortableConfig',{}).directive('uiSort
6565
opts.start = (function(_start){
6666
return function(e, ui) {
6767
onStart(e, ui);
68-
if (typeof _start === "function")
68+
if ( typeof _start === "function") {
6969
_start(e, ui);
70-
}
70+
}
71+
};
7172
})(opts.start);
7273

7374
// If user provided 'stop' callback compose it with onStop function
7475
opts.stop = (function(_stop){
7576
return function(e, ui) {
7677
onStop(e, ui);
77-
if (typeof _stop === "function")
78+
if (typeof _stop === "function") {
7879
_stop(e, ui);
79-
}
80+
}
81+
};
8082
})(opts.stop);
8183

8284
// If user provided 'update' callback compose it with onUpdate function
8385
opts.update = (function(_update){
8486
return function(e, ui) {
8587
onUpdate(e, ui);
86-
if (typeof _update === "function")
88+
if (typeof _update === "function") {
8789
_update(e, ui);
88-
}
90+
}
91+
};
8992
})(opts.update);
9093

9194
// If user provided 'receive' callback compose it with onReceive function
9295
opts.receive = (function(_receive){
9396
return function(e, ui) {
9497
onReceive(e, ui);
95-
if (typeof _receive === "function")
98+
if (typeof _receive === "function") {
9699
_receive(e, ui);
97-
}
100+
}
101+
};
98102
})(opts.receive);
99103

100104
// If user provided 'remove' callback compose it with onRemove function
101105
opts.remove = (function(_remove){
102106
return function(e, ui) {
103107
onRemove(e, ui);
104-
if (typeof _remove === "function")
108+
if (typeof _remove === "function") {
105109
_remove(e, ui);
110+
}
106111
};
107112
})(opts.remove);
108113
}

0 commit comments

Comments
 (0)