[extensions-web] js: Add some comments to help myself remember...



commit ddbe50e0df5dbcf9bdd698e771846d8f193f77b6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Apr 2 09:38:09 2012 -0400

    js: Add some comments to help myself remember...

 sweettooth/static/js/extensions.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index b030014..8315101 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -116,6 +116,7 @@ function($, messages, dbusProxy, extensionUtils, templates) {
             });
         }
 
+        // When the user flips the switch...
         $switch.bind('changed', function(e, newValue) {
             var oldState = $elem.data('state');
             if (newValue) {
@@ -137,6 +138,7 @@ function($, messages, dbusProxy, extensionUtils, templates) {
             }
         });
 
+        // When the extension changes state...
         $elem.bind('state-changed', function(e, newState) {
             $elem.data('state', newState);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]