removeAttribute

open override fun removeAttribute(key: Key): Any?(source)

Removes an attribute with the given key. If no attribute with the given key exists, null is returned; otherwise the previous value that was associated with the key is returned.

Return

the previous value that was associated with the key, or null if no attribute with the key existed

Parameters

key

the key of the attribute