LEFT | RIGHT |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 | 3 |
4 /** | 4 /** |
5 * Browser Editorial View. | 5 * Browser Editorial View. |
6 * | 6 * |
7 * @module juju.browser | 7 * @module juju.browser |
8 * @submodule views | 8 * @submodule views |
9 * | 9 * |
10 */ | 10 */ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 destructor: function() { | 158 destructor: function() { |
159 if (this.charmContainers) { | 159 if (this.charmContainers) { |
160 Y.Array.each(this.charmContainers, function(container) { | 160 Y.Array.each(this.charmContainers, function(container) { |
161 container.destroy(); | 161 container.destroy(); |
162 }); | 162 }); |
163 } | 163 } |
164 this._cacheCharms.destroy(); | 164 this._cacheCharms.destroy(); |
165 } | 165 } |
166 }, { | 166 }, { |
167 ATTRS: { | 167 ATTRS: { |
| 168 /** |
| 169 * Is this rendering of the editorial view for fullscreen or sidebar |
| 170 * purposes? |
| 171 * |
| 172 * @attribute isFullscreen |
| 173 * @default false |
| 174 * @type {Boolean} |
| 175 * |
| 176 */ |
168 isFullscreen: { | 177 isFullscreen: { |
169 value: false | 178 value: false |
170 }, | 179 }, |
| 180 /** |
| 181 * What is the container node we should render our container into? |
| 182 * |
| 183 * @attribute renderTo |
| 184 * @default undefined |
| 185 * @type {Node} |
| 186 * |
| 187 */ |
171 renderTo: { | 188 renderTo: { |
172 | 189 |
173 }, | 190 }, |
| 191 /** |
| 192 * The Charmworld0 Api store instance for loading content. |
| 193 * |
| 194 * @attribute store |
| 195 * @default undefined |
| 196 * @type {Charmworld0} |
| 197 * |
| 198 */ |
174 store: { | 199 store: { |
175 | 200 |
176 } | 201 } |
177 } | 202 } |
178 }); | 203 }); |
179 | 204 |
180 }, '0.1.0', { | 205 }, '0.1.0', { |
181 requires: [ | 206 requires: [ |
182 'browser-charm-container', | 207 'browser-charm-container', |
183 'browser-charm-token', | 208 'browser-charm-token', |
184 'browser-search-widget', | 209 'browser-search-widget', |
185 'juju-charm-store', | 210 'juju-charm-store', |
186 'juju-models', | 211 'juju-models', |
187 'juju-templates', | 212 'juju-templates', |
188 'view' | 213 'view' |
189 ] | 214 ] |
190 }); | 215 }); |
LEFT | RIGHT |