Beispiel #1
0
 model.addObserver('liveSensorReading', function() {
   controller.updateView();
 });
Beispiel #2
0
 model.addObserver('sensorReading', function() {
   // if the model is running, the tick handler will take care of it
   if (model.isStopped()) {
     controller.updateView();
   }
 });