src/ponyedit.js
function report (property, name, parse) {
        var rquotes = /^['"]|['"]$/g;
        var inspect = queries[property] || query;

        return function () {
            var self = this;
            var value = inspect.call(self, property);
            var ev = 'report.' + name;

            if (parse === 'bool') {
                value = value === 'true' || value === true;
            } else if (parse === 'int') {
                value = parseInt(value, 10);
            } else if (property === 'fontName') {
                value = value.replace(rquotes, '');
            }

            self.emit(ev, value, name);
            return value;
        };
    }
function report (property, name, parse) {
        var rquotes = /^['"]|['"]$/g;
        var inspect = queries[property] || query;

        return function () {
            var self = this;
            var value = inspect.call(self, property);
            var ev = 'report.' + name;

            if (parse === 'bool') {
                value = value === 'true' || value === true;
            } else if (parse === 'int') {
                value = parseInt(value, 10);
            } else if (property === 'fontName') {
                value = value.replace(rquotes, '');
            }

            self.emit(ev, value, name);
            return value;
        };
    }
function report ( property , name , parse ) { var rquotes = / ^['"]|['"]$ / g ; var inspect = queries [ property ] || query ; return function ( ) { var self = this ; var value = inspect . call ( self , property ) ; var ev = 'report.' + name ; if ( parse === 'bool' ) { value = value === 'true' || value === true ; } else if ( parse === 'int' ) { value = parseInt ( value , 10 ) ; } else if ( property === 'fontName' ) { value = value . replace ( rquotes , '' ) ; } self . emit ( ev , value , name ) ; return value ; } ; }
property state emission
property state emission