Don't know if it can be considered an actual issue, anyway it seems that the "button onclick handler" can't work properly with the add_widget function.
Check this out: http://jsfiddle.net/H6dCR/
Adding a widget in the outer scope works properly. Even binding the function to "mouseover" event instead of "click" (on the same button) works fine.
Don't know if it can be considered an actual issue, anyway it seems that the "button onclick handler" can't work properly with the add_widget function. Check this out: http://jsfiddle.net/H6dCR/ Adding a widget in the outer scope works properly. Even binding the function to "mouseover" event instead of "click" (on the same button) works fine.