Apply reviewer's comments
This commit is contained in:
@@ -791,8 +791,7 @@ ol.format.WFS.GETFEATURE_SERIALIZERS_ = {
|
||||
*/
|
||||
ol.format.WFS.writeFilter = function(filter) {
|
||||
var child = ol.xml.createElementNS(ol.format.WFS.OGCNS, 'Filter');
|
||||
var objectStack = [];
|
||||
ol.format.WFS.writeFilterCondition_(child, filter, objectStack);
|
||||
ol.format.WFS.writeFilterCondition_(child, filter, []);
|
||||
return child;
|
||||
};
|
||||
|
||||
|
||||
@@ -1017,7 +1017,7 @@ describe('ol.format.WFS', function() {
|
||||
describe('when writing out a WFS Filter', function() {
|
||||
it('creates a filter', function() {
|
||||
var text =
|
||||
'<Filter>' +
|
||||
'<Filter xmlns="http://www.opengis.net/ogc">' +
|
||||
' <And>' +
|
||||
' <PropertyIsLike wildCard="*" singleChar="." escapeChar="!">' +
|
||||
' <PropertyName>name</PropertyName>' +
|
||||
|
||||
Reference in New Issue
Block a user