Skip to content

Commit

Permalink
use html function
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Gravell committed Jul 10, 2011
1 parent 4cdcc35 commit 03d7b86
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions priv/js/tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ var TPL = (function() {
el.data(k, v);
var child = $("."+k, el);
if(child.length > 0 && v) {
child.children().remove();
try {
child.append(v);
child.html(v);
} catch(err) {
}
}
Expand Down Expand Up @@ -150,9 +149,8 @@ var TPL = (function() {
var jt = type(data);

if(jt == "string") {
el.children().remove();
try {
el.append(data);
el.html(data);
} catch(err) {
}
} else if(jt == "object") {
Expand Down

0 comments on commit 03d7b86

Please sign in to comment.