UNPKG

apex4x

Version:

The Comprehensive ARIA Development Suite

27 lines 1.3 kB
�� Function: removeData(object, key) Description: Removes data bound to an object. Returns: domElement, or $A object if chained. Example: // Remove a specific data value from an object $A.removeData(domElement, "pointsTo"); // Remove all data bound to an object. $A.removeData(domElement); // Or the same using chaining // Remove a specific data value from an object var myChain = $A(domElement).removeData("pointsTo"); // Remove all data bound to an object. var myChain = $A(domElement).removeData(); // To return the modified element within a chain, use the "return()" method. var myElement = myChain.return();