fix $.h regression in js refactor

Change-Id: I2cd31798aca5464b09392c53498208d9a205f742
Reviewed-on: https://gerrit.instructure.com/5852
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
Jon Jensen 2011-09-27 11:02:17 -06:00
parent bda484aef6
commit 766ac9b80f
1 changed files with 2 additions and 2 deletions

View File

@ -67,14 +67,14 @@ I18n.scoped('instructure', function(I18n) {
};
var $dummyElement = $('<div/>');
$.htmlEscape = function(str) {
$.htmlEscape = $.h = function(str) {
return str && str.htmlSafe ?
str.toString() :
$dummyElement.text(str).html();
}
// escape all string values (not keys) in an object
$.htmlEscapeValues = $.h = function(obj) {
$.htmlEscapeValues = function(obj) {
var k,v;
for (k in obj) {
v = obj[k];