Replace 'changed' with 'change' (see #694)
This commit is contained in:
@@ -25,7 +25,7 @@ var deviceOrientation = new ol.DeviceOrientation();
|
||||
var track = new ol.dom.Input(document.getElementById('track'));
|
||||
track.bindTo('checked', deviceOrientation, 'tracking');
|
||||
|
||||
deviceOrientation.on('changed', function() {
|
||||
deviceOrientation.on('change', function() {
|
||||
document.getElementById('alpha').innerHTML = deviceOrientation.getAlpha();
|
||||
document.getElementById('beta').innerHTML = deviceOrientation.getBeta();
|
||||
document.getElementById('gamma').innerHTML = deviceOrientation.getGamma();
|
||||
|
||||
@@ -33,7 +33,7 @@ ol.DeviceOrientation = function(opt_options) {
|
||||
this.listenerKey_ = null;
|
||||
|
||||
goog.events.listen(this,
|
||||
ol.Object.getChangedEventType(ol.DeviceOrientationProperty.TRACKING),
|
||||
ol.Object.getChangeEventType(ol.DeviceOrientationProperty.TRACKING),
|
||||
this.handleTrackingChanged_, false, this);
|
||||
|
||||
goog.base(this, goog.isDef(opt_options) ? opt_options : {});
|
||||
|
||||
Reference in New Issue
Block a user