Permalink
Browse files

Fixing erase('html')

  • Loading branch information...
1 parent abedec7 commit 1ebbd44e057f5f85477454a9aa204308a2b0b6a5 @ibolmo ibolmo committed Jan 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Element/Element.js
@@ -910,13 +910,13 @@ Element.Properties.tag = {
Element.Properties.html = {
set: function(html){
- if (typeOf(html) == 'array') html = html.join('');
- else if (html == null) html = '';
+ if (html == null) html = '';
+ else if (typeOf(html) == 'array') html = html.join('');
this.innerHTML = html;
},
erase: function(){
- this.set('');
+ this.innerHTML = '';
}
};

0 comments on commit 1ebbd44

Please sign in to comment.