matroska
Version:
Matroska node parser
25 lines (16 loc) • 585 B
JavaScript
/*jslint node: true, vars: true, nomen: true */
;
var util = require('util');
var MasterElement = require('./masterElement');
var schema = require('../schema');
var _proto = require('./_proto');
function Tag(doc, tagId, start, length) {
MasterElement.call(this, doc, tagId, schema.byName.Tag, start, length);
}
util.inherits(Tag, MasterElement);
module.exports = Tag;
Tag.prototype.toString = function() {
return "[Tag #" + this.tagId + "]";
};
_proto.oneChild(Tag.prototype, "Targets", true);
_proto.addChild(Tag.prototype, "SimpleTag");