#eles.removeScratch()
// Remove all keys
eles.removeScratch(): thisDelete scratchpad keys from every element.
Returns
thisthis collection, for chaining
Example
eles.scratch('temporary', 1);eles.removeScratch();console.log(eles.first().scratch('temporary')); // undefined#eles.removeScratch(namespace)
// Remove the specified keys
eles.removeScratch(namespace: string): thisDelete scratchpad keys from every element.
| Name | Description |
|---|---|
namespace: string | the key to remove; omit to clear each element's whole scratchpad |
Returns
thisthis collection, for chaining
Example
eles.scratch('temporary', 1);eles.removeScratch('temporary');console.log(eles.first().scratch('temporary')); // undefined