Bug 615237 - cfx init uses the old widget api (r+a=myk)
authorDietrich Ayala <autonome@gmail.com>
Wed, 01 Dec 2010 15:02:37 +0700
changeset 1152 0b4b1f6779fe709d62c7cec4408cd4446f523fc1
parent 1151 985136f1b156a4cca06ea44cd880401db7a1edf5
child 1158 4652ea39c218632f587d52bd30a69bde801346b5
push id473
push userbwarner@mozilla.com
push dateWed, 01 Dec 2010 08:10:11 +0000
bugs615237
Bug 615237 - cfx init uses the old widget api (r+a=myk)
python-lib/cuddlefish/templates.py
--- a/python-lib/cuddlefish/templates.py
+++ b/python-lib/cuddlefish/templates.py
@@ -3,17 +3,17 @@ MAIN_JS = '''\
 const widgets = require("widget");
 const tabs = require("tabs");
 const panels = require("panel");
 const data = require("self").data;
 
 let my_widget = widgets.Widget({
     label:"Mozilla website",
     contentURL:"http://www.mozilla.org/favicon.ico",
-    onClick:function(e){
+    onClick:function(widget){
         tabs.open("http://mozilla.org");
     }
 });
 
 console.log("Jetpack sample addon running.");
 /*Your code is here below*/
 
 '''