maarteti/myplan — Issue #5: 37 - Problems with variable storageField in historyStorage 
Author: maarteti
Created: 2011-11-23 11:30:32+00:00
State: open

Initially I was testing the example provided by O'Reilly Mail
(http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html?page=5)
and it's using the library dhtmlHistory.js which is the older version of
rsh.js. So, I decided to use to the newest version (RSH 0.6) with it.

Unfortunately, it was prompting the following error:
"'this.storageField' has no properties"

After using Firebug to see what was happening, I found out that the
variable 'storageField' does not have "value" property as it's stayed on lines:
# 597 within "reset" method,
# 643 within "loadHashTable" method,
# 654 within "saveHashTable" method
of the released RSH 0.6.

The possible solution to this problem looks very straight forward: change
"this.storageField.value" for "this.storageField" and actually it worked.
But I think there is a reason for placing a "value" property on it.

Could someone please confirm this bug on the code?

Original link: http://code.google.com/p/reallysimplehistory/issues/detail?id=37