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

3
src/definitions/modules/checkbox.js

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

Loading…
Cancel
Save