From 967f2e4f3288845f37f398bc29a3059d71e0b4f5 Mon Sep 17 00:00:00 2001
From: Ian Gilman <ian@iangilman.com>
Date: Fri, 2 Aug 2013 09:40:55 -0700
Subject: [PATCH] Changelog for #177; minor doc tweaks

---
 changelog.txt | 1 +
 src/viewer.js | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/changelog.txt b/changelog.txt
index 59980ae9..f8c00d77 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -7,6 +7,7 @@ OPENSEADRAGON CHANGELOG
 * onTouchEnd did not call the correct mouse up handler; fixed (#159)
 * Touch events no longer capture mouse (was causing issues on devices that support both) (#168)
 * You can now provide an onDraw function for overlays to do custom overlay manipulation (#160)
+* Hiding and restoring broke the viewer; fixed (#177)
 
 0.9.129:
 
diff --git a/src/viewer.js b/src/viewer.js
index 9c1c7469..0c6f5969 100644
--- a/src/viewer.js
+++ b/src/viewer.js
@@ -1109,10 +1109,10 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
 
 
 /**
- * _getSafeElemSize returns getElementSize(), but refuses to return 0 for X or y,
- * which was causing some calling operations in updateOnve and openTileSource to
+ * _getSafeElemSize is like getElementSize(), but refuses to return 0 for x or y,
+ * which was causing some calling operations in updateOnce and openTileSource to
  * return NaN.
- * @returns {point}
+ * @returns {Point}
  * @private
  */
 function _getSafeElemSize (oElement) {