WordPress.org

Ready to get started?Download WordPress

Forums

prototype.js error line 3920 (3 posts)

  1. topher920
    Member
    Posted 5 years ago #

    I keep getting this error in IE7 ( i know) and Safari keeps picking this up in its debug. If anyone could help it is much appreciated. Thanks ahead of time!

    it is on line 3920 in the prototype.js file

    This is the error report that Safari give me not really sure what this means?

    TypeError: Result of expression '$' [undefined] is not a function. (repeated 2 times)

    `var wrapper = findWrapper(id, eventName, handler);
    if (!wrapper) return element;

    if (element.removeEventListener) {
    element.removeEventListener(name, wrapper, false);
    } else {
    element.detachEvent("on" + name, wrapper);
    }

    destroyWrapper(id, eventName, handler);

    return element;
    },

    fire: function(element, eventName, memo) {
    element = $(element); <---- line 3920 ----<

    if (element == document && document.createEvent && !element.dispatchEvent)
    element = document.documentElement;

    if (document.createEvent) {
    var event = document.createEvent("HTMLEvents");
    event.initEvent("dataavailable", true, true);
    } else {
    var event = document.createEventObject();
    event.eventType = "ondataavailable";
    }

    event.eventName = eventName;
    event.memo = memo || { };

    if (document.createEvent) {
    element.dispatchEvent(event);
    } else {
    element.fireEvent(event.eventType, event);
    }

    return event;
    }
    };
    })());`

  2. shurik2533
    Member
    Posted 5 years ago #

    I have this problem too. Do you find how to correct it?

  3. shurik2533
    Member
    Posted 5 years ago #

    I don't find, where used function $() in wordpress. Just comment 3920 string and problem will be solved

Topic Closed

This topic has been closed to new replies.

About this Topic