dist/node/strict/Class.js
function doMember(func) {
        /*jshint validthis:true*/
        func = func || this;

        // Check if it is a named func already
        if (func[$name]) {
            return func;
        }

        var caller = process._dejavu.caller;

        // Check if outside the instance/class
        if (!caller) {
            throw new Error('Attempting to mark a function as a member outside an instance/class.');
        }

        // Check if already marked as anonymous
        if (func[$anonymous]) {
            throw new Error('Function is already marked as an member.');
        }

        func[$anonymous] = true;
        func = wrapMethod(null, func, caller.constructor);
        func[$anonymous] = true;

        return func;
    }
function doMember(func) {
        /*jshint validthis:true*/
        func = func || this;

        // Check if it is a named func already
        if (func[$name]) {
            return func;
        }

        var caller = process._dejavu.caller;

        // Check if outside the instance/class
        if (!caller) {
            throw new Error('Attempting to mark a function as a member outside an instance/class.');
        }

        // Check if already marked as anonymous
        if (func[$anonymous]) {
            throw new Error('Function is already marked as an member.');
        }

        func[$anonymous] = true;
        func = wrapMethod(null, func, caller.constructor);
        func[$anonymous] = true;

        return func;
    }
function doMember ( func ) { /*jshint validthis:true*/ func = func || this ; // Check if it is a named func already if ( func [ $name ] ) { return func ; } var caller = process . _dejavu . caller ; // Check if outside the instance/class if ( ! caller ) { throw new Error ( 'Attempting to mark a function as a member outside an instance/class.' ) ; } // Check if already marked as anonymous if ( func [ $anonymous ] ) { throw new Error ( 'Function is already marked as an member.' ) ; } func [ $anonymous ] = true ; func = wrapMethod ( null , func , caller . constructor ) ; func [ $anonymous ] = true ; return func ; }
Marks a function as part of the class.

@param {Function} func The function
Marks a function as part of the class .