mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
One Property Tree (#500)
* Organize properties in one single property tree * Update scenes to work with one property tree. Fix documentation issues.
This commit is contained in:
@@ -18,6 +18,19 @@ window.onload = function () {
|
||||
return identifier;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('level', function(options, context) {
|
||||
var data = context.data;
|
||||
var level = 0;
|
||||
|
||||
while (data = data._parent) {
|
||||
if (data.key !== undefined) {
|
||||
++level;
|
||||
}
|
||||
}
|
||||
|
||||
return level;
|
||||
});
|
||||
|
||||
scripting.sort(function (a, b) {
|
||||
return a.library < b.library ? -1 : (a.library > b.library ? 1 : 0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user