Declare variables before assignment

This commit is contained in:
Tim Schaub
2016-01-03 10:59:19 -07:00
parent f0fc4d4e73
commit 179b241aec
5 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -117,6 +117,8 @@ describe('ol.geom.GeometryCollection', function() {
describe('#intersectsExtent()', function() {
var point, line, poly, multi;
beforeEach(function() {
point = new ol.geom.Point([5, 20]);
line = new ol.geom.LineString([[10, 20], [30, 40]]);
@@ -136,7 +138,6 @@ describe('ol.geom.GeometryCollection', function() {
expect(multi.intersectsExtent([0, 0, 5, 5])).to.be(true);
});
it('returns false for non-matching extent within own extent', function() {
var extent = [0, 35, 5, 40];
expect(poly.intersectsExtent(extent)).to.be(false);