The has() method checks if the context contains the name key.
status = has( name )
|
name |
String |
Key name to test. |
|
Boolean |
Requested name key found indication: true = Key with specified name exists. false = Key with specified name does not exist.
|
hasSearch: function() {
var context = this.getContext();
if (context.has("search")) {
return true;
else
return false;
}
}