Skip to content

Commit 5f0fac7

Browse files
gearsdigitallcdsantos
authored andcommitted
allow hook chaining (#125)
1 parent eb6134b commit 5f0fac7

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

public/jquery.selectric.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,8 @@
984984
}
985985

986986
this[callbackName][hookName] = fn;
987+
988+
return this;
987989
},
988990

989991
/**
@@ -992,6 +994,8 @@
992994
*/
993995
remove: function(callbackName, hookName) {
994996
delete this[callbackName][hookName];
997+
998+
return this;
995999
}
9961000
};
9971001

0 commit comments

Comments
 (0)