Functiondojo.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)
parametertypedescription
item The item to modify.
attributeStringThe 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"));}