From 9fe79dbfca6c9b7a6b17176bc74a7c62e1c5cad0 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Tue, 2 Jul 2013 17:22:51 -0700 Subject: [PATCH] Fix service() & services() --- lib/application.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/application.js b/lib/application.js index 489467aa..390bc68d 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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 = {}; \ No newline at end of file +app._handlers = {}; +