From a67f33d39266e3fc329fddfc238e6a6c8f0409c5 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Fri, 24 Sep 2010 18:09:39 +1000 Subject: [PATCH] Update mojo --- output/js/mojo.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/output/js/mojo.js b/output/js/mojo.js index df13329..ba395c6 100644 --- a/output/js/mojo.js +++ b/output/js/mojo.js @@ -6,7 +6,7 @@ // --- Version - version: '0.2.0', + version: '0.3.0', /** * Escape HTML. @@ -33,8 +33,11 @@ * @api public */ - normalize: function(object) { - return typeof object == 'function' ? object() : object + normalize: function(object, property) { + if(property === undefined) + return typeof object == 'function' ? object() : object + else + return typeof object[property] == 'function' ? object[property]() : object[property] }, /**