diff --git a/README.md b/README.md index 2985076..ae91e29 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,7 @@ Files Changed: jquery.colorbox.js/jquery.colorbox-min.js * Added 'innerWidth' and 'innerHeight' options to allow people to easily set the size dimensions for Colorbox, without having to anticipate the size of the borders and buttons. * Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes. -* Bug fix: In Safari, positioning occassionally incorrect when using '100%' dimensions. +* Bug fix: In Safari, positioning occasionally incorrect when using '100%' dimensions. * Bug fix: In IE6, the background overlay is briefly not full size when first viewing. * Bug fix: In Firefox, opening Colorbox causes a split second shift with a small minority of webpage layouts. * Simplified code in a few areas. diff --git a/jquery.colorbox.js b/jquery.colorbox.js index 12dd1b2..a4e2d15 100644 --- a/jquery.colorbox.js +++ b/jquery.colorbox.js @@ -155,7 +155,7 @@ $prev, $close, $groupControls, - $events = $(''), // $({}) would be prefered, but there is an issue with jQuery 1.4.2 + $events = $(''), // $({}) would be preferred, but there is an issue with jQuery 1.4.2 // Variables for cached values or use across multiple functions settings, @@ -982,7 +982,7 @@ return; } - // A small pause because some browsers will occassionaly report a + // A small pause because some browsers will occasionally report a // img.width and img.height of zero immediately after the img.onload fires setTimeout(function(){ var percent;