@@ -75,7 +75,7 @@ cls.JSSourceTooltip = function(view)
7575 ( _filter && _is_filter_focus ) ||
7676 CstSelect . is_active )
7777 return ;
78-
78+
7979 if ( ! _win_selection . isCollapsed && ! _shift_key )
8080 {
8181 _clear_selection ( ) ;
@@ -96,7 +96,7 @@ cls.JSSourceTooltip = function(view)
9696 _identifier_out_count += 1 ;
9797 }
9898 }
99-
99+
100100 while ( _mouse_positions . length > MAX_MOUSE_POS_COUNT )
101101 _mouse_positions . shift ( ) ;
102102
@@ -115,7 +115,7 @@ cls.JSSourceTooltip = function(view)
115115 var char_offset = _get_char_offset ( line , offset_x ) ;
116116 if ( char_offset > - 1 &&
117117 ! ( _last_poll . script == script &&
118- _last_poll . line_number == line_number &&
118+ _last_poll . line_number == line_number &&
119119 _last_poll . char_offset == char_offset &&
120120 _last_poll . shift_key == _shift_key ) )
121121 {
@@ -124,15 +124,15 @@ cls.JSSourceTooltip = function(view)
124124 _last_poll . char_offset = char_offset ;
125125 _last_poll . center = center ;
126126 _last_poll . shift_key = _shift_key ;
127- var line_count = Math . floor ( offset_y / _line_height ) ;
128- var box =
127+ var line_count = Math . floor ( offset_y / _line_height ) ;
128+ var box =
129129 {
130130 top : _container_box . top + line_count * _line_height ,
131131 bottom : _container_box . top + ( line_count + 1 ) * _line_height ,
132132 mouse_x : Math . floor ( center . x ) ,
133133 mouse_y : Math . floor ( center . y )
134134 } ;
135- _handle_poll_position ( script , line_number , char_offset ,
135+ _handle_poll_position ( script , line_number , char_offset ,
136136 box , _shift_key ) ;
137137 }
138138 }
@@ -168,8 +168,8 @@ cls.JSSourceTooltip = function(view)
168168 }
169169 } ;
170170
171- var _handle_script = function ( status ,
172- message ,
171+ var _handle_script = function ( status ,
172+ message ,
173173 script ,
174174 line_number ,
175175 char_offset ,
@@ -196,7 +196,7 @@ cls.JSSourceTooltip = function(view)
196196 var line_count = selection . start_line - _view . getTopLine ( ) ;
197197 if ( line_count < 0 )
198198 line_count = 0 ;
199-
199+
200200 box . top = _container_box . top + line_count * _line_height ;
201201 var end_line = selection . end_line ;
202202 if ( end_line > _view . getBottomLine ( ) )
@@ -212,7 +212,7 @@ cls.JSSourceTooltip = function(view)
212212 if ( message [ TYPE ] == "object" )
213213 {
214214 var object = message [ OBJECT ] ;
215- var model = new cls . InspectableJSObject ( rt_id ,
215+ var model = new cls . InspectableJSObject ( rt_id ,
216216 object [ OBJECT_ID ] ,
217217 "" ,
218218 object [ CLASS_NAME ] ) ;
@@ -249,8 +249,8 @@ cls.JSSourceTooltip = function(view)
249249 else
250250 value = message [ VALUE ] ;
251251
252- var tmpl = [ "div" ,
253- [ "value" , value , "class" , message [ TYPE ] ] ,
252+ var tmpl = [ "div" ,
253+ [ "value" , value , "class" , message [ TYPE ] ] ,
254254 "class" , "js-tooltip" ] ;
255255 _tooltip . show ( tmpl , box ) ;
256256 }
@@ -340,7 +340,7 @@ cls.JSSourceTooltip = function(view)
340340 end_offset : end . offset - 1 } ;
341341 }
342342 }
343-
343+
344344 return null ;
345345 } ;
346346
@@ -561,7 +561,7 @@ cls.JSSourceTooltip = function(view)
561561 var index = match_index ;
562562
563563 if ( previous_token [ VALUE ] == "[" )
564- bracket_stack . push ( previous_token [ VALUE ] ) ;
564+ bracket_stack . push ( previous_token [ VALUE ] ) ;
565565
566566 if ( shift_key && previous_token [ VALUE ] == "(" )
567567 parens_stack . push ( previous_token [ VALUE ] ) ;
@@ -743,7 +743,7 @@ cls.JSSourceTooltip = function(view)
743743 }
744744 else
745745 break ;
746- }
746+ }
747747
748748 while ( true )
749749 {
@@ -776,7 +776,7 @@ cls.JSSourceTooltip = function(view)
776776 {
777777 if ( node . nodeType == Node . ELEMENT_NODE )
778778 _walk_dom ( ctx , node . firstChild ) ;
779-
779+
780780 if ( node . nodeType == Node . TEXT_NODE )
781781 {
782782 if ( node == ctx . target_node )
@@ -786,7 +786,7 @@ cls.JSSourceTooltip = function(view)
786786 }
787787 node = node . nextSibling ;
788788 }
789- return ctx ;
789+ return ctx ;
790790 } ;
791791
792792 var _get_max_right = function ( )
@@ -847,7 +847,7 @@ cls.JSSourceTooltip = function(view)
847847 // translates the current selected identifier to dimension boxes
848848 // position and dimensions are absolute to the source text
849849 var line_number = _identifier . start_line ;
850-
850+
851851 var start_offset = _identifier . start_offset ;
852852 var end_offset = 0 ;
853853 _identifier_boxes = [ ] ;
@@ -972,7 +972,7 @@ cls.JSSourceTooltip = function(view)
972972 _win_selection = window . getSelection ( ) ;
973973 _poll_interval = setInterval ( _poll_position , POLL_INTERVAL ) ;
974974 }
975- }
975+ }
976976 } ;
977977
978978 var _onhide = function ( )
@@ -1050,7 +1050,7 @@ cls.JSSourceTooltip = function(view)
10501050 {
10511051 _is_filter_focus = false
10521052 } ;
1053-
1053+
10541054 var _oninput = function ( event , target )
10551055 {
10561056 _filter . search_delayed ( target . value ) ;
0 commit comments