Update mojo

This commit is contained in:
Wesley Moore 2010-09-24 18:09:39 +10:00
parent c45adf16fa
commit a67f33d392

View file

@ -6,7 +6,7 @@
// --- Version // --- Version
version: '0.2.0', version: '0.3.0',
/** /**
* Escape HTML. * Escape HTML.
@ -33,8 +33,11 @@
* @api public * @api public
*/ */
normalize: function(object) { normalize: function(object, property) {
if(property === undefined)
return typeof object == 'function' ? object() : object return typeof object == 'function' ? object() : object
else
return typeof object[property] == 'function' ? object[property]() : object[property]
}, },
/** /**