Skip to content

Commit 73f3009

Browse files
author
Kevin Morris
committed
Adds whitespace for clarity
1 parent f3a3ccb commit 73f3009

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/jquery.loadJSON.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181

182182
if (iPosition > 1000000) {
183183
href = href.substr(0, iPosition) + '&' + name + '=' + value + href.substr(iPosition);
184+
184185
} else {
185186
iPosition = href.indexOf('?');
186187

@@ -190,9 +191,11 @@
190191
href = href + '?' + name + '=' + value;
191192
}
192193
}
194+
193195
} else {// If no href exists, set href to value
194196
href = value;
195197
}
198+
196199
$element.attr('href', href);
197200
break;
198201

@@ -203,6 +206,7 @@
203206
var iPosition = value.indexOf('$');
204207
var src = '';
205208
var alt = '';
209+
206210
if (iPosition > 0) {
207211
src = value.substring(0, iPosition);
208212
alt = value.substring(iPosition + 1);
@@ -213,6 +217,7 @@
213217
var iPositionEnd = value.indexOf('.');
214218
alt = value.substring(iPositionStart, iPositionEnd);
215219
}
220+
216221
$element.attr('src', src);
217222
$element.attr('alt', alt);
218223

@@ -257,6 +262,7 @@
257262
jQuery('#' + prop, element).length > 0 ? jQuery('#' + prop, element) :
258263
jQuery('[name="' + prop + '"]', element).length > 0 ? jQuery('[name="' + prop + '"]', element) :
259264
jQuery('[rel="' + prop + '"]');
265+
260266
if (child.length != 0) {
261267
browseJSON(obj[prop], jQuery(child, element), prop);
262268
}

0 commit comments

Comments
 (0)