semantic-ui-sass 0.0.3 → 0.8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +1 -0
  4. data/CHANGELOG.md +8 -0
  5. data/README.md +26 -1
  6. data/app/assets/javascripts/semantic-ui/accordion.js +15 -17
  7. data/app/assets/javascripts/semantic-ui/behavior/api.js +18 -22
  8. data/app/assets/javascripts/semantic-ui/behavior/form.js +18 -24
  9. data/app/assets/javascripts/semantic-ui/behavior/state.js +8 -8
  10. data/app/assets/javascripts/semantic-ui/chatroom.js +18 -14
  11. data/app/assets/javascripts/semantic-ui/checkbox.js +26 -24
  12. data/app/assets/javascripts/semantic-ui/dimmer.js +74 -47
  13. data/app/assets/javascripts/semantic-ui/dropdown.js +226 -153
  14. data/app/assets/javascripts/semantic-ui/modal.js +73 -46
  15. data/app/assets/javascripts/semantic-ui/nag.js +13 -16
  16. data/app/assets/javascripts/semantic-ui/popup.js +352 -263
  17. data/app/assets/javascripts/semantic-ui/rating.js +29 -26
  18. data/app/assets/javascripts/semantic-ui/search.js +18 -24
  19. data/app/assets/javascripts/semantic-ui/shape.js +182 -173
  20. data/app/assets/javascripts/semantic-ui/sidebar.js +66 -43
  21. data/app/assets/javascripts/semantic-ui/tab.js +49 -31
  22. data/app/assets/javascripts/semantic-ui/transition.js +24 -24
  23. data/app/assets/javascripts/semantic-ui/video.js +26 -24
  24. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +85 -37
  26. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +6 -7
  27. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +76 -23
  28. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +415 -241
  29. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  30. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +26 -24
  31. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +8 -13
  32. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +87 -5
  33. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +7 -9
  34. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -2
  35. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +17 -21
  36. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +4 -27
  37. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +44 -30
  38. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +68 -9
  39. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +26 -26
  40. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +1 -1
  42. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +81 -7
  43. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +129 -28
  44. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +12 -10
  45. data/app/assets/stylesheets/semantic-ui/views/_item.scss +0 -10
  46. data/app/assets/stylesheets/semantic-ui/views/_list.scss +6 -6
  47. data/app/helpers/semantic_flash_helper.rb +22 -0
  48. data/app/helpers/semantic_icon_helper.rb +5 -0
  49. data/lib/semantic/ui/sass/version.rb +2 -2
  50. data/semantic-ui-sass.gemspec +3 -0
  51. data/spec/dummy/README.rdoc +28 -0
  52. data/spec/dummy/Rakefile +6 -0
  53. data/spec/dummy/app/assets/images/.keep +0 -0
  54. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  55. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  56. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  57. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  58. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  59. data/spec/dummy/app/mailers/.keep +0 -0
  60. data/spec/dummy/app/models/.keep +0 -0
  61. data/spec/dummy/app/models/concerns/.keep +0 -0
  62. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  63. data/spec/dummy/bin/bundle +3 -0
  64. data/spec/dummy/bin/rails +4 -0
  65. data/spec/dummy/bin/rake +4 -0
  66. data/spec/dummy/config.ru +4 -0
  67. data/spec/dummy/config/application.rb +28 -0
  68. data/spec/dummy/config/boot.rb +5 -0
  69. data/spec/dummy/config/database.yml +25 -0
  70. data/spec/dummy/config/environment.rb +5 -0
  71. data/spec/dummy/config/environments/development.rb +29 -0
  72. data/spec/dummy/config/environments/production.rb +80 -0
  73. data/spec/dummy/config/environments/test.rb +36 -0
  74. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  75. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  76. data/spec/dummy/config/initializers/inflections.rb +16 -0
  77. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  78. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  79. data/spec/dummy/config/initializers/session_store.rb +3 -0
  80. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  81. data/spec/dummy/config/locales/en.yml +23 -0
  82. data/spec/dummy/config/routes.rb +2 -0
  83. data/spec/dummy/lib/assets/.keep +0 -0
  84. data/spec/dummy/log/.keep +0 -0
  85. data/spec/dummy/public/404.html +58 -0
  86. data/spec/dummy/public/422.html +58 -0
  87. data/spec/dummy/public/500.html +57 -0
  88. data/spec/dummy/public/favicon.ico +0 -0
  89. data/spec/helpers/semantic_flash_helper_spec.rb +33 -0
  90. data/spec/helpers/semantic_icon_helper_spec.rb +20 -0
  91. data/spec/spec_helper.rb +8 -0
  92. metadata +132 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0beaebdf83162f8358d6ad8178442f818464ae5f
