Replace 'changed' with 'change' (see #694)

This commit is contained in:
Frederic Junod
2013-06-07 11:51:08 +02:00
parent b66b0be8b4
commit 9b00967df0
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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 : {});