forked from wezm/wezm.net
Update mojo
This commit is contained in:
parent
c45adf16fa
commit
a67f33d392
1 changed files with 6 additions and 3 deletions
|
@ -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]
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue