aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-10-06 08:21:40 +0400
committerOleg <markelog@gmail.com>2013-10-07 03:16:18 +0400
commitb561f5ab0a5e13f8203307016a02ee965a8be7d3 (patch)
tree55740fb30ccc3ecbd8ec0307dca4dd3c2925cfe2
parent3bcd04f528597dac0a7084865461574ab4a06465 (diff)
downloadjquery-b561f5ab0a5e13f8203307016a02ee965a8be7d3.tar.gz
jquery-b561f5ab0a5e13f8203307016a02ee965a8be7d3.zip
Fix some code style inconsistencies
-rw-r--r--src/css.js5
-rw-r--r--src/css/var/getStyles.js2
-rw-r--r--src/css/var/rmargin.js2
-rw-r--r--src/css/var/rnumnonpx.js2
-rw-r--r--src/intro.js4
-rw-r--r--src/manipulation/support.js4
-rw-r--r--src/offset.js2
-rw-r--r--src/selector-sizzle.js2
8 files changed, 10 insertions, 13 deletions
diff --git a/src/css.js b/src/css.js
index 883adf1ae..3e319bfc2 100644
--- a/src/css.js
+++ b/src/css.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
diff --git a/src/css/var/getStyles.js b/src/css/var/getStyles.js
index bcbd22017..26cc0a25e 100644
--- a/src/css/var/getStyles.js
+++ b/src/css/var/getStyles.js
@@ -2,4 +2,4 @@ define(function() {
return function( elem ) {
return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
};
-}); \ No newline at end of file
+});
diff --git a/src/css/var/rmargin.js b/src/css/var/rmargin.js
index 7597cd311..da0438db6 100644
--- a/src/css/var/rmargin.js
+++ b/src/css/var/rmargin.js
@@ -1,3 +1,3 @@
define(function() {
return (/^margin/);
-}); \ No newline at end of file
+});
diff --git a/src/css/var/rnumnonpx.js b/src/css/var/rnumnonpx.js
index ec4fd615c..c93be2850 100644
--- a/src/css/var/rnumnonpx.js
+++ b/src/css/var/rnumnonpx.js
@@ -2,4 +2,4 @@ define([
"../../var/pnum"
], function( pnum ) {
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-}); \ No newline at end of file
+});
diff --git a/src/intro.js b/src/intro.js
index c39d37b34..01803d9af 100644
--- a/src/intro.js
+++ b/src/intro.js
@@ -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
diff --git a/src/manipulation/support.js b/src/manipulation/support.js
index 6f4882ef6..9463a01f1 100644
--- a/src/manipulation/support.js
+++ b/src/manipulation/support.js
@@ -1,8 +1,8 @@
define([
"../var/support"
-], function( support ){
+], function( support ) {
-(function () {
+(function() {
var input,
fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) );
diff --git a/src/offset.js b/src/offset.js
index 6396e0f38..0aeaad26e 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -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
diff --git a/src/selector-sizzle.js b/src/selector-sizzle.js
index 3dbfa3cd0..7d3926b1a 100644
--- a/src/selector-sizzle.js
+++ b/src/selector-sizzle.js
@@ -1,7 +1,7 @@
define([
"./core",
"sizzle"
-], function ( jQuery, Sizzle ) {
+], function( jQuery, Sizzle ) {
jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;