Skip to content

Commit

Permalink
travis corrections + remove specific code block
Browse files Browse the repository at this point in the history
  • Loading branch information
carrbrpoa committed Sep 18, 2017
1 parent d0d9c2d commit e48a4dd
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions widgets/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,29 +1177,22 @@ define([
},

clearAttributeFields: function () {
var searches, search, layer, divNode, input;

layer = this.layers[this.attributeLayer];
var layer = this.layers[this.attributeLayer];
if (layer) {
searches = layer.attributeSearches;
var searches = layer.attributeSearches;
if (searches) {
for (var j = 0; j < searches.length; j++) {
var search = searches[j];
if (search) {
divNode = dom.byId(search.divName);
var divNode = dom.byId(search.divName);
if (!divNode) {
return;
}
for (var k = 0; k < search.searchFields.length; k++) {
input = registry.byId(search.inputIds[k]);
var input = registry.byId(search.inputIds[k]);
if (input) {
input.setValue('');
}
if (search.searchFields[k].cdl) {
if (this.componenteCDL) {
this.componenteCDL.clearLocation();
}
}
}
}
}
Expand Down

0 comments on commit e48a4dd

Please sign in to comment.