From 354c0f8d578dff41461f1c7e200c621bca3807ef Mon Sep 17 00:00:00 2001 From: ygra Date: Thu, 31 Jan 2013 19:18:32 +0100 Subject: [PATCH 1/2] Fixed comment typos --- src/navigator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/navigator.js b/src/navigator.js index ac2daec2..692f0838 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -6,7 +6,7 @@ * The Navigator provides a small view of the current image as fixed * while representing the viewport as a moving box serving as a frame * of reference in the larger viewport as to which portion of the image - * is currently being examined. The navigators viewport can be interacted + * is currently being examined. The navigator's viewport can be interacted * with using the keyboard or the mouse. * @class * @name OpenSeadragon.Navigator @@ -73,7 +73,7 @@ $.Navigator = function( options ){ style.background = 'transparent'; // We use square bracket notation on the statement below, because float is a keyword. - // This is important for the Google Closure compliler, if nothing else. + // This is important for the Google Closure compiler, if nothing else. /*jshint sub:true */ style['float'] = 'left'; //Webkit @@ -221,7 +221,7 @@ $.extend( $.Navigator.prototype, $.EventHandler.prototype, $.Viewer.prototype, { style.top = topleft.y + 'px'; style.left = topleft.x + 'px'; - var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What's this magic number mean? + var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What does this magic number mean? var height = Math.abs( topleft.y - bottomright.y ) - 3; // make sure width and height are non-negative so IE doesn't throw style.width = Math.max( width, 0 ) + 'px'; From cd32f1d2bdea7b50ad0bcb3d9401d979b5bd19ce Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 31 Jan 2013 10:34:26 -0800 Subject: [PATCH 2/2] Build --- openseadragon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openseadragon.js b/openseadragon.js index 83cfbbfa..df0eb9fa 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -4723,7 +4723,7 @@ function onNext(){ * The Navigator provides a small view of the current image as fixed * while representing the viewport as a moving box serving as a frame * of reference in the larger viewport as to which portion of the image - * is currently being examined. The navigators viewport can be interacted + * is currently being examined. The navigator's viewport can be interacted * with using the keyboard or the mouse. * @class * @name OpenSeadragon.Navigator @@ -4790,7 +4790,7 @@ $.Navigator = function( options ){ style.background = 'transparent'; // We use square bracket notation on the statement below, because float is a keyword. - // This is important for the Google Closure compliler, if nothing else. + // This is important for the Google Closure compiler, if nothing else. /*jshint sub:true */ style['float'] = 'left'; //Webkit @@ -4938,7 +4938,7 @@ $.extend( $.Navigator.prototype, $.EventHandler.prototype, $.Viewer.prototype, { style.top = topleft.y + 'px'; style.left = topleft.x + 'px'; - var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What's this magic number mean? + var width = Math.abs( topleft.x - bottomright.x ) - 3; // TODO: What does this magic number mean? var height = Math.abs( topleft.y - bottomright.y ) - 3; // make sure width and height are non-negative so IE doesn't throw style.width = Math.max( width, 0 ) + 'px';