B2G/gecko/browser/components/tabview/items.js
// Make sure to call _init() from your subclass's constructor.
Make sure to call _init() from your subclass's constructor.
Make sure to call _init () from your subclass ' s constructor .
function Item() {
  this.isAnItem = true;
  this.bounds = null;
  this.zIndex = 0;
  this.container = null;
  this.parent = null;
  this.userSize = null;
   Possible properties:
     cancelClass - A space-delimited list of classes that should cancel a drag
     start - A function to be called when a drag starts
     drag - A function to be called each time the mouse moves during drag
     stop - A function to be called when the drag is done
  this.dragOptions = null;
   Variable: dropOptions
   if the item is set to droppable.
   Possible properties:
     accept - A function to determine if a particular item should be accepted for dropping
     over - A function to be called when an item is over this item
     out - A function to be called when an item leaves this item
     drop - A function to be called when an item is dropped in this item
  this.dropOptions = null;
   Variable: resizeOptions
   Used by <resizable>
   Possible properties:
     minWidth - Minimum width allowable during resize
     minHeight - Minimum height allowable during resize
     aspectRatio - true if we should respect aspect ratio; default false
     start - A function to be called when resizing starts
     resize - A function to be called each time the mouse moves during resize
     stop - A function to be called when the resize is done
  this.resizeOptions = null;
   Variable: isDragging
   Boolean for whether the item is currently being dragged or not.
  this.isDragging = false;
}
function Item ( ) { this . isAnItem = true ; this . bounds = null ; this . zIndex = 0 ; this . container = null ; this . parent = null ; this . userSize = null ; this . dragOptions = null ; this . dropOptions = null ; this . resizeOptions = null ; this . isDragging = false ; }
Make sure to call _init() from your subclass's constructor.
Make sure to call _init () from your subclass ' s constructor .
// Variable: isAnItem // Always true for Items // Variable: bounds // The position and size of this Item, represented as a <Rect>. // This should never be modified without using setBounds() // Variable: zIndex // The z-index for this item. // Variable: container // The outermost DOM element that describes this item on screen. // Variable: parent // The groupItem that this item is a child of // Variable: userSize // A <Point> that describes the last size specifically chosen by the user. // Used by unsquish. // Variable: dragOptions // Used by <draggable> // // Possible properties: //   cancelClass - A space-delimited list of classes that should cancel a drag //   start - A function to be called when a drag starts //   drag - A function to be called each time the mouse moves during drag //   stop - A function to be called when the drag is done // Variable: dropOptions // Used by <draggable> if the item is set to droppable. // // Possible properties: //   accept - A function to determine if a particular item should be accepted for dropping //   over - A function to be called when an item is over this item //   out - A function to be called when an item leaves this item //   drop - A function to be called when an item is dropped in this item // Variable: resizeOptions // Used by <resizable> // // Possible properties: //   minWidth - Minimum width allowable during resize //   minHeight - Minimum height allowable during resize //   aspectRatio - true if we should respect aspect ratio; default false //   start - A function to be called when resizing starts //   resize - A function to be called each time the mouse moves during resize //   stop - A function to be called when the resize is done // Variable: isDragging // Boolean for whether the item is currently being dragged or not.