dojo.data.api.Write.unsetAttribute
dojo.require("dojo.data.api.Write");
defined in dojo/data/api/Write.js
Deletes all the values of an attribute on an item.
Usage
function (item, /*String*/ attribute) (view source)
parameter | type | description |
---|---|---|
item | The item to modify. | |
attribute | String | The attribute of the item to unset represented as a string. |
Examples
Example 1
var success = store.unsetAttribute(kermit, "color");
if (success) {assert(!store.hasAttribute(kermit, "color"));}