Code coverage report for master/plugins/underscore.js

Statements: 100% (4 / 4)      Branches: 100% (4 / 4)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » master/plugins/ » underscore.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                      1   5     5 2        
'use strict';
 
/**
 * Removes all symbols that begin with an underscore from the doc output. If
 * you're using underscores to denote private variables in modules, this
 * automatically hides them.
 *
 * @module plugins/underscore
 * @author Daniel Ellis <coug36@gmail.com>
 */
 
exports.handlers = {
    newDoclet: function(e) {
        var doclet = e.doclet;
 
        // Ignore comment blocks for all symbols that begin with underscore
        if (doclet.name.charAt(0) === '_' || doclet.name.substr(0, 6) === 'this._') {
            doclet.access = 'private';
        }
    }
};