[Sub-object] Add Path.append

This commit is contained in:
Victor Woeltjen 2016-08-18 11:51:09 -07:00
parent b76be3d2e5
commit 06c184821e

View File

@ -44,6 +44,10 @@ define([], function () {
return this.parent;
};
Path.prototype.append = function (item) {
return new Path(item, this);
};
NULL_PATH = new Path(undefined, undefined);
NULL_PATH.parent = NULL_PATH;
NULL_PATH.depth = function () {