mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39: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
|
||||||
|
|
||||||
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) {
|
||||||
return typeof object == 'function' ? object() : object
|
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