Browse Source

Fixes karma test runner to not run Gruntfile, fixed missing destroy method on checkbox

pull/912/head
jlukic 10 years ago
parent
commit
cd98d5866f
2 changed files with 5 additions and 2 deletions
  1. 4
      karma.conf.js
  2. 3
      src/definitions/modules/checkbox.js

4
karma.conf.js

@ -17,7 +17,7 @@ module.exports = function(config) {
// read css from compiled css
'docs/build/uncompressed/**/*.css',
// read js from src js
'src/**/*.js',
'src/definitions/**/*.js',
// require helpers
'test/helpers/*.js',
// require fixtures
@ -40,7 +40,7 @@ module.exports = function(config) {
preprocessors: {
'**/*.html': [],
'src/**/*.js': 'coverage'
'src/definitions/**/*.js': 'coverage'
},
// test results reporter to use

3
src/definitions/modules/checkbox.js

@ -88,6 +88,9 @@ $.fn.checkbox = function(parameters) {
.off(eventNamespace)
.removeData(moduleNamespace)
;
$input
.off(eventNamespace, module.event.keydown)
;
$label
.off(eventNamespace)
;

Loading…
Cancel
Save