Browse Source

Use hasOwnProperty instead of comparing against undefined

pull/221/head
Julian Simioni 9 years ago
parent
commit
f6fea21782
  1. 2
      controller/search.js

2
controller/search.js

@ -15,7 +15,7 @@ function setup( backend, query ){
body: query( req.clean ) body: query( req.clean )
}; };
if (req.clean.type !== undefined) { if ( req.clean.hasOwnProperty('type') ) {
cmd.type = req.clean.type; cmd.type = req.clean.type;
} }

Loading…
Cancel
Save