wookmark.js
function getData(el, attr, isInt, prefix) {
    if (prefix === undefined) {
      prefix = 'wookmark-';
    }
    var val = el.getAttribute('data-' + prefix + attr);
    if (isInt === true) {
      return parseInt(val, 10);
    }
    return val;
  }
function getData(el, attr, isInt, prefix) {
    if (prefix === undefined) {
      prefix = 'wookmark-';
    }
    var val = el.getAttribute('data-' + prefix + attr);
    if (isInt === true) {
      return parseInt(val, 10);
    }
    return val;
  }
function getData ( el , attr , isInt , prefix ) { if ( prefix === undefined ) { prefix = 'wookmark-' ; } var val = el . getAttribute ( 'data-' + prefix + attr ) ; if ( isInt === true ) { return parseInt ( val , 10 ) ; } return val ; }
Get value of specified data attribute
Get value of specified data attribute