Fix attach hooks triggering
Fix attach hooks triggering

To avoid triggering attach hooks several times, check if the widget is
inside a rendering loop.

* src/widget.js (inRenderingLoop): New function.
* src/widget.js (my.withAttachHooks): Check if the widget is inside a
  rendering loop.

foretagsplatsen/widget-js,foretagsplatsen/widget-js