Rename window.options to be window._options, quick and dirty restoration of backward compatibility (37886, r=jst, a=vidur).

This commit is contained in:
brendan%mozilla.org 2000-10-14 02:26:36 +00:00
parent c79f274537
commit b8a0b3b798

View File

@ -1243,7 +1243,7 @@ nsJSContext::InitClasses()
// Initialize the options object and set default options in mContext
if (NS_SUCCEEDED(rv)) {
JSObject *optionsObj = ::JS_DefineObject(mContext, globalObj, "options",
JSObject *optionsObj = ::JS_DefineObject(mContext, globalObj, "_options",
&OptionsClass, nsnull, 0);
if (optionsObj &&
::JS_DefineProperties(mContext, optionsObj, OptionsProperties)) {