mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-30 00:56:08 +03:00
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
|
if (typeof JSDOC == "undefined") JSDOC = {};
|
||
|
|
||
|
/**
|
||
|
@constructor
|
||
|
*/
|
||
|
JSDOC.Token = function(data, type, name) {
|
||
|
this.data = data;
|
||
|
this.type = type;
|
||
|
this.name = name;
|
||
|
}
|
||
|
|
||
|
JSDOC.Token.prototype.toString = function() {
|
||
|
return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">";
|
||
|
}
|
||
|
|
||
|
JSDOC.Token.prototype.is = function(what) {
|
||
|
return this.name === what || this.type === what;
|
||
|
}
|