Skip to content
Permalink
Browse files

Fix some code style inconsistencies

  • Loading branch information
markelog committed Oct 6, 2013
1 parent 3bcd04f commit b561f5ab0a5e13f8203307016a02ee965a8be7d3
Showing with 10 additions and 13 deletions.
  1. +1 −4 src/css.js
  2. +1 −1 src/css/var/getStyles.js
  3. +1 −1 src/css/var/rmargin.js
  4. +1 −1 src/css/var/rnumnonpx.js
  5. +2 −2 src/intro.js
  6. +2 −2 src/manipulation/support.js
  7. +1 −1 src/offset.js
  8. +1 −1 src/selector-sizzle.js
@@ -60,9 +60,6 @@ function vendorPropName( style, name ) {
return origName;
}




function setPositiveNumber( elem, value, subtract ) {
var matches = rnumsplit.exec( value );
return matches ?
@@ -371,7 +368,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {

// Support: Android 2.3
jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
function ( elem, computed ) {
function( elem, computed ) {
if ( computed ) {
// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
// Work around by temporarily setting element display to inline-block
@@ -2,4 +2,4 @@ define(function() {
return function( elem ) {
return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
};
});
});
@@ -1,3 +1,3 @@
define(function() {
return (/^margin/);
});
});
@@ -2,4 +2,4 @@ define([
"../../var/pnum"
], function( pnum ) {
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
});
});
@@ -12,7 +12,7 @@
* Date: @DATE
*/

(function ( window, factory ) {
(function( window, factory ) {

if ( typeof module === "object" && typeof module.exports === "object" ) {
// Expose a jQuery-making factory as module.exports in loaders that implement the Node
@@ -31,7 +31,7 @@
}

// Pass this, window may not be defined yet
}(this, function ( window ) {
}(this, function( window ) {

// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if
@@ -1,8 +1,8 @@
define([
"../var/support"
], function( support ){
], function( support ) {

(function () {
(function() {
var input,
fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) );
@@ -188,7 +188,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
// rather than make the css module depend on the offset module, we just check for it here
jQuery.each( [ "top", "left" ], function( i, prop ) {
jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
function ( elem, computed ) {
function( elem, computed ) {
if ( computed ) {
computed = curCSS( elem, prop );
// if curCSS returns percentage, fallback to offset
@@ -1,7 +1,7 @@
define([
"./core",
"sizzle"
], function ( jQuery, Sizzle ) {
], function( jQuery, Sizzle ) {

jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;

0 comments on commit b561f5a

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