11window . cls || ( window . cls = { } ) ;
22
3- /**
4- * @constructor
5- * @extends ViewBase
6- */
7-
83cls . EventType = function ( type )
94{
105 this . type = type ;
@@ -52,7 +47,7 @@ cls.RTListUpdateCTX.prototype = new function()
5247 list . splice ( index , 1 ) ;
5348 else
5449 opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
55- "_handle_expand_listener failed in cls.EvenetListeners ." )
50+ "_handle_expand_listener failed in cls.EventListeners ." )
5651
5752 this . check_is_updated ( ) ;
5853 } ;
@@ -66,7 +61,7 @@ cls.RTListUpdateCTX.prototype = new function()
6661
6762 this . check_is_updated = function ( )
6863 {
69- if ( this . rt_id_list . every ( this . _check_rt ) )
64+ if ( this . rt_id_list . every ( this . _check_rt , this ) )
7065 this . _cb ( this ) ;
7166 } ;
7267
@@ -76,18 +71,17 @@ cls.RTListUpdateCTX.prototype = new function()
7671 this . rt_map = { } ;
7772 this . win_id_map = { } ;
7873 this . expanded_map = { } ;
79- this . handle_expand_listener = this . _handle_expand_listener . bind ( this ) ;
80- this . _check_rt = this . _check_rt . bind ( this ) ;
74+ this . handle_expand_listener_bound = this . _handle_expand_listener . bind ( this ) ;
8175 this . _cb = cb ;
8276 } ;
8377} ;
8478
85- cls . EvenetListeners = function ( view )
79+ cls . EventListeners = function ( view )
8680{
8781 this . _init ( view ) ;
8882} ;
8983
90- cls . EvenetListeners . prototype = new function ( )
84+ cls . EventListeners . prototype = new function ( )
9185{
9286
9387 /* interface */
@@ -177,7 +171,7 @@ cls.EvenetListeners.prototype = new function()
177171 }
178172 else
179173 opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
180- "failed to get the window object in cls.EvenetListeners ." )
174+ "failed to get the window object in cls.EventListeners ." )
181175 } ;
182176
183177 this . _get_event_types = function ( ctx , rt_id )
@@ -210,7 +204,7 @@ cls.EvenetListeners.prototype = new function()
210204 {
211205 ctx . expanded_map [ rt_id ] . push ( type ) ;
212206 var cb = this . _handle_dom_search . bind ( this , ev_type ,
213- ctx . handle_expand_listener ) ;
207+ ctx . handle_expand_listener_bound ) ;
214208 ev_type . search_listeners ( rt_id , obj_id , type , cb ) ;
215209 }
216210 return ev_type ;
@@ -224,7 +218,7 @@ cls.EvenetListeners.prototype = new function()
224218 }
225219 else
226220 opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
227- "failed to retrieve the event names in cls.EvenetListeners ." )
221+ "failed to retrieve the event names in cls.EventListeners ." )
228222 } ;
229223
230224 this . _handle_dom_search = function ( ev_type , cb )
@@ -261,7 +255,7 @@ cls.EvenetListeners.prototype = new function()
261255 }
262256 else
263257 opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
264- "requestGetEventListeners failed in cls.EvenetListeners ." )
258+ "requestGetEventListeners failed in cls.EventListeners ." )
265259 } ;
266260
267261 this . _get_ev_type = function ( rt_id , type )
@@ -322,12 +316,12 @@ cls.EvenetListeners.prototype = new function()
322316 var ev_type = this . _get_ev_type ( rt_id , type ) ;
323317 if ( ev_type )
324318 {
325- var cb = this . _handle_dom_search . bind ( this , ev_type , cb ) ;
326- ev_type . search_listeners ( rt_id , obj_id , type , cb ) ;
319+ var inner_cb = this . _handle_dom_search . bind ( this , ev_type , cb ) ;
320+ ev_type . search_listeners ( rt_id , obj_id , type , inner_cb ) ;
327321 }
328322 else
329323 opera . postError ( ui_strings . S_DRAGONFLY_INFO_MESSAGE +
330- "failed to find event names object in cls.EvenetListeners ." )
324+ "failed to find event names object in cls.EventListeners ." )
331325
332326 } ;
333327
0 commit comments