File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,14 @@ module.exports = function(grunt) {
65
65
} ,
66
66
} ,
67
67
jasmine : {
68
- files : [ 'test/**/*.html' ]
68
+ src : 'src/<%= pkg.name %>.js' ,
69
+ options : {
70
+ specs : 'test/*_spec.js' ,
71
+ vendor : [
72
+ 'http://code.jquery.com/jquery-1.10.1.min.js' ,
73
+ 'http://code.jquery.com/ui/1.10.3/jquery-ui.min.js'
74
+ ]
75
+ }
69
76
} ,
70
77
jshint : {
71
78
gruntfile : {
Original file line number Diff line number Diff line change 17
17
options = options || { } ;
18
18
options . touchonly = options . touchonly !== undefined ? options . touchonly : true ; // by default only show it if touch device
19
19
20
- if ( options . touchonly === true && ! ( "ontouchend" in document ) )
20
+ if ( options . touchonly === true && ! ( "ontouchend" in document ) ) {
21
21
return $ ( this ) ;
22
+ }
22
23
23
24
return $ ( this ) . each ( function ( i , obj ) {
24
25
var $t = $ ( this ) ,
56
57
57
58
e . preventDefault ( ) ;
58
59
59
- if ( newval < minval || newval > maxval )
60
+ if ( newval < minval || newval > maxval ) {
60
61
return ;
62
+ }
61
63
62
64
$t . slider ( 'value' , newval ) ;
63
65
77
79
78
80
// adjust the width so we don't break the original layout
79
81
var bOuterWidth = $buttons . css ( {
80
- marginLeft : ( ( o . where == 'after' && ! o . isRTL ) || ( o . where == 'before' && o . isRTL ) ? 10 :0 ) ,
81
- marginRight : ( ( o . where == 'before' && ! o . isRTL ) || ( o . where == 'after' && o . isRTL ) ? 10 :0 )
82
+ marginLeft : ( ( o . where === 'after' && ! o . isRTL ) || ( o . where = == 'before' && o . isRTL ) ? 10 :0 ) ,
83
+ marginRight : ( ( o . where === 'before' && ! o . isRTL ) || ( o . where = == 'after' && o . isRTL ) ? 10 :0 )
82
84
} ) . outerWidth ( true ) + 5 ;
83
85
var tOuterWidth = $t . outerWidth ( true ) ;
84
86
$t . css ( 'display' , 'inline-block' ) . width ( tOuterWidth - bOuterWidth ) ;
You can’t perform that action at this time.
0 commit comments