Permalink
Browse files

Fixed Scripting.Dictionary errors with IE9 RC1

  • Loading branch information...
1 parent 3cb9f1a commit 6b36bc91d38e7c94b9cb2f0bc7fbb0704ddba180 @sebdeckers sebdeckers committed Mar 2, 2011
Showing with 15 additions and 15 deletions.
  1. +2 −2 Client/src/chat-container.html
  2. +7 −7 Client/src/conference_browse.html
  3. +6 −6 Client/src/history.html
@@ -43,8 +43,8 @@
<IMG
id=mode-avatar
onmousedown="AvatarZoom()"
- onclick="if ( gContainer.Trackers( gContainer.ActiveTrackerAddress ).Avatar.length == 40 ) event.cancelBubble = true;"
- onmouseover="if ( ! gResizeInterval && gContainer.ActiveTrackerAddress.length && gContainer.Trackers( gContainer.ActiveTrackerAddress ).Avatar.length == 40 ) { this.style.borderColor = '#0570ad'; event.cancelBubble = true; }"
+ onclick="if ( gContainer.Trackers.Item( gContainer.ActiveTrackerAddress ).Avatar.length == 40 ) event.cancelBubble = true;"
+ onmouseover="if ( ! gResizeInterval && gContainer.ActiveTrackerAddress.length && gContainer.Trackers.Item( gContainer.ActiveTrackerAddress ).Avatar.length == 40 ) { this.style.borderColor = '#0570ad'; event.cancelBubble = true; }"
onmouseout="this.style.borderColor = 'transparent';"
/>
<NOBR id=mode-top>
@@ -118,7 +118,7 @@
external.windows( 'conference_other' ).close();
var HookAddresses = ( new VBArray( gHooks.Keys() ) ).toArray();
for ( var i = 0; i < HookAddresses.length; ++i )
- gHooks( HookAddresses[i] ).Destroy();
+ gHooks.Item( HookAddresses[i] ).Destroy();
gHooks.RemoveAll();
}
@@ -149,7 +149,7 @@
var HookAddresses = ( new VBArray( gHooks.Keys() ) ).toArray();
for ( var i = 0; i < HookAddresses.length; ++i )
- gHooks( HookAddresses[i] ).Destroy();
+ gHooks.Item( HookAddresses[i] ).Destroy();
gHooks.RemoveAll();
}
else
@@ -209,8 +209,8 @@
var Keys = ( new VBArray( Addresses.Keys() ) ).toArray();
for ( var i = 0; i < Keys.length; ++i )
- if ( external.globals( 'ClientServices' ).Services.Exists( Keys[i] ) && Keys[i] != external.globals( 'ClientServices' ).Services( Keys[i] ).Name )
- GetRoomsList( Keys[i], external.globals( 'ClientServices' ).Services( Keys[i] ).Name );
+ if ( external.globals( 'ClientServices' ).Services.Exists( Keys[i] ) && Keys[i] != external.globals( 'ClientServices' ).Services.Item( Keys[i] ).Name )
+ GetRoomsList( Keys[i], external.globals( 'ClientServices' ).Services.Item( Keys[i] ).Name );
else
GetServiceInfo( Keys[i] );
@@ -327,7 +327,7 @@
var Service;
if ( gServices.Exists( ServiceAddress ) )
- Service = gServices( ServiceAddress );
+ Service = gServices.Item( ServiceAddress );
else
{
Service = new MUCService();
@@ -434,7 +434,7 @@
var Service;
if ( gServices.Exists( ServiceAddress ) )
- Service = gServices( ServiceAddress );
+ Service = gServices.Item( ServiceAddress );
else
{
Service = new MUCService();
@@ -533,7 +533,7 @@
for ( var i = 0; i < Addresses.length; ++i )
{
- var Service = gServices( Addresses[i] );
+ var Service = gServices.Item( Addresses[i] );
var OuterListItem = document.createElement( 'LI' );
var HeaderName = document.createElement( 'NOBR' );
View
@@ -17,7 +17,7 @@
var theirjid = external.wnd.params[1];
var theirnick = theirjid;
if ( external.globals( 'ClientRoster' ).Items.Exists( theirjid ) )
- theirnick = external.globals( 'ClientRoster' ).Items( theirjid ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( theirjid ).Name;
theirnick = theirnick.replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' );
document.getElementById( 'printmynick' ).innerText = mynick;
document.getElementById( 'printmyjid' ).innerText = myjid;
@@ -98,7 +98,7 @@
var theirnick = external.wnd.params[1];
if ( external.globals( 'ClientRoster' ).Items.Exists( external.wnd.params[1] ) )
- theirnick = external.globals( 'ClientRoster' ).Items( external.wnd.params[1] ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( external.wnd.params[1] ).Name;
var OUT = '<DIV class=send><NOBR>' + ( cfg( 'nick' ).length ? cfg( 'nick' ) : cfg( 'username' ) ).replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' ) + '</NOBR></DIV>';
var IN = '<DIV class=recv><NOBR>' + theirnick.replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' ) + '</NOBR></DIV>';
@@ -150,7 +150,7 @@
var cfg = external.globals( 'cfg' );
var theirnick = external.wnd.params[1];
if ( external.globals( 'ClientRoster' ).Items.Exists( external.wnd.params[1] ) )
- theirnick = external.globals( 'ClientRoster' ).Items( external.wnd.params[1] ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( external.wnd.params[1] ).Name;
var OUT = '<DIV class=send><NOBR>' + ( cfg( 'nick' ).length ? cfg( 'nick' ) : cfg( 'username' ) ).replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' ) + '</NOBR></DIV>';
var IN = '<DIV class=recv><NOBR>' + theirnick.replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' ) + '</NOBR></DIV>';
var coll = day.children.tags( 'DIV' );
@@ -276,7 +276,7 @@
var mynick = ( cfg( 'nick' ).length ? cfg( 'nick' ) : cfg( 'username' ) ).substr( 0, maxnamelength + 1 );
var theirnick = external.wnd.params[1];
if ( external.globals( 'ClientRoster' ).Items.Exists( external.wnd.params[1] ) )
- theirnick = external.globals( 'ClientRoster' ).Items( external.wnd.params[1] ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( external.wnd.params[1] ).Name;
theirnick = theirnick.substr( 0, maxnamelength + 1 );
if ( mynick.charAt( maxnamelength ) != '' && mynick.charAt( maxnamelength ) != ' ' )
if ( mynick.indexOf( ' ' ) > 0 )
@@ -396,7 +396,7 @@
var theirjid = external.wnd.params[1];
var theirnick = theirjid;
if ( external.globals( 'ClientRoster' ).Items.Exists( theirjid ) )
- theirnick = external.globals( 'ClientRoster' ).Items( theirjid ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( theirjid ).Name;
theirnick = theirnick.replace( /&/mg, '&amp;' ).replace( / {2}/mg, ' &nbsp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' ).replace( /\n/mg, ' &nbsp;' );
save.WriteLine( '<html>' );
@@ -471,7 +471,7 @@
var theirjid = external.wnd.params[1];
var theirnick = theirjid;
if ( external.globals( 'ClientRoster' ).Items.Exists( theirjid ) )
- theirnick = external.globals( 'ClientRoster' ).Items( theirjid ).Name;
+ theirnick = external.globals( 'ClientRoster' ).Items.Item( theirjid ).Name;
theirnick = theirnick.replace( /&/mg, '&amp;' ).replace( /</mg, '&lt;' ).replace( />/mg, '&gt;' );
save.WriteLine( '<?xml version="1.0"?>' );

0 comments on commit 6b36bc9

Please sign in to comment.