From baff2b7a3bf18ea28d21737ca5bf37ed1fbb2cb9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 28 Dec 2011 17:49:58 -0500 Subject: [PATCH] Rename draw() to createDom() --- web_frontend/file.js | 12 +----------- web_frontend/main.js | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/web_frontend/file.js b/web_frontend/file.js index e534486..c6d431a 100644 --- a/web_frontend/file.js +++ b/web_frontend/file.js @@ -29,16 +29,6 @@ armadillo.File.Highlight = { 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 @@ -102,7 +92,7 @@ armadillo.File.prototype.setHighlight = function(h) { * 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'); diff --git a/web_frontend/main.js b/web_frontend/main.js index db8b89f..7d6aa1b 100644 --- a/web_frontend/main.js +++ b/web_frontend/main.js @@ -77,7 +77,7 @@ armadillo.App.prototype.list = function(path) { // 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); -- 2.22.5