adding some tracability into the plugins code
[myslice.git] / plugins / myplugin / static / js / myplugin.js
index 1801115..a885ddf 100644 (file)
@@ -23,6 +23,8 @@
          *     applied, which allows to maintain chainability of calls
          */
         init: function(options, element) {
+           // for debugging tools
+           this.classname="myplugin";
             // Call the parent constructor, see FAQ when forgotten
             this._super(options, element);
 
@@ -44,7 +46,7 @@
         },
 
         /* PLUGIN EVENTS */
-        // on_show like in hazelnut
+        // on_show like in querytable
 
 
         /* GUI EVENTS */
@@ -61,7 +63,7 @@
 
         show_hide_button: function() 
         {
-            // this.id, this.el, this.cl, this.els
+            // this.id, this.el, this.cl, this.elts
             // same output as a jquery selector with some guarantees
         },
 
@@ -86,8 +88,7 @@
         // ... be sure to list all events here
 
         /* RECORD HANDLERS */
-        
-        on_record_received: function(record)
+        on_all_new_record: function(record)
         {
             //
         },