WordPress.org

Ready to get started?Download WordPress

Forums

WP DoNotTrack
[resolved] Bug in firefox (2 posts)

  1. dhilditch
    Member
    Posted 1 year ago #

    There is a bug in your code in this file:

    SyntaxError: invalid increment operand
    http://example.com/wp-content/plugins/wp-donottrack/donottrack-min.js?dntver=0.8.3
    Line 1

    The offending code seems to be caused by your minifier? (possibly)

    The code is:

    (this.id="ui-id-"+++n)

    Javascript interprets this is trying to do a ++ operator on the string which is obviously impossible.

    It should read:

    (this.id="ui-id-"+ ++n)

    As I believe you are meaning the first plus to APPEND and the next two pluses to increment the n variable.

    This broke my plugin in firefox since it meant my functions didn't get defined - I have advised my client to remove your plugin until you fix it.

    http://wordpress.org/extend/plugins/wp-donottrack/

  2. futtta
    Member
    Plugin Author

    Posted 1 year ago #

    Afternoon dhilditch;
    Thanks for the feedback. This is very weird, as there is absolutely no

    (this.id="ui-id-"+++n)

    in donottrack-min.js as you can see in http://plugins.svn.wordpress.org/wp-donottrack/tags/0.8.3/donottrack-min.js.

    any idea how wp-donottrack is interfering here?

    frank

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic