Commits

Rune Halvorsen  committed 20d0b41

Whitespace cleanup

  • Participants
  • Parent commits 188635d

Comments (0)

Files changed (1)

File src/ui-scripts/window.js

 /**
-  * @constructor 
+  * @constructor
   */
 
 var UIWindowBase = new function()
   }
 
   this.default_width = 500;
-  this.default_height = 300; 
+  this.default_height = 300;
   this.default_top = 100;
   this.default_left = 100;
-  
-  
 
-  var 
-  min_width = 200, 
+
+
+  var
+  min_width = 200,
   min_height = 100,
   min_z_index = 100;
 
   {
     var win = viewport.render(templates._window(this));
 
-    
+
     if( this.toolbar )
     {
       this.toolbar.setDimensions();
       this.toolbar.setup(this.view_id);
     }
-    
+
     this.container.setup(this.view_id);
     this.statusbar.setup(this.view_id);
 
 
   this._delete = function(id)
   {
-    var 
-    _id = '', 
+    var
+    _id = '',
     i = 0;
     for( ; ( _id = ids[i] ) && _id != id; i++);
     if(_id)
     for( ; id = ids[i]; i++)
     {
       win = document.getElementById( id );
-      if( win ) 
+      if( win )
       {
         if( ( z = parseInt( win.style.zIndex ) ) && z > min_z_index )
         win.style.zIndex = z - 1;
     var win = null, id = '', i = 0;
     for( ; id = ids[i]; i++)
     {
-      if( ui_windows[id].view_id == view_id ) 
+      if( ui_windows[id].view_id == view_id )
       {
         return ui_windows[id];
       }
 
  /* event handling */
 
-  var 
-  handlers = 
+  var
+  handlers =
   {
     'window-scale-top-left': true,
     'window-scale-top': true,
   current_target = null,
   __event = null,
   interval = 0,
-  current_style = null, 
+  current_style = null,
   update_handler = null,
   left_delta = 0,
   top_delta = 0,
     __event = event;
     focus_catcher.focus();
   },
-  
+
   force_reflow_shadows = function()
   {
     if(window_shadows)
       {
         current_style.height = ( current_target.height = height ) + 'px';
         current_style.top = ( current_target.top = top ) + 'px';
-        current_target.update();  
+        current_target.update();
         focus_catcher.focus();
       }
     }
       if( width > min_width )
       {
         current_style.width = ( current_target.width = width ) + 'px';
-        current_target.update(); 
+        current_target.update();
         focus_catcher.focus();
       }
     }
       {
         current_style.width = ( current_target.width = width ) + 'px';
         current_style.left = ( current_target.left = left ) + 'px';
-        current_target.update(); 
+        current_target.update();
         focus_catcher.focus();
       }
     }
       if( height > min_height )
       {
         current_style.height = ( current_target.height = height ) + 'px';
-        current_target.update(); 
+        current_target.update();
         focus_catcher.focus();
         force_reflow_shadows();
       }
     if(!viewport)
     {
       self.showWindow = function(){};
-      opera.postError(ui_strings.DRAGONFLY_INFO_MESSAGE +  
+      opera.postError(ui_strings.DRAGONFLY_INFO_MESSAGE +
         'missing view port in init in windows');
     }
   }
   document.addEventListener('mousedown', mousedown, false);
   document.addEventListener('click', mouseclick, false);
   window.addEventListener('load', init, false);
-  
+
 }
 
 /**
-  * @constructor 
+  * @constructor
   * @extends UIWindowBase
   */