Make sure that when multiple variables are being declared that assignments are each done on their own line.
This commit is contained in:
parent
b5b3c73db3
commit
fb48ae8e6c
12 changed files with 98 additions and 45 deletions
10
src/core.js
10
src/core.js
|
@ -311,8 +311,11 @@ jQuery.fn = jQuery.prototype = {
|
|||
jQuery.fn.init.prototype = jQuery.fn;
|
||||
|
||||
jQuery.extend = jQuery.fn.extend = function() {
|
||||
// copy reference to target object
|
||||
var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options, name, src, copy, copyIsArray, clone;
|
||||
var options, name, src, copy, copyIsArray, clone,
|
||||
target = arguments[0] || {},
|
||||
i = 1,
|
||||
length = arguments.length,
|
||||
deep = false;
|
||||
|
||||
// Handle a deep copy situation
|
||||
if ( typeof target === "boolean" ) {
|
||||
|
@ -678,7 +681,8 @@ jQuery.extend({
|
|||
},
|
||||
|
||||
merge: function( first, second ) {
|
||||
var i = first.length, j = 0;
|
||||
var i = first.length,
|
||||
j = 0;
|
||||
|
||||
if ( typeof second.length === "number" ) {
|
||||
for ( var l = second.length; j < l; j++ ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue