pogojs
Version:
Library to accompany the Pogo stack
22 lines (16 loc) • 686 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getCustomAttributeSet = require('./utils/getCustomAttributeSet');
var _getCustomAttributeSet2 = _interopRequireDefault(_getCustomAttributeSet);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Creates `dataset` type functionality for `pogo-` attributes
* @param {Node} el - the element to check for attributes
* @return {Object} pogo attributes wiithin the element in camelcase with the prefix `pogo-` removed
*/
var pogoset = function pogoset(el) {
return (0, _getCustomAttributeSet2.default)(el, 'pogo-');
};
exports.default = pogoset;