Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
element.erase( 'html' ) sets content to text 'undefined' #2182
This fiddle captures it all - this is new in MooTools 1.4.2 (or 1.4.1, was upgrading from 1.4.0):
This document [ http://mootools.net/docs/core/Element/Element#Element:erase ] defines the property to be:
The link to "Element.Properties" includes http://mootools.net/docs/core/Element/Element#Element-Properties:html
So html should by emptied not set to the text 'undefined'.
This was reproduced with Chrome 16.