views:

118

answers:

0

I've been trying to set up a storage listener, similar to the one seen here: http://developer.apple.com/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Name-ValueStorage/Name-ValueStorage.html#//apple_ref/doc/uid/TP40007256-CH6-SW6

However, when a set a value like so:

localStorage.setItem('hello', 'world');

or even

localStorage.hello = 'world';

...the storage event object is coming back with undefined values for several properties such as key, oldValue, and uri.

Am I missing something? Perhaps this isn't fully implemented in webkit?

EDIT: I was missing something, my marbles. It works fine, was just looping through the wrong object when checking for values.