mardi 10 octobre 2017

ReferenceError: reference to undefined property "n" in modernizr-2.6.2.js

I have an Input of type="password" on my html. When I try to input alphabet 'n', it does not let me do it. It throws a javascript error as follows:

ReferenceError: reference to undefined property "n"[Learn More]

I debugged it int the Firebug console and found that the error arises due to code in the following javascript file:

if(window.Modernizr=function(n,t,i){function a(n){c.cssText=n}function vt(n,t){return a(y.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function lt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function yt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ot.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?lt(u,t):(u=(n+" "+st.join(r+" ")+r).split(" "),yt(u,t,i))}function pt(){u.input=function(i){for(var r=0,u=i.length;r

The above is just a code snippet from the 'modernizr-2.6.2.js' js file that I'm referencing.

I get the same error for input of type="search" and type="password". I have looked around but haven't found a solution for the same. Maybe I'm missing something. Help would be appreciated.




Aucun commentaire:

Enregistrer un commentaire