goog.require('armadillo.File');
goog.require('armadillo.Version');
-goog.require('goog.array');
goog.require('goog.string.format');
armadillo.App = function() {
// Add a previous directory entry.
if (path != '/' && path != '')
- goog.array.insertAt(data, '../', 0);
+ data.splice(0, 1, '../');
// Add items for each entry.
$.each(data, function(i, file) {
goog.provide('armadillo.PathControl');
-goog.require('goog.array');
-
/**
* Creates a new path editing control for a given path.
* @param {string} path The path to create an editor for
// If the last component is emtpy, do not use it because it means a directory
// is being moved.
if (components[components.length - 1] == '') {
- goog.array.removeAt(components, components.length - 1);
+ components.splice(-1);
}
var path = '';
goog.provide('armadillo.TVRenamer');
-goog.require('goog.Disposable');
-
/**
* Creates a helper to rename a file in a pretty format for TV episodes.
* @extends {goog.Disposable}
* @constructor
*/
armadillo.TVRenamer = function(file) {
- goog.base(this);
-
/**
* The file object
* @type {armadillo.File}
*/
this.file_ = file;
}
-goog.inherits(armadillo.TVRenamer, goog.Disposable);
-
-/**
- * @inheritDoc
- */
-armadillo.TVRenamer.prototype.disposeInternal = function() {
- goog.base(this, 'disposeInternal');
- this.file_ = null;
-};
/**
* Performs the information lookup and renames the file if the lookup is