Left: | ||
Right: |
OLD | NEW |
---|---|
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 var spinner; | 3 var spinner; |
4 | 4 |
5 /** | 5 /** |
6 * Provide the main App class, based on the YUI App framework. Also provide | 6 * Provide the main App class, based on the YUI App framework. Also provide |
7 * the routing definitions, which map the request paths to the top-level | 7 * the routing definitions, which map the request paths to the top-level |
8 * views defined by the App class. | 8 * views defined by the App class. |
9 * | 9 * |
10 * @module app | 10 * @module app |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
458 } | 458 } |
459 | 459 |
460 } else if ((callback = callbacks.shift())) { | 460 } else if ((callback = callbacks.shift())) { |
461 | 461 |
462 if (typeof callback === 'string') { | 462 if (typeof callback === 'string') { |
463 subApp = self.get('subApps')[namespace]; | 463 subApp = self.get('subApps')[namespace]; |
464 | 464 |
465 if (subApp && typeof subApp[callback] === 'function') { | 465 if (subApp && typeof subApp[callback] === 'function') { |
466 callback = subApp[callback]; | 466 callback = subApp[callback]; |
467 callingContext = subApp; | 467 callingContext = subApp; |
468 subApp._checkRendered(); | |
gary.poster
2013/02/28 22:43:02
trivial: If this is called outside of the subApp,
jeff.pihach
2013/02/28 23:27:27
yep I agree.
| |
468 } else if (typeof self[callback] === 'function') { | 469 } else if (typeof self[callback] === 'function') { |
469 callback = self[callback]; | 470 callback = self[callback]; |
470 callingContext = self; | 471 callingContext = self; |
471 } else { | 472 } else { |
472 console.error('Callback function `', callback, | 473 console.error('Callback function `', callback, |
473 '` does not exist under the namespace `', namespace, | 474 '` does not exist under the namespace `', namespace, |
474 '` at the path `', path, '`.'); | 475 '` at the path `', path, '`.'); |
475 } | 476 } |
476 } | 477 } |
477 | 478 |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1207 'io', | 1208 'io', |
1208 'json-parse', | 1209 'json-parse', |
1209 'app-base', | 1210 'app-base', |
1210 'app-transitions', | 1211 'app-transitions', |
1211 'base', | 1212 'base', |
1212 'node', | 1213 'node', |
1213 'model', | 1214 'model', |
1214 'app-subapp-extension', | 1215 'app-subapp-extension', |
1215 'sub-app'] | 1216 'sub-app'] |
1216 }); | 1217 }); |
OLD | NEW |