Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Be sure the parameter passed into SC.RenderContext.escapeHTML() is al…

…ways a string, since it doesn't check internally.
  • Loading branch information...
commit ad20a65f45a08bfdeaeb4d5d2683da2c1389950c 1 parent d096382
Jonathan Lewis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mixins/table_delegate.js
View
2  mixins/table_delegate.js
@@ -50,7 +50,7 @@ SCTable.TableDelegate = {
function is a subroutine in an existing render() call.
*/
renderTableCellContent: function(tableView, renderContext, rowContent, rowIndex, column, columnIndex) {
- return renderContext.push('<div class=\"text\">%@</div>'.fmt(SC.RenderContext.escapeHTML(rowContent ? rowContent.get(column.get('valueKey')) : null)));
+ return renderContext.push('<div class=\"text\">%@</div>'.fmt(SC.RenderContext.escapeHTML(String(rowContent ? rowContent.get(column.get('valueKey')) : null))));
},
/*
Please sign in to comment.
Something went wrong with that request. Please try again.