ACTIVE : 'file-active'
};
-/**
- * Disposer
- * @protected
- */
-armadillo.File.prototype.disposeInternal = function() {
- this.element_ = null;
- this.link_ = null;
- this.actor_.dispose();
-};
-
/**
* Returns the name of the file.
* @returns string
* Constructs the Elements that make up the UI.
* @returns {Element} An element ready for insertion into DOM.
*/
-armadillo.File.prototype.draw = function() {
+armadillo.File.prototype.createDom = function() {
// Create the element if it does not exist. If it does, remove all children.
if (!this.element_) {
this.element_ = document.createElement('li');
// Add items for each entry.
$.each(data, function(i, file) {
var fileObject = new armadillo.File(file, path);
- list.append(fileObject.draw());
+ list.append(fileObject.createDom());
});
}
this.sendRequest('list', {'path':path}, callback);