kopia lustrzana https://github.com/c9/core
25 wiersze
622 B
JavaScript
25 wiersze
622 B
JavaScript
// TODO docs, see data/breakpoint.js
|
|
define(function(require, exports, module) {
|
|
|
|
var Data = require("./data");
|
|
|
|
function Node(options) {
|
|
this.data = options || {};
|
|
if (!this.data.items)
|
|
this.data.items = [];
|
|
if (!this.data.type)
|
|
this.data.type = "node";
|
|
}
|
|
|
|
Node.prototype = new Data(
|
|
["passed", "type", "runner", "index", "tree"],
|
|
["items", "annotations"],
|
|
["pos", "selpos"]
|
|
);
|
|
|
|
Node.prototype.equals = function(node) {
|
|
return this.data.label == node.label;
|
|
};
|
|
|
|
module.exports = Node;
|
|
}); |