lib/utils/utils.js
function _parseAttr(val, isClick) {
        try {
            if (isClick) {
                /*jshint evil: true */
                var fn = Function(val);

                return fn ? fn() : {};
            }

            return JSON.parse(val);
        } catch (err) {
            return undefined;
        }
    }
function _parseAttr(val, isClick) {
        try {
            if (isClick) {
                /*jshint evil: true */
                var fn = Function(val);

                return fn ? fn() : {};
            }

            return JSON.parse(val);
        } catch (err) {
            return undefined;
        }
    }
function _parseAttr ( val , isClick ) { try { if ( isClick ) { /*jshint evil: true */ var fn = Function ( val ) ; return fn ? fn ( ) : { } ; } return JSON . parse ( val ) ; } catch ( err ) { return undefined ; } }
Parses the given in HTML attribute JSON
@param {String} val
@param {Boolean} [isClick]
@returns {Object}
Parses the given in HTML attribute JSON