-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapledp.js
57 lines (45 loc) · 1.7 KB
/
mapledp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
define(function(require, exports, module) {
var oop = require("ace/lib/oop");
var TreeData = require("ace_tree/data_provider");
var DataProvider = function(root) {
TreeData.call(this, root);
this.rowHeight = 18;
};
oop.inherits(DataProvider, TreeData);
(function() {
this.getChildren = function(node) {
return node.children;
};
this.hasChildren = function(node) {
return false;
};
// this.getCaptionHTML = function(node) {
// if (!node.name) return "";
// return node.name.replace(this.reKeyword, "<strong>$1</strong>");
// };
// this.sort = function(children) {
// var compare = TreeData.alphanumCompare;
// return children.sort(function(a, b) {
// var aIsSpecial = a.noSelect;
// var bIsSpecial = b.noSelect;
// if (aIsSpecial && !bIsSpecial) return 1;
// if (!aIsSpecial && bIsSpecial) return -1;
// if (aIsSpecial && bIsSpecial) return a.index - b.index;
// return compare(a.name + "", b.name + "");
// });
// };
// this.updateNode = function(node) {
// var isOpen = node.isOpen;
// this.close(node, null, true);
// if (isOpen)
// this.open(node, null, true);
// };
// this.getIconHTML = function(node) {
// return node.isNew ? "" : "<span class='dbgVarIcon'></span>";
// };
// this.getClassName = function(node) {
// return node.className || "";
// };
}).call(DataProvider.prototype);
return DataProvider;
});