build/module/lib/core/computeCount.js
/**
 * Computes the number of elements represented by the attribute values.
 * @hidden
 */
Computes the number of elements represented by the attribute values.
@hidden
Computes the number of elements represented by the attribute values . @hidden
function computeCount(attribs, aNames) {
    var aNamesLen = aNames.length;
    for (var a = 0; a < aNamesLen; a++) {
        var aName = aNames[a];
        var attrib = attribs[aName];
        var vLength = attrib.values.length;
        var size = mustBeInteger('size', attrib.size);
        return vLength / size;
    }
    return 0;
}
function computeCount ( attribs , aNames ) { var aNamesLen = aNames . length ; for ( var a = 0 ; a < aNamesLen ; a ++ ) { var aName = aNames [ a ] ; var attrib = attribs [ aName ] ; var vLength = attrib . values . length ; var size = mustBeInteger ( 'size' , attrib . size ) ; return vLength / size ; } return 0 ; }
Computes the number of elements represented by the attribute values.
Computes the number of elements represented by the attribute values .
// TODO: We currently return after computing the count for the first aName, but we should // perform a consistency check.