4
- data.tar.gz: 140e77d6cabe8dda07a9b9edfe3f7ce2747e57d7
3
+ metadata.gz: 1aaa18514d7dfd8b47981f7dc513c51de8f217a5
4
+ data.tar.gz: 1eb0e6cebb4515613a1456eb839ee2731f71f3c9
5
5
  SHA512:
6
- metadata.gz: bf60549210270ba9e69f932089f7a17247aa6d8d1126d1e403ac022b91176f6445fb21b6c40ff84d69fda4a55f5a14d9934363310028121c5c9c702d1d227431
7
- data.tar.gz: 413af6a38bd92eec963c94fe357870a699a9f11f4b33b231b3ffe0623dfb5f6005fa9586582da8cefa82073814a8de5622efce9b2d3513cbeccdb349ad88a690
6
+ metadata.gz: 16e1a276717a612d1dd8b63ed53a20a114264840df6b02baf326066dbe90c88afe63070ace88b1ac1640cbbcebf0fe328e428f03d22ad05a0d6d195e0dafbd2c
7
+ data.tar.gz: 741ee974ce0f8643f4035653a656e8f4e81a32ffe6269e6eacb4fd423064174f0671f76db7130c8ccddb683ced753b732777f9fdc4f13345d97e81e1e7599f97
data/.gitignore CHANGED
@@ -16,4 +16,9 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .DS_Store
19
- .env
19
+ .env
20
+
21
+ spec/dummy/db/*.sqlite3
22
+ spec/dummy/log/*.log
23
+ spec/dummy/tmp/
24
+ spec/dummy/.sass-cache
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.8.0.0
2
+
3
+ * Add flash helper
4
+
5
+ * Add icon helper
6
+
7
+ * Update Semantic UI to 0.8.0
8
+
1
9
  ## 0.0.3
2
10
 
3
11
  * Fix typo in semantic-ui.js
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Installation and Usage
6
6
 
7
7
  ```ruby
8
- gem 'semantic-ui-sass', '~> 0.0.2'
8
+ gem 'semantic-ui-sass', '~> 0.8.0.0'
9
9
  ```
10
10
  or
11
11
 
@@ -81,6 +81,31 @@ require 'semantic-ui-sass'
81
81
  compass install semantic-ui
82
82
  ```
83
83
 
84
+ # Rails Helpers
85
+
86
+ ## Flash helper
87
+
88
+ Add flash helper `<%= semantic_flash %>` to your layout
89
+
90
+ ## Icon helper
91
+
92
+ ```ruby
93
+ semantic_icon('add')
94
+ # => <i class="add icon"></i>
95
+ semantic_icon(:add)
96
+ # => <i class="add icon"></i>
97
+ semantic_icon('add sign')
98
+ # => <i class="add sign icon"></i>
99
+ semantic_icon('add', 'sign')
100
+ # => <i class="add sign icon"></i>
101
+ semantic_icon(:add, :sign)
102
+ # => <i class="add sign icon"></i>
103
+ ```
104
+
105
+ ## TODO
106
+
107
+ * Add global variables
108
+ * Add rails helpers like `render_flash`?
84
109
 
85
110
  ## Contributing
86
111
 
@@ -21,14 +21,14 @@ $.fn.accordion = function(parameters) {
21
21
  query = arguments[0],
22
22
  methodInvoked = (typeof query == 'string'),
23
23
  queryArguments = [].slice.call(arguments, 1),
24
- invokedResponse
24
+ returnedValue
25
25
  ;
26
26
  $allModules
27
27
  .each(function() {
28
28
  var
29
29
  settings = ( $.isPlainObject(parameters) )
30
30
  ? $.extend(true, {}, $.fn.accordion.settings, parameters)
31
- : $.fn.accordion.settings,
31
+ : $.extend({}, $.fn.accordion.settings),
32
32
 
33
33
  className = settings.className,
34
34
  namespace = settings.namespace,
@@ -60,6 +60,7 @@ $.fn.accordion = function(parameters) {
60
60
  },
61
61
 
62
62
  instantiate: function() {
63
+ instance = module;
63
64
  $module
64
65
  .data(moduleNamespace, module)
65
66
  ;
@@ -201,14 +202,11 @@ $.fn.accordion = function(parameters) {
201
202
  },
202
203
 
203
204
  setting: function(name, value) {
204
- module.debug('Changing setting', name, value);
205
- if(value !== undefined) {
206
- if( $.isPlainObject(name) ) {
207
- $.extend(true, settings, name);
208
- }
209
- else {
210
- settings[name] = value;
211
- }
205
+ if( $.isPlainObject(name) ) {
206
+ $.extend(true, settings, name);
207
+ }
208
+ else if(value !== undefined) {
209
+ settings[name] = value;
212
210
  }
213
211
  else {
214
212
  return settings[name];
@@ -347,14 +345,14 @@ $.fn.accordion = function(parameters) {
347
345
  else if(found !== undefined) {
348
346
  response = found;
349
347
  }
350
- if($.isArray(invokedResponse)) {
351
- invokedResponse.push(response);
348
+ if($.isArray(returnedValue)) {
349
+ returnedValue.push(response);
352
350
  }
353
- else if(typeof invokedResponse == 'string') {
354
- invokedResponse = [invokedResponse, response];
351
+ else if(returnedValue !== undefined) {
352
+ returnedValue = [returnedValue, response];
355
353
  }
356
354
  else if(response !== undefined) {
357
- invokedResponse = response;
355
+ returnedValue = response;
358
356
  }
359
357
  return found;
360
358
  }
@@ -373,8 +371,8 @@ $.fn.accordion = function(parameters) {
373
371
  }
374
372
  })
375
373
  ;
376
- return (invokedResponse !== undefined)
377
- ? invokedResponse
374
+ return (returnedValue !== undefined)
375
+ ? returnedValue
378
376
  : this
379
377
  ;
380
378
  };
@@ -47,7 +47,7 @@
47
47
  queryArguments = [].slice.call(arguments, 1),
48
48
 
49
49
  module,
50
- invokedResponse
50
+ returnedValue
51
51
  ;
52
52
 
53
53
  module = {
@@ -350,26 +350,22 @@
350
350
  },
351
351
 
352
352
  setting: function(name, value) {
353
- if(value !== undefined) {
354
- if( $.isPlainObject(name) ) {
355
- $.extend(true, settings, name);
356
- }
357
- else {
358
- settings[name] = value;
359
- }
353
+ if( $.isPlainObject(name) ) {
354
+ $.extend(true, settings, name);
355
+ }
356
+ else if(value !== undefined) {
357
+ settings[name] = value;
360
358
  }
361
359
  else {
362
360
  return settings[name];
363
361
  }
364
362
  },
365
363
  internal: function(name, value) {
366
- if(value !== undefined) {
367
- if( $.isPlainObject(name) ) {
368
- $.extend(true, module, name);
369
- }
370
- else {
371
- module[name] = value;
372
- }
364
+ if( $.isPlainObject(name) ) {
365
+ $.extend(true, module, name);
366
+ }
367
+ else if(value !== undefined) {
368
+ module[name] = value;
373
369
  }
374
370
  else {
375
371
  return module[name];
@@ -494,14 +490,14 @@
494
490
  else if(found !== undefined) {
495
491
  response = found;
496
492
  }
497
- if($.isArray(invokedResponse)) {
498
- invokedResponse.push(response);
493
+ if($.isArray(returnedValue)) {
494
+ returnedValue.push(response);
499
495
  }
500
- else if(typeof invokedResponse == 'string') {
501
- invokedResponse = [invokedResponse, response];
496
+ else if(returnedValue !== undefined) {
497
+ returnedValue = [returnedValue, response];
502
498
  }
503
499
  else if(response !== undefined) {
504
- invokedResponse = response;
500
+ returnedValue = response;
505
501
  }
506
502
  return found;
507
503
  }
@@ -520,8 +516,8 @@
520
516
  module.initialize();
521
517
  }
522
518
 
523
- return (invokedResponse !== undefined)
524
- ? invokedResponse
519
+ return (returnedValue !== undefined)
520
+ ? returnedValue
525
521
  : this
526
522
  ;
527
523
  };
@@ -35,7 +35,7 @@ $.fn.form = function(fields, parameters) {
35
35
  query = arguments[0],
36
36
  methodInvoked = (typeof query == 'string'),
37
37
  queryArguments = [].slice.call(arguments, 1),
38
- invokedResponse
38
+ returnedValue
39
39
  ;
40
40
  $allModules
41
41
  .each(function() {
@@ -383,28 +383,22 @@ $.fn.form = function(fields, parameters) {
383
383
  },
384
384
 
385
385
  setting: function(name, value) {
386
- module.debug('Changing setting', name, value);
387
- if(value !== undefined) {
388
- if( $.isPlainObject(name) ) {
389
- $.extend(true, settings, name);
390
- }
391
- else {
392
- settings[name] = value;
393
- }
386
+ if( $.isPlainObject(name) ) {
387
+ $.extend(true, settings, name);
388
+ }
389
+ else if(value !== undefined) {
390
+ settings[name] = value;
394
391
  }
395
392
  else {
396
393
  return settings[name];
397
394
  }
398
395
  },
399
396
  internal: function(name, value) {
400
- module.debug('Changing internal', name, value);
401
- if(value !== undefined) {
402
- if( $.isPlainObject(name) ) {
403
- $.extend(true, module, name);
404
- }
405
- else {
406
- module[name] = value;
407
- }
397
+ if( $.isPlainObject(name) ) {
398
+ $.extend(true, module, name);
399
+ }
400
+ else if(value !== undefined) {
401
+ module[name] = value;
408
402
  }
409
403
  else {
410
404
  return module[name];
@@ -532,14 +526,14 @@ $.fn.form = function(fields, parameters) {
532
526
  else if(found !== undefined) {
533
527
  response = found;
534
528
  }
535
- if($.isArray(invokedResponse)) {
536
- invokedResponse.push(response);
529
+ if($.isArray(returnedValue)) {
530
+ returnedValue.push(response);
537
531
  }
538
- else if(typeof invokedResponse == 'string') {
539
- invokedResponse = [invokedResponse, response];
532
+ else if(returnedValue !== undefined) {
533
+ returnedValue = [returnedValue, response];
540
534
  }
541
535
  else if(response !== undefined) {
542
- invokedResponse = response;
536
+ returnedValue = response;
543
537
  }
544
538
  return found;
545
539
  }
@@ -560,8 +554,8 @@ $.fn.form = function(fields, parameters) {
560
554
  })
561
555
  ;
562
556
 
563
- return (invokedResponse !== undefined)
564
- ? invokedResponse
557
+ return (returnedValue !== undefined)
558
+ ? returnedValue
565
559
  : this
566
560
  ;
567
561
  };
@@ -37,7 +37,7 @@ $.fn.state = function(parameters) {
37
37
  moduleNamespace = namespace + '-module',
38
38
 
39
39
 
40
- invokedResponse
40
+ returnedValue
41
41
  ;
42
42
  $allModules
43
43
  .each(function() {
@@ -582,14 +582,14 @@ $.fn.state = function(parameters) {
582
582
  else if(found !== undefined) {
583
583
  response = found;
584
584
  }
585
- if($.isArray(invokedResponse)) {
586
- invokedResponse.push(response);
585
+ if($.isArray(returnedValue)) {
586
+ returnedValue.push(response);
587
587
  }
588
- else if(typeof invokedResponse == 'string') {
589
- invokedResponse = [invokedResponse, response];
588
+ else if(returnedValue !== undefined) {
589
+ returnedValue = [returnedValue, response];
590
590
  }
591
591
  else if(response !== undefined) {
592
- invokedResponse = response;
592
+ returnedValue = response;
593
593
  }
594
594
  return found;
595
595
  }
@@ -610,8 +610,8 @@ $.fn.state = function(parameters) {
610
610
  })
611
611
  ;
612
612
 
613
- return (invokedResponse !== undefined)
614
- ? invokedResponse
613
+ return (returnedValue !== undefined)
614
+ ? returnedValue
615
615
  : this
616
616
  ;
617
617
  };
@@ -13,8 +13,16 @@
13
13
 
14
14
  $.fn.chatroom = function(parameters) {
15
15
  var
16
- // hoist arguments
17
- moduleArguments = arguments || false
16
+ $allModules = $(this),
17
+ moduleSelector = $allModules.selector || '',
18
+
19
+ time = new Date().getTime(),
20
+ performance = [],
21
+
22
+ query = arguments[0],
23
+ methodInvoked = (typeof query == 'string'),
24
+ queryArguments = [].slice.call(arguments, 1),
25
+ returnedValue
18
26
  ;
19
27
  $(this)
20
28
  .each(function() {
@@ -42,6 +50,7 @@ $.fn.chatroom = function(parameters) {
42
50
  $messageButton = $module.find(selector.messageButton),
43
51
 
44
52
  instance = $module.data('module'),
53
+ element = this,
45
54
 
46
55
  html = '',
47
56
  users = {},
@@ -435,8 +444,6 @@ $.fn.chatroom = function(parameters) {
435
444
 
436
445
  },
437
446
 
438
-
439
-
440
447
  setting: function(name, value) {
441
448
  if(value !== undefined) {
442
449
  if( $.isPlainObject(name) ) {
@@ -451,13 +458,11 @@ $.fn.chatroom = function(parameters) {
451
458
  }
452
459
  },
453
460
  internal: function(name, value) {
454
- if(value !== undefined) {
455
- if( $.isPlainObject(name) ) {
456
- $.extend(true, module, name);
457
- }
458
- else {
459
- module[name] = value;
460
- }
461
+ if( $.isPlainObject(name) ) {
462
+ $.extend(true, module, name);
463
+ }
464
+ else if(value !== undefined) {
465
+ module[name] = value;
461
466
  }
462
467
  else {
463
468
  return module[name];
@@ -525,7 +530,6 @@ $.fn.chatroom = function(parameters) {
525
530
  if(moduleSelector) {
526
531
  title += ' \'' + moduleSelector + '\'';
527
532
  }
528
- title += ' ' + '(' + $allDropdowns.size() + ')';
529
533
  if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
530
534
  console.groupCollapsed(title);
531
535
  if(console.table) {
@@ -585,8 +589,8 @@ $.fn.chatroom = function(parameters) {
585
589
  })
586
590
  ;
587
591
 
588
- return (invokedResponse)
589
- ? invokedResponse
592
+ return (returnedValue)
593
+ ? returnedValue
590
594
  : this
591
595
  ;
592
596
  };
@@ -22,7 +22,7 @@ $.fn.checkbox = function(parameters) {
22
22
  query = arguments[0],
23
23
  methodInvoked = (typeof query == 'string'),
24
24
  queryArguments = [].slice.call(arguments, 1),
25
- invokedResponse
25
+ returnedValue
26
26
  ;
27
27
 
28
28
  $allModules
@@ -90,6 +90,12 @@ $.fn.checkbox = function(parameters) {
90
90
  is: {
91
91
  radio: function() {
92
92
  return $module.hasClass(className.radio);
93
+ },
94
+ enabled: function() {
95
+ return $input.prop('checked') !== undefined && $input.prop('checked');
96
+ },
97
+ disabled: function() {
98
+ return !module.is.enabled();
93
99
  }
94
100
  },
95
101
 
@@ -122,34 +128,30 @@ $.fn.checkbox = function(parameters) {
122
128
 
123
129
  toggle: function(event) {
124
130
  module.verbose('Determining new checkbox state');
125
- if($input.prop('checked') === undefined || !$input.prop('checked')) {
131
+ if( module.is.disabled() ) {
126
132
  module.enable();
127
133
  }
128
- else if( module.can.disable() ) {
134
+ else if( module.is.enabled() && module.can.disable() ) {
129
135
  module.disable();
130
136
  }
131
137
  },
132
138
  setting: function(name, value) {
133
- if(value !== undefined) {
134
- if( $.isPlainObject(name) ) {
135
- $.extend(true, settings, name);
136
- }
137
- else {
138
- settings[name] = value;
139
- }
139
+ if( $.isPlainObject(name) ) {
140
+ $.extend(true, settings, name);
141
+ }
142
+ else if(value !== undefined) {
143
+ settings[name] = value;
140
144
  }
141
145
  else {
142
146
  return settings[name];
143
147
  }
144
148
  },
145
149
  internal: function(name, value) {
146
- if(value !== undefined) {
147
- if( $.isPlainObject(name) ) {
148
- $.extend(true, module, name);
149
- }
150
- else {
151
- module[name] = value;
152
- }
150
+ if( $.isPlainObject(name) ) {
151
+ $.extend(true, module, name);
152
+ }
153
+ else if(value !== undefined) {
154
+ module[name] = value;
153
155
  }
154
156
  else {
155
157
  return module[name];
@@ -274,14 +276,14 @@ $.fn.checkbox = function(parameters) {
274
276
  else if(found !== undefined) {
275
277
  response = found;
276
278
  }
277
- if($.isArray(invokedResponse)) {
278
- invokedResponse.push(response);
279
+ if($.isArray(returnedValue)) {
280
+ returnedValue.push(response);
279
281
  }
280
- else if(typeof invokedResponse == 'string') {
281
- invokedResponse = [invokedResponse, response];
282
+ else if(returnedValue !== undefined) {
283
+ returnedValue = [returnedValue, response];
282
284
  }
283
285
  else if(response !== undefined) {
284
- invokedResponse = response;
286
+ returnedValue = response;
285
287
  }
286
288
  return found;
287
289
  }
@@ -302,8 +304,8 @@ $.fn.checkbox = function(parameters) {
302
304
  })
303
305
  ;
304
306
 
305
- return (invokedResponse !== undefined)
306
- ? invokedResponse
307
+ return (returnedValue !== undefined)
308
+ ? returnedValue
307
309
  : this
308
310
  ;
309
311
  };