Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple javascript executions when including a tag multiple times #65

Closed
moritzp opened this Issue · 4 comments

2 participants

@moritzp

If including the a js dependent view more than once, the javascript is also included more than once, which leads to multiple executions of the script and therefore multiple popups etc.

@benorama
Owner

Indeed, since 0.6.0, this is an issue.
We might put some variables in the request scope to prevent multiple inserts...
I'm going to have a look on this.

@moritzp

I already committed something you might want to check it out:
moritzp@153373c

@benorama benorama closed this issue from a commit
@benorama benorama [Fix #65] TagLib update (scripts are only included once in a page eve…
…n if tags are used more than once)
a202f49
@benorama benorama closed this in a202f49
@benorama
Owner

Hi Moritz,

I've updated the tag lib to automatically record included scripts so that there are only include once.
I just released 0.6.1.
Let me know if it solves your issue.

Thanks for the bug report!

@moritzp

Indeed, yours is a nicer solution :) Works for us! Thanks for the quick fix!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.