Added todo to profile propParse's use of fvoid vs if statements
parent
7301ddbac2
commit
fba94f2e0b
|
@ -171,6 +171,8 @@ exports.clone = function clone( data, deep )
|
||||||
*/
|
*/
|
||||||
exports.propParse = function( data, options )
|
exports.propParse = function( data, options )
|
||||||
{
|
{
|
||||||
|
// todo: profile; function calls are more expensive than if statements, so
|
||||||
|
// it's probably a better idea not to use fvoid
|
||||||
var fvoid = function() {},
|
var fvoid = function() {},
|
||||||
callbackEach = options.each || undefined,
|
callbackEach = options.each || undefined,
|
||||||
callbackProp = options.property || fvoid,
|
callbackProp = options.property || fvoid,
|
||||||
|
|
Loading…
Reference in New Issue