Skip to content
Permalink
Browse files

new JSHINT mixed spaces/tabs is smart enough to not warn on multiline…

… comments, rendering smarttabs useless
  • Loading branch information...
mikesherov committed Oct 22, 2012
1 parent 227c49a commit bede0123d99ed41ef2214edde795927e2a777f8a
Showing with 4 additions and 5 deletions.
  1. +0 −1 src/.jshintrc
  2. +3 −3 src/event.js
  3. +1 −1 src/offset.js
@@ -8,7 +8,6 @@
"maxerr": 100,
"newcap": false,
"quotmark": "double",
"smarttabs": true,
"strict": true,
"sub": true,
"trailing": true,
@@ -160,9 +160,9 @@ jQuery.event = {
handleObj = eventType[ j ];

if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !namespaces || namespaces.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
( !handler || handler.guid === handleObj.guid ) &&
( !namespaces || namespaces.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
eventType.splice( j--, 1 );

if ( handleObj.selector ) {
@@ -172,7 +172,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me
if ( win ) {
win.scrollTo(
!top ? val : jQuery( win ).scrollLeft(),
top ? val : jQuery( win ).scrollTop()
top ? val : jQuery( win ).scrollTop()
);

} else {

0 comments on commit bede012

Please sign in to comment.
You can’t perform that action at this time.