Permalink
Browse files

Make the demo for the PixelDensityMonitor listen to the correct event…

… type.

R=chrishenry
DELTA=6 (2 added, 1 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6096


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2423 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent 061c954 commit a90ff85e933929cb4e0e5d0401758280857c6f74 mkaeser@google.com committed Jan 8, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 closure/goog/demos/pixeldensitymonitor.html
@@ -13,7 +13,6 @@
goog.require('goog.debug.DivConsole');
goog.require('goog.debug.Logger');
goog.require('goog.events');
- goog.require('goog.events.EventType');
goog.require('goog.labs.style.PixelDensityMonitor');
goog.require('goog.labs.style.PixelDensityMonitor.Density');
</script>
@@ -40,9 +39,11 @@
goog.labs.style.PixelDensityMonitor.Density.NORMAL, 'NORMAL',
goog.labs.style.PixelDensityMonitor.Density.HIGH, 'HIGH');
- goog.events.listen(monitor, goog.events.EventType.CHANGE, function() {
- logger.info('Density change: ' + densityMap[monitor.getDensity()]);
- });
+ goog.events.listen(monitor,
+ goog.labs.style.PixelDensityMonitor.EventType.CHANGE,
+ function() {
+ logger.info('Density change: ' + densityMap[monitor.getDensity()]);
+ });
logger.info('Starting density: ' + densityMap[monitor.getDensity()]);
</script>

0 comments on commit a90ff85

Please sign in to comment.