* Returns a translated string.
*
* Wrapper function to make dealing with translated strings more concise.
- * Equivilant to localStrings.getString(id).
*
* @param {string} id The id of the string to return.
* @return {string} The translated string.
this.onResize_();
this.initContextMenuAndCommand_();
+ WallpaperUtil.testSendMessage('launched');
};
/**
});
}, errorHandler);
}, errorHandler);
- }
+ };
this.wallpaperDirs_.getDirectory(WallpaperDirNameEnum.ORIGINAL,
success, errorHandler);
break;
fileEntry.remove(function() {
}, errorHandler);
}, errorHandler);
- }
+ };
// Removes copy of original.
self.wallpaperDirs_.getDirectory(WallpaperDirNameEnum.ORIGINAL, success,
var errorHandler = this.onFileSystemError_.bind(this);
var toArray = function(list) {
return Array.prototype.slice.call(list || [], 0);
- }
+ };
var self = this;
var processResults = function(entries) {
self.wallpaperGrid_.dataModel = wallpapersDataModel;
self.wallpaperGrid_.selectedItem = selectedItem;
self.wallpaperGrid_.activeItem = selectedItem;
- }
+ };
var success = function(dirEntry) {
var dirReader = dirEntry.createReader();
}, errorHandler);
};
readEntries(); // Start reading dirs.
- }
+ };
this.wallpaperDirs_.getDirectory(WallpaperDirNameEnum.ORIGINAL,
success, errorHandler);
} else {