Don't use deprecated ol.Observable#unByKey function

This commit is contained in:
Frederic Junod
2015-09-15 10:01:56 +02:00
parent e88f06b70f
commit a613420953
2 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ describe('ol.source.BingMaps', function() {
goog.net.Jsonp = googNetJsonp;
var key = source.on('change', function() {
if (source.getState() === 'ready') {
source.unByKey(key);
ol.Observable.unByKey(key);
tileGrid = source.getTileGrid();
done();
}
@@ -79,3 +79,4 @@ describe('ol.source.BingMaps', function() {
goog.require('goog.net.Jsonp');
goog.require('ol.source.BingMaps');
goog.require('ol.tilecoord');
goog.require('ol.Observable');