mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
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: '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]
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue