B2G/gecko/browser/components/tabview/items.js
// Returns true if this Item overlaps with any other Item on the screen.
Returns true if this Item overlaps with any other Item on the screen.
Returns true if this Item overlaps with any other Item on the screen .
function Item_overlapsWithOtherItems() {
    var self = this;
    var items = Items.getTopLevelItems();
    var bounds = this.getBounds();
    return items.some(function(item) {
      if (item == self) 
        return false;
      var myBounds = item.getBounds();
      return myBounds.intersects(bounds);
    } );
  }
function Item_overlapsWithOtherItems ( ) { var self = this ; var items = Items . getTopLevelItems ( ) ; var bounds = this . getBounds ( ) ; return items . some ( function ( item ) { if ( item == self ) return false ; var myBounds = item . getBounds ( ) ; return myBounds . intersects ( bounds ) ; } ) ; }
Returns true if this Item overlaps with any other Item on the screen.
Returns true if this Item overlaps with any other Item on the screen .
// can't overlap with yourself.