Remove unused variables in parsers

This commit is contained in:
Tom Payne
2013-05-21 12:47:45 +02:00
parent 42b6ed5d2a
commit 268c18988b
5 changed files with 6 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ describe('ol.parser.kml', function() {
afterLoadXml(url, function(xml) {
var p = new ol.parser.KML({maxDepth: 1});
// we need to supply a callback to get visited NetworkLinks
var obj = p.read(xml, function(features) {
p.read(xml, function(features) {
expect(features.length).to.eql(3);
done();
});
@@ -60,7 +60,7 @@ describe('ol.parser.kml', function() {
afterLoadXml(url, function(xml) {
var p = new ol.parser.KML({maxDepth: 2});
// we need to supply a callback to get visited NetworkLinks
var obj = p.read(xml, function(features) {
p.read(xml, function(features) {
expect(features.length).to.eql(2);
done();
});
@@ -71,7 +71,7 @@ describe('ol.parser.kml', function() {
afterLoadXml(url, function(xml) {
var p = new ol.parser.KML({maxDepth: 1});
// we need to supply a callback to get visited NetworkLinks
var obj = p.read(xml, function(features) {
p.read(xml, function(features) {
// since maxDepth is 1, we will not get to the second feature
expect(features.length).to.eql(1);
done();