Skip to content

Commit 08b7393

Browse files
committed
refactoring: named functions
1 parent 59e501d commit 08b7393

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Tracy/assets/Dumper/dumper.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
};
4444

4545

46-
var build = function(data, repository, collapsed, parentIds) {
46+
function build(data, repository, collapsed, parentIds) {
4747
var type = data === null ? 'null' : typeof data,
4848
collapseCount = typeof collapsed === 'undefined' ? COLLAPSE_COUNT_TOP : COLLAPSE_COUNT;
4949

@@ -108,10 +108,10 @@
108108
parentIds
109109
);
110110
}
111-
};
111+
}
112112

113113

114-
var buildStruct = function(span, ellipsis, items, collapsed, repository, parentIds) {
114+
function buildStruct(span, ellipsis, items, collapsed, repository, parentIds) {
115115
var res, toggle, div, handler;
116116

117117
if (!items || !items.length) {
@@ -134,10 +134,10 @@
134134
createItems(div, items, repository, parentIds);
135135
}
136136
return res;
137-
};
137+
}
138138

139139

140-
var createEl = function(el, attrs, content) {
140+
function createEl(el, attrs, content) {
141141
if (!(el instanceof Node)) {
142142
el = el ? document.createElement(el) : document.createDocumentFragment();
143143
}
@@ -154,10 +154,10 @@
154154
}
155155
}
156156
return el;
157-
};
157+
}
158158

159159

160-
var createItems = function(el, items, repository, parentIds) {
160+
function createItems(el, items, repository, parentIds) {
161161
for (var i = 0; i < items.length; i++) {
162162
var vis = items[i][2];
163163
createEl(el, null, [
@@ -168,8 +168,8 @@
168168
build(items[i][1], repository, null, parentIds)
169169
]);
170170
}
171-
};
171+
}
172172

173-
var UnknownEntityException = function() {};
173+
function UnknownEntityException() {}
174174

175175
})();

0 commit comments

Comments
 (0)