Skip to content

Commit 67f68d6

Browse files
committed
JSLint
1 parent 22f6d10 commit 67f68d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jquery.toggleswitch.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ Thanks: @steve228uk for prop/var mods and plugin suggestion
77
*/
88

99
(function ($) {
10+
'use strict';
1011
$.fn.toggleSwitch = function (options) {
1112
var settings = $.extend({
12-
onClick: function () {},
13-
onChangeOn: function () {},
14-
onChangeOff: function () {}
13+
onClick: function () { return true; },
14+
onChangeOn: function () { return true; },
15+
onChangeOff: function () { return true; }
1516
}, options);
16-
$(this).each(function (i) {
17+
$(this).each(function () {
1718
var obj = $(this), status = obj.is(':checked') ? '' : ' off';
1819
if (!obj.parent('div.switch').length) {
1920
obj.wrap('<div class="switch"></div>');

jquery.toggleswitch.min.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)