The set() method is a generic setter that stores the specified name-value pair, by value, in the context.
The method never assigns a reference value but copies the referenced object.
set( name , value )
|
name |
String |
Key name to associate with value . |
|
value |
Object |
Value to be set for key
name.
|
setBaseSearch: function(baseSearch) {
var context = this.getContext();
var search = context.get('search');
search.setBaseSearch(baseSearch);
context.set('search', search);
}