Rename draw() to createDom()
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 28 Dec 2011 22:49:58 +0000 (17:49 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 28 Dec 2011 22:49:58 +0000 (17:49 -0500)
web_frontend/file.js
web_frontend/main.js

index e5344860396c02b07deb171ad81a321cceffbbfe..c6d431a3c707314cdafa19c10f939f567f12e2b7 100644 (file)
@@ -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');
index db8b89fe20a930d00844a156eb80258346b92666..7d6aa1b29d846226432b94a9e7ef4f2f56e0d994 100644 (file)
@@ -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);