Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Forked from bryanforbes/app.spec.js
Created February 22, 2012 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briancavalier/1886590 to your computer and use it in GitHub Desktop.
Save briancavalier/1886590 to your computer and use it in GitHub Desktop.
define({
plugins: [
{ module: "wire/debug" }
],
somethingFromTheParent: { $ref: 'somethingFromTheParent' }
});
define({
plugins: [
{ module: "wire/debug" },
{
module: "my/wire/authentication",
providers: [
["/foo", { module: "my/providers/foo" }],
["/bar", { module: "my/providers/bar" }]
]
}
],
app: {
wire: "my/app.spec"
},
somethingFromTheParent: 'this is declared in the parent'
});
DEBUG (total: 0ms, context: 0ms / 0ms): Context init
debug.js:316DEBUG (total: 23ms, context: 0ms / 0ms): Context init
debug.js:359DEBUG (total: 29ms, context: 6ms / 6ms): ready plugins[]
Object
Object
debug.js:321DEBUG (total: 32ms, context: 3ms / 9ms): Context ready
Object
destroy: function apiDestroy() {
plugins: Array[1]
resolve: function apiResolveRef(ref) {
wire: function wireChild(spec) {
__proto__: Object
debug.js:359DEBUG (total: 230ms, context: 230ms / 230ms): ready plugins[]
Object
Object
debug.js:359DEBUG (total: 265ms, context: 35ms / 265ms): ready undefined[][] function (method, args, hasBody){
console.log("HERE");
return xhr(method, args, hasBody);
}
Object
debug.js:359DEBUG (total: 269ms, context: 4ms / 269ms): ready undefined[][] function (method, args, hasBody){
console.log("HERE");
return xhr(method, args, hasBody);
}
Object
debug.js:359DEBUG (total: 319ms, context: 50ms / 319ms): ready undefined[] function (method, args, hasBody){
console.log("HERE");
return xhr(method, args, hasBody);
}
Object
debug.js:359DEBUG (total: 323ms, context: 4ms / 323ms): ready plugins[]
Object
Object
debug.js:321DEBUG (total: 326ms, context: 3ms / 326ms): Context ready
Object
app: Object
destroy: function apiDestroy() {
plugins: Array[2]
resolve: function apiResolveRef(ref) {
wire: function wireChild(spec) {
__proto__: Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment