/**
* @class jQuery.plugin.checkboxShiftClick
*/
-( function ( $ ) {
+( function () {
/**
* Enable checkboxes to be checked or unchecked in a row by clicking one,
var prevCheckbox = null,
$box = this;
// When our boxes are clicked..
- $box.click( function ( e ) {
+ $box.on( 'click', function ( e ) {
// And one has been clicked before...
if ( prevCheckbox !== null && e.shiftKey ) {
// Check or uncheck this one and all in-between checkboxes,
* @mixins jQuery.plugin.checkboxShiftClick
*/
-}( jQuery ) );
+}() );