* @return {Mosaic.Row} The row containing the tile with a given index.
*/
Mosaic.Column.prototype.getRowByTileIndex = function(index) {
- for (var r = 0; r !== this.rows_.length; r++)
+ for (var r = 0; r !== this.rows_.length; r++) {
if (this.rows_[r].hasTile(index))
return this.rows_[r];
-
+ }
return null;
};
var rowIndex = this.getNextRowIndex();
if (!this.newRow_)
- this.newRow_ = new Mosaic.Row(this.getNextTileIndex());
+ this.newRow_ = new Mosaic.Row(this.getNextTileIndex());
this.tiles_.push(tile);
this.newRow_.add(tile);
metadata,
undefined, // Media type.
ThumbnailLoader.UseEmbedded.USE_EMBEDDED,
- 2); // Preloaders have always higher priotity, so the preload images
- // are loaded as soon as possible.
+ // Preloaders have always higher priotity, so the preload images
+ // are loaded as soon as possible.
+ 2);
}
// Dimensions are always acquired from the metadata. For local files, it is
if (metadata.media && metadata.media.width) {
width = metadata.media.width;
height = metadata.media.height;
- } else if (metadata.drive && metadata.drive.imageWidth &&
- metadata.drive.imageHeight) {
- width = metadata.drive.imageWidth;
- height = metadata.drive.imageHeight;
+ } else if (metadata.external && metadata.external.imageWidth &&
+ metadata.external.imageHeight) {
+ width = metadata.external.imageWidth;
+ height = metadata.external.imageHeight;
} else {
// No dimensions in metadata, then use the generic dimensions.
width = Mosaic.Tile.GENERIC_ICON_SIZE;