Skip to content

Commit

Permalink
Fixing erase('html')
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolmo committed Jan 9, 2012
1 parent abedec7 commit 1ebbd44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Element/Element.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -910,13 +910,13 @@ Element.Properties.tag = {
Element.Properties.html = { Element.Properties.html = {


set: function(html){ set: function(html){
if (typeOf(html) == 'array') html = html.join(''); if (html == null) html = '';
else if (html == null) html = ''; else if (typeOf(html) == 'array') html = html.join('');
this.innerHTML = html; this.innerHTML = html;
}, },


erase: function(){ erase: function(){
this.set(''); this.innerHTML = '';
} }


}; };
Expand Down

0 comments on commit 1ebbd44

Please sign in to comment.