Skip to content

Non-deterministic behavior when including widget twice on same page #109

@lrettig

Description

@lrettig

Hi Prem

Thanks for creating a really awesome tool. I've used sqwidget to create a set of widgets that are displayed on third party blogs (you can see one at the top left of www.amothershipdown.com). I've run into an issue when I try to include the same widget twice in the same page.

Basically, I sometimes get this error, sometimes not:

Uncaught TypeError: Cannot read property 'addMethod' of undefined

Which appears to be coming from jQuery and may indicate a namespace conflict?

Based on comments in your code it looks like loading the same code twice isn't currently supported. I also tried copying the code and loading it a second time from a second URL, which also didn't work.

Is there any way to display two sqwidgets on the same page?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions