or null reference" I am working on asp.net mvc-5 ...">

Error inside jquery.validate.js "javaScript runtime error: unable to get property call 'w90> or null reference"

I am working on asp.net mvc-5 web application. and I am using these scripts: -

  • jquery 1.10.2
  • jquery-ui 1.8.24
  • JQuery Validation Plugin 1.11.1

Now when I run the application inside visual studio 2013 the following exception will occur in IE10, while there will be no problem on chrome or firefox: -

Unhandled exception at line 1234, column 5 in http://localhost:49392/Scripts/jquery.validate.js

0x800a138f - JavaScript runtime error: Unable to get property 'call' of undefined or null reference

      

the code that will throw an error in jquery.validate.js: -

function($) {
    // only implement if not provided by jQuery core (since 1.4)
    // TODO verify if jQuery 1.4 implementation is compatible with older jQuery special-event APIs
    if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) {
        $.each({
            focus: 'focusin',
            blur: 'focusout'
        }, function( original, fix ){
            $.event.special[fix] = {
                setup:function() {
                    this.addEventListener( original, handler, true );
                },
                teardown:function() {
                    this.removeEventListener( original, handler, true );
                },
                handler: function(e) {
                    var args = arguments;
                    args[0] = $.event.fix(e);
                    args[0].type = fix;
                    return $.event.handle.apply(this, args);
                }
            };
            function handler(e) {
                e = $.event.fix(e);
                e.type = fix;
                **return $.event.handle.call(this, e);**//this will raise the exception
            }
        });
    }

      

Anyone have any idea how I can solve this problem? thank

+5


source to share


1 answer


installing jquery migrate can fix this problem PM> Install-Package jQuery.Migrate



+6


source







All Articles