mirror of
https://github.com/nasa/openmct.git
synced 2025-06-13 20:58:15 +00:00
[Sub-object] Add Path.append
This commit is contained in:
@ -44,6 +44,10 @@ define([], function () {
|
|||||||
return this.parent;
|
return this.parent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Path.prototype.append = function (item) {
|
||||||
|
return new Path(item, this);
|
||||||
|
};
|
||||||
|
|
||||||
NULL_PATH = new Path(undefined, undefined);
|
NULL_PATH = new Path(undefined, undefined);
|
||||||
NULL_PATH.parent = NULL_PATH;
|
NULL_PATH.parent = NULL_PATH;
|
||||||
NULL_PATH.depth = function () {
|
NULL_PATH.depth = function () {
|
||||||
|
Reference in New Issue
Block a user