From d67931401c1c6f91c23427a472453ab7a253076b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 26 Dec 2011 19:19:48 -0500 Subject: [PATCH] Remove a few calls do document.createElement --- web_frontend/file.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web_frontend/file.js b/web_frontend/file.js index 7f81d1f..e534486 100644 --- a/web_frontend/file.js +++ b/web_frontend/file.js @@ -112,17 +112,17 @@ armadillo.File.prototype.draw = function() { $(this.element_).empty(); // Set the name of the entry. - this.title_ = document.createElement('div'); + this.title_ = $.createDom('div'); if (this.isDirectory()) { - this.link_ = $(document.createElement('a')); + this.link_ = $.createDom('a'); this.link_.text(this.name_); this.link_.click(this.clickHandler_.bind(this)); - $(this.title_).append(this.link_); + this.title_.append(this.link_); } else { - $(this.title_).text(this.name_); + this.title_.text(this.name_); } $(this.element_).append(this.title_); - $(this.title_).click(handler.bind(this)); + this.title_.click(handler.bind(this)); return this.element_; }; -- 2.22.5