Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Commit 52397c7

Browse files
committed
Small tweaks to EmptyRow#render
1 parent 7fa1c58 commit 52397c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/row.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ var EmptyRow = Backgrid.EmptyRow = Backbone.View.extend({
149149

150150
var td = document.createElement("td");
151151
td.setAttribute("colspan", this.columns.length);
152-
td.textContent = _.result(this, "emptyText");
152+
td.appendChild(document.createTextNode(_.result(this, "emptyText")));
153153

154-
this.el.setAttribute("class", "empty");
154+
this.el.className = "empty";
155155
this.el.appendChild(td);
156156

157157
return this;

0 commit comments

Comments
 (0)