Fix service() & services()

This commit is contained in:
Raymond Feng 2013-07-02 17:22:51 -07:00
parent 3a420187e9
commit 9fe79dbfca
1 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,7 @@ app.modelBuilder = function () {
*/
app._models = [];
app._services = [];
/**
* Expose a model.
@ -114,11 +115,11 @@ app.service = function (name, service) {
}
/**
* Get all exposed models.
* Get all exposed services.
*/
app.models = function () {
return this._models;
app.services = function () {
return this._services;
}
/**
@ -151,4 +152,5 @@ app.handler = function (type) {
* Handlers
*/
app._handlers = {};
app._handlers = {};