Rename onOnce to once (see #678)

This commit is contained in:
Tim Schaub
2013-04-30 14:58:39 -06:00
parent 59a4155651
commit ffe9105891
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ var geolocation = new ol.Geolocation({
tracking: true
});
geolocation.bindTo('projection', view);
geolocation.onOnce('position_changed', function() {
geolocation.once('position_changed', function() {
view.setCenter(geolocation.getPosition());
view.setResolution(2.388657133911758);
});