|
43 | 43 | }; |
44 | 44 |
|
45 | 45 |
|
46 | | - var build = function(data, repository, collapsed, parentIds) { |
| 46 | + function build(data, repository, collapsed, parentIds) { |
47 | 47 | var type = data === null ? 'null' : typeof data, |
48 | 48 | collapseCount = typeof collapsed === 'undefined' ? COLLAPSE_COUNT_TOP : COLLAPSE_COUNT; |
49 | 49 |
|
|
108 | 108 | parentIds |
109 | 109 | ); |
110 | 110 | } |
111 | | - }; |
| 111 | + } |
112 | 112 |
|
113 | 113 |
|
114 | | - var buildStruct = function(span, ellipsis, items, collapsed, repository, parentIds) { |
| 114 | + function buildStruct(span, ellipsis, items, collapsed, repository, parentIds) { |
115 | 115 | var res, toggle, div, handler; |
116 | 116 |
|
117 | 117 | if (!items || !items.length) { |
|
134 | 134 | createItems(div, items, repository, parentIds); |
135 | 135 | } |
136 | 136 | return res; |
137 | | - }; |
| 137 | + } |
138 | 138 |
|
139 | 139 |
|
140 | | - var createEl = function(el, attrs, content) { |
| 140 | + function createEl(el, attrs, content) { |
141 | 141 | if (!(el instanceof Node)) { |
142 | 142 | el = el ? document.createElement(el) : document.createDocumentFragment(); |
143 | 143 | } |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | return el; |
157 | | - }; |
| 157 | + } |
158 | 158 |
|
159 | 159 |
|
160 | | - var createItems = function(el, items, repository, parentIds) { |
| 160 | + function createItems(el, items, repository, parentIds) { |
161 | 161 | for (var i = 0; i < items.length; i++) { |
162 | 162 | var vis = items[i][2]; |
163 | 163 | createEl(el, null, [ |
|
168 | 168 | build(items[i][1], repository, null, parentIds) |
169 | 169 | ]); |
170 | 170 | } |
171 | | - }; |
| 171 | + } |
172 | 172 |
|
173 | | - var UnknownEntityException = function() {}; |
| 173 | + function UnknownEntityException() {} |
174 | 174 |
|
175 | 175 | })(); |
0 commit comments