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._models = [];
app._services = [];
/** /**
* Expose a model. * Expose a model.
@ -114,11 +115,11 @@ app.service = function (name, service) {
} }
/** /**
* Get all exposed models. * Get all exposed services.
*/ */
app.models = function () { app.services = function () {
return this._models; return this._services;
} }
/** /**
@ -152,3 +153,4 @@ app.handler = function (type) {
*/ */
app._handlers = {}; app._handlers = {};