simplify the assignment of this.target_

This commit is contained in:
Bart van den Eijnden
2013-11-05 16:52:24 +01:00
parent e6c4fd973a
commit 2fc884a3d9
2 changed files with 5 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ describe('ol.control.Control\'s target', function() {
});
it('ignores non-existing target id', function() {
var ctrl = new ol.control.Control({target: 'doesnotexist'});
expect(ctrl.target_).to.equal(undefined);
expect(ctrl.target_).to.equal(null);
goog.dispose(ctrl);
});
});