Skip to content

[IE9] window.console.log.apply - Object doesn't support property or method 'apply'  #231

Closed
@DragorWW

Description

@DragorWW

After load page, i see this error.

problem in src/migrate.js;

    // Support: IE9 only
    // IE9 only creates console object when dev tools are first opened
    // Also, avoid Function#bind here to simplify PhantomJS usage
    var log = window.console && window.console.log &&
            function() { window.console.log.apply( window.console, arguments ); }, // <------ this
        rbadVersions = /^[12]\./;

related questions on stackoverflow

is change code:

        var log = window.console && window.console.log &&
                function() {
                    var log = Function.prototype.bind.call(console.log, console);
                    log.apply( window.console, arguments );
        },
            rbadVersions = /^[12]\./;

in ie 9 jquery migrate working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions