$ gnpm install data-set
Element#dataset abstraction
<div data-foo="bar"></div>
var DataSet = require("data-set")
, assert = require("assert")
var elem = thatElement
, ds = DataSet(elem)
assert.equal(ds.foo, "bar")
npm install data-set
Copyright 2013 - present © cnpmjs.org | Home |