Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 /** | 3 /** |
4 * Provide the EndpointsController class. | 4 * Provide the EndpointsController class. |
5 * | 5 * |
6 * @module store | 6 * @module store |
7 * @submodule store.endpoints | 7 * @submodule store.endpoints |
8 */ | 8 */ |
9 | 9 |
10 YUI.add('juju-endpoints-controller', function(Y) { | 10 YUI.add('juju-endpoints-controller', function(Y) { |
11 | 11 |
12 var juju = Y.namespace('juju'); | 12 var juju = Y.namespace('juju'); |
13 | 13 |
14 /** | 14 /** |
15 * This controller manages the endpoints for services, handling the events | 15 * This controller manages the endpoints for services, handling the events |
16 * for the services ModelList and maintaining the endpoints map. | 16 * for the services ModelList and maintaining the endpoints map. |
17 * | 17 * |
18 * EndpointsController({env: Environment, db: Database}) | 18 * EndpointsController({db: Database}) |
19 * | 19 * |
20 * @class EndpointsController | 20 * @class EndpointsController |
21 */ | 21 */ |
22 var EndpointsController = Y.Base.create('EndpointsController', | 22 var EndpointsController = Y.Base.create('EndpointsController', |
23 Y.Base, [], { | 23 Y.Base, [], { |
24 | 24 |
25 /** | 25 /** |
26 * Tell `Y.Base` that it should create ad hoc attributes for | 26 * Tell `Y.Base` that it should create ad hoc attributes for |
27 * config properties. | 27 * config properties. |
28 * | 28 * |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 // was successful with the new promises | 211 // was successful with the new promises |
212 /** | 212 /** |
213 Fired after an endpoint was added to the endpointsMap property | 213 Fired after an endpoint was added to the endpointsMap property |
214 | 214 |
215 @event endpointMapAdded | 215 @event endpointMapAdded |
216 */ | 216 */ |
217 this.fire('endpointMapAdded'); | 217 this.fire('endpointMapAdded'); |
218 } | 218 } |
219 }, { | 219 }, { |
220 /** | 220 /** |
221 Reference to the client env. | |
222 | |
223 @attribute env | |
224 @type {Y.Base} | |
225 @default undefined | |
226 */ | |
227 env: {}, | |
gary.poster
2013/04/29 18:22:04
We don't use this anymore, do we? Or if we do, ca
jeff.pihach
2013/04/29 20:47:28
I added it here because it was being passed in but
| |
228 | |
229 /** | |
230 Reference to the client db. | 221 Reference to the client db. |
231 | 222 |
232 @attribute db | 223 @attribute db |
233 @type {Y.Base} | 224 @type {Y.Base} |
234 @default undefined | 225 @default undefined |
235 */ | 226 */ |
236 db: {}, | 227 db: {}, |
gary.poster
2013/04/29 18:22:04
ditto
jeff.pihach
2013/04/29 20:47:28
This is used in the bind methods I just added it h
| |
237 /** | 228 |
229 /** | |
230 Reference to the modelController instance | |
238 | 231 |
239 @attribute modelController | 232 @attribute modelController |
240 @type {Y.juju.ModelController} | 233 @type {Y.juju.ModelController} |
241 @default undefined | 234 @default undefined |
242 */ | 235 */ |
243 modelController: {} | 236 modelController: {} |
244 }); | 237 }); |
245 | 238 |
246 juju.EndpointsController = EndpointsController; | 239 juju.EndpointsController = EndpointsController; |
247 | 240 |
248 }, '0.1.0', { | 241 }, '0.1.0', { |
249 requires: ['juju-models'] | 242 requires: ['juju-models'] |
250 }); | 243 }); |
LEFT | RIGHT |