Commit 135bb4ff authored by Mike Sherov's avatar Mike Sherov Committed by Dave Methvin

Add undef:true to JSHint now that it understands hoisting

also add smarttabs:true and fix some smarttabs spacing issues
parent 8d9025ca
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
expr: true, expr: true,
curly: true, curly: true,
trailing: true, trailing: true,
undef: true,
smarttabs: true,
predef: [ predef: [
"define", "define",
"DOMParser" "DOMParser"
......
This diff is collapsed.
...@@ -21,21 +21,21 @@ var r20 = /%20/g, ...@@ -21,21 +21,21 @@ var r20 = /%20/g,
_load = jQuery.fn.load, _load = jQuery.fn.load,
/* Prefilters /* Prefilters
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
* 2) These are called: * 2) These are called:
* - BEFORE asking for a transport * - BEFORE asking for a transport
* - AFTER param serialization (s.data is a string if s.processData is true) * - AFTER param serialization (s.data is a string if s.processData is true)
* 3) key is the dataType * 3) key is the dataType
* 4) the catchall symbol "*" can be used * 4) the catchall symbol "*" can be used
* 5) execution will start with transport dataType and THEN continue down to "*" if needed * 5) execution will start with transport dataType and THEN continue down to "*" if needed
*/ */
prefilters = {}, prefilters = {},
/* Transports bindings /* Transports bindings
* 1) key is the dataType * 1) key is the dataType
* 2) the catchall symbol "*" can be used * 2) the catchall symbol "*" can be used
* 3) selection will start with transport dataType and THEN go to "*" if needed * 3) selection will start with transport dataType and THEN go to "*" if needed
*/ */
transports = {}, transports = {},
// Document location // Document location
......
...@@ -27,11 +27,11 @@ function createActiveXHR() { ...@@ -27,11 +27,11 @@ function createActiveXHR() {
// (This is still attached to ajaxSettings for backward compatibility) // (This is still attached to ajaxSettings for backward compatibility)
jQuery.ajaxSettings.xhr = window.ActiveXObject ? jQuery.ajaxSettings.xhr = window.ActiveXObject ?
/* Microsoft failed to properly /* Microsoft failed to properly
* implement the XMLHttpRequest in IE7 (can't request local files), * implement the XMLHttpRequest in IE7 (can't request local files),
* so we use the ActiveXObject when it is available * so we use the ActiveXObject when it is available
* Additionally XMLHttpRequest can be disabled in IE7/IE8 so * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
* we need a fallback. * we need a fallback.
*/ */
function() { function() {
return !this.isLocal && createStandardXHR() || createActiveXHR(); return !this.isLocal && createStandardXHR() || createActiveXHR();
} : } :
......
...@@ -185,9 +185,9 @@ jQuery.event = { ...@@ -185,9 +185,9 @@ jQuery.event = {
handleObj = eventType[ j ]; handleObj = eventType[ j ];
if ( ( mappedTypes || origType === handleObj.origType ) && if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) && ( !handler || handler.guid === handleObj.guid ) &&
( !namespaces || namespaces.test( handleObj.namespace ) ) && ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
eventType.splice( j--, 1 ); eventType.splice( j--, 1 );
if ( handleObj.selector ) { if ( handleObj.selector ) {
......
...@@ -227,7 +227,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me ...@@ -227,7 +227,7 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me
if ( win ) { if ( win ) {
win.scrollTo( win.scrollTo(
!top ? val : jQuery( win ).scrollLeft(), !top ? val : jQuery( win ).scrollLeft(),
top ? val : jQuery( win ).scrollTop() top ? val : jQuery( win ).scrollTop()
); );
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment