Skip to content

Commit ad417b7

Browse files
author
Jack Moore
committed
Removed trailing whitespace
1 parent 64ad2a8 commit ad417b7

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

colorbox/jquery.colorbox.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// License: http://www.opensource.org/licenses/mit-license.php
44
(function ($, document, window) {
55
var
6-
// Default settings object.
6+
// Default settings object.
77
// See http://jacklmoore.com/colorbox for details.
88
defaults = {
99
transition: "elastic",
@@ -50,7 +50,7 @@
5050
onComplete: false,
5151
onCleanup: false,
5252
onClosed: false,
53-
overlayClose: true,
53+
overlayClose: true,
5454
escKey: true,
5555
arrowKey: true,
5656
top: false,
@@ -66,7 +66,7 @@
6666
prefix = 'cbox',
6767
boxElement = prefix + 'Element',
6868

69-
// Events
69+
// Events
7070
event_open = prefix + '_open',
7171
event_load = prefix + '_load',
7272
event_complete = prefix + '_complete',
@@ -139,8 +139,8 @@
139139

140140
// Determine the next and previous members in a group.
141141
function getIndex(increment) {
142-
var
143-
max = $related.length,
142+
var
143+
max = $related.length,
144144
newIndex = (index + increment) % max;
145145

146146
return (newIndex < 0) ? max + newIndex : newIndex;
@@ -165,10 +165,10 @@
165165
if (data == null) {
166166
settings = $.extend({}, defaults);
167167
if (console && console.log) {
168-
console.log('Error: cboxElement missing settings object')
168+
console.log('Error: cboxElement missing settings object');
169169
}
170170
} else {
171-
settings = $.extend({}, data);
171+
settings = $.extend({}, data);
172172
}
173173

174174
for (i in settings) {
@@ -256,7 +256,7 @@
256256

257257
if (settings.rel !== 'nofollow') {
258258
$related = $('.' + boxElement).filter(function () {
259-
var data = $.data(this, colorbox),
259+
var data = $.data(this, colorbox),
260260
relRelated;
261261

262262
if (data) {
@@ -469,16 +469,16 @@
469469
};
470470

471471
publicMethod.position = function (speed, loadedCallback) {
472-
var
473-
top = 0,
474-
left = 0,
472+
var
473+
top = 0,
474+
left = 0,
475475
offset = $box.offset(),
476-
scrollTop,
476+
scrollTop,
477477
scrollLeft;
478478

479479
$window.unbind('resize.' + prefix);
480480

481-
// remove the modal so that it doesn't influence the document width/height
481+
// remove the modal so that it doesn't influence the document width/height
482482
$box.css({top: -9e4, left: -9e4});
483483

484484
scrollTop = $window.scrollTop();
@@ -625,15 +625,15 @@
625625
}
626626

627627
callback = function () {
628-
var preload,
629-
i,
630-
total = $related.length,
631-
iframe,
632-
frameBorder = 'frameBorder',
633-
allowTransparency = 'allowTransparency',
634-
complete,
635-
src,
636-
img,
628+
var preload,
629+
i,
630+
total = $related.length,
631+
iframe,
632+
frameBorder = 'frameBorder',
633+
allowTransparency = 'allowTransparency',
634+
complete,
635+
src,
636+
img,
637637
data;
638638

639639
if (!open) {
@@ -817,7 +817,7 @@
817817
if (settings.scalePhotos) {
818818
setResize = function () {
819819
photo.height -= photo.height * percent;
820-
photo.width -= photo.width * percent;
820+
photo.width -= photo.width * percent;
821821
};
822822
if (settings.mw && photo.width > settings.mw) {
823823
percent = (photo.width - settings.mw) / photo.width;
@@ -889,7 +889,7 @@
889889
$overlay.fadeTo(200, 0);
890890

891891
$box.stop().fadeTo(300, 0, function () {
892-
892+
893893
$box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
894894

895895
trigger(event_purge);

0 commit comments

Comments
 (0)