Error Calling NPObject
<p>I am using jquery with my android application. I successfully run my project when i am testing it on 2.1,3.0 but when i test it with 4.1 then it shows me error like " Error Calling method on NPObject" so please suggest me if jquery or any js needs any when version changes. I am describing here the code where i actually getting the error, actually i am pasting the code from jquery.min.js.</p>

<p>i am getting error in 3rd line in this method :</p>

<pre><code>function warn(message) {
            if (window.console !== undefined &amp;&amp; jQTSettings.debug === true) {
                console.warn(message);
            }
        }
</code></pre>

<p>and this method is calling from :</p>

<pre><code>// Unfortunately, we can not assume the "tap" event
    // is being used for links, forms, etc.
    function clickHandler(e) {
        // Figure out whether to prevent default
        var $el = $(e.target);

        // Find the nearest tappable ancestor
        if (!$el.is(touchSelectors.join(', '))) {
            $el = $(e.target).closest(touchSelectors.join(', '));
        }

        // Prevent default if we found an internal link (relative or absolute)
        if ($el &amp;&amp; $el.prop('href') &amp;&amp; !$el.isExternalLink()) {
            warn('Need to prevent default click behavior');
            e.preventDefault();
        } else {
            warn('No need to prevent default click behavior');
        }

        // Trigger a tap event if touchstart is not on the job
        if ($.support.touch) {
            warn('Not converting click to a tap event because touch handler is on the job');
        } else {
            warn('Converting click event to a tap event because touch handlers are not present or off');
            $(e.target).trigger('tap', e);
        }

    }
</code></pre>

<p>Please suggest me how to get rid off this error. </p>
