hugoloza / gwt-mobile-webkit

Automatically exported from code.google.com/p/gwt-mobile-webkit
2 stars 0 forks source link

IE 6/7 typo #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run under IE 7 (or IE 8 as IE 7)
2.
3.

What is the expected output? What do you see instead?
It crashes

What version of the product are you using? On what operating system?

Please provide any additional information below.

The problem is there is a typo in StorageImplIE6.getItem()

The fix that worked for me is:

@Override
  public native String getItem(String storage, String key) /*-{
    // clean key
    var cleanKey = $wnd.Storage.esc(key);
    this.@com.google.code.gwt.storage.client.impl.StorageImplIE6::load()();
    return $wnd.ieLocalStorageEl.getAttribute(cleanKey);
  }-*/;

Original issue reported on code.google.com by NathanRobinson@gmail.com on 5 Jun 2013 at 11:39