commit | efdade22ca32df9eb956c9d1a5e1d52668c637dc | [log] [tgz] |
---|---|---|
author | gwt.team.scottb <gwt.team.scottb@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Jul 12 01:25:04 2007 +0000 |
committer | gwt.team.scottb <gwt.team.scottb@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Jul 12 01:25:04 2007 +0000 |
tree | 1364ad1b5cd63493c9df2cfd7eb89408a15ab283 | |
parent | 6d9db044256fe165635e66656f9871facbf85a63 [diff] |
Fix for issue #1320; allow null strings to be passed for second parameter to gwtOnLoad, which indicates the module is being unloaded. Patch by: jat Review by: scottb git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1238 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/mac/src/com/google/gwt/dev/shell/mac/BrowserWidgetSaf.java b/dev/mac/src/com/google/gwt/dev/shell/mac/BrowserWidgetSaf.java index 6d148d1..d23cab8 100644 --- a/dev/mac/src/com/google/gwt/dev/shell/mac/BrowserWidgetSaf.java +++ b/dev/mac/src/com/google/gwt/dev/shell/mac/BrowserWidgetSaf.java
@@ -110,7 +110,8 @@ if (!LowLevelSaf.isObject(jsargs[0])) { return jsFalse; } - if (!LowLevelSaf.isString(jsargs[1])) { + if (!LowLevelSaf.isNull(jsargs[1]) + && !LowLevelSaf.isString(jsargs[1])) { return jsFalse; } String moduleName = LowLevelSaf.coerceToString(execState, jsargs[1]);