Status: Expose $.zuul object in zuul_start to allow extension

When embedding this into a branded dashboard with other pages
it is preferable not to add custom hooks into these files but
instead call zuul_start and be able to attach additional event
handlers to zuul.app.on() or zuul.jq.on().

Used on https://integration.wikimedia.org/zuul/ and would likely
be needed on http://status.openstack.org/zuul/ in the future
as well.

Change-Id: I77d935d67051d50d38db5a002f4bf766c4371731
This commit is contained in:
Timo Tijhof 2015-04-03 03:41:17 +01:00
parent 1c46057888
commit 89bb8cfb88
1 changed files with 6 additions and 1 deletions

View File

@ -39,6 +39,9 @@ function zuul_build_dom($, container) {
});
}
/**
* @return The $.zuul instance
*/
function zuul_start($) {
// Start the zuul app (expects default dom)
@ -94,4 +97,6 @@ function zuul_start($) {
}
});
});
}
return zuul;
}