Deprecating the travesty known as HistoryImpl.setUpdateHashOnIE6(). It's no
longer necessary now that we've solved the underlying IE performance problem.
TBR: scottb
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5696 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/impl/HistoryImpl.java b/user/src/com/google/gwt/user/client/impl/HistoryImpl.java
index 5c4949b..4aa6ac9 100644
--- a/user/src/com/google/gwt/user/client/impl/HistoryImpl.java
+++ b/user/src/com/google/gwt/user/client/impl/HistoryImpl.java
@@ -38,8 +38,6 @@
public class HistoryImpl implements HasValueChangeHandlers<String>,
HasHandlers {
- static boolean updateHashOnIE6 = true;
-
public static native String getToken() /*-{
return $wnd.__gwt_historyToken || "";
}-*/;
@@ -49,9 +47,12 @@
* creating a new item. This should be used only for applications with large
* DOM structures that are suffering from performance problems when creating
* a new history item on IE6 and 7.
+ *
+ * @deprecated This is no longer necessary, as the underlying performance
+ * problem has been solved. It is now a no-op.
*/
+ @Deprecated
public static void setUpdateHashOnIE6(boolean updateHash) {
- HistoryImpl.updateHashOnIE6 = updateHash;
}
protected static native void setToken(String token) /*-{
diff --git a/user/src/com/google/gwt/user/client/impl/HistoryImplIE6.java b/user/src/com/google/gwt/user/client/impl/HistoryImplIE6.java
index 905ea73..0d73ba5 100644
--- a/user/src/com/google/gwt/user/client/impl/HistoryImplIE6.java
+++ b/user/src/com/google/gwt/user/client/impl/HistoryImplIE6.java
@@ -199,13 +199,7 @@
Location.reload();
}
- private void updateHash(String token) {
- if (HistoryImpl.updateHashOnIE6) {
- updateHashInternal(token);
- }
- }
-
- private native void updateHashInternal(String token) /*-{
+ private native void updateHash(String token) /*-{
$wnd.location.hash = this.@com.google.gwt.user.client.impl.HistoryImpl::encodeFragment(Ljava/lang/String;)(token);
}-*/;
}