1
0
Fork 0

Added todo to profile propParse's use of fvoid vs if statements

closure/master
Mike Gerwitz 2011-01-09 19:44:09 -05:00
parent 7301ddbac2
commit fba94f2e0b
1 changed files with 2 additions and 0 deletions

View File

@ -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,