biojs-vis-pdbviewer
Version:
A BioJS 2.0 component to view protein structures
16 lines (15 loc) • 533 B
JavaScript
Clazz.declarePackage ("JSV.tree");
Clazz.load (["JSV.api.JSVTreePath"], "JSV.tree.SimpleTreePath", null, function () {
c$ = Clazz.decorateAsClass (function () {
this.path = null;
Clazz.instantialize (this, arguments);
}, JSV.tree, "SimpleTreePath", null, JSV.api.JSVTreePath);
Clazz.makeConstructor (c$,
function (path) {
this.path = path;
}, "~A");
Clazz.overrideMethod (c$, "getLastPathComponent",
function () {
return (this.path == null || this.path.length == 0 ? null : this.path[this.path.length - 1]);
});
});