CoreFiles by mySites.guru
javascript-hint.min.js1 lines, 3,312 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
b3fa248dcf6f0fc0005f605eb7694ff4
sha1
9918c7931efbe0a09ce7ea95301ff5bdae79e1c2
sha256
6adb2dfb4817c6aa06fec67fdac09b3d08e2a9d97941d223b5e63dbf151af3b5
(function(p){typeof exports=="object"&&typeof module=="object"?p(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],p):p(CodeMirror)})(function(p){var d=p.Pos;function g(t,n){for(var e=0,r=t.length;e<r;++e)n(t[e])}function w(t,n){if(!Array.prototype.indexOf){for(var e=t.length;e--;)if(t[e]===n)return!0;return!1}return t.indexOf(n)!=-1}function v(t,n,e,r){var s=t.getCursor(),i=e(t,s);if(!/\b(?:string|comment)\b/.test(i.type)){var o=p.innerMode(t.getMode(),i.state);if(o.mode.helperType!=="json"){i.state=o.state,/^[\w$_]*$/.test(i.string)?i.end>s.ch&&(i.end=s.ch,i.string=i.string.slice(0,s.ch-i.start)):i={start:s.ch,end:s.ch,string:"",state:i.state,type:i.string=="."?"property":null};for(var f=i;f.type=="property";){if(f=e(t,d(s.line,f.start)),f.string!=".")return;if(f=e(t,d(s.line,f.start)),!y)var y=[];y.push(f)}return{list:Q(i,y,n,r),from:d(s.line,i.start),to:d(s.line,i.end)}}}}function m(t,n){return v(t,_,function(e,r){return e.getTokenAt(r)},n)}p.registerHelper("hint","javascript",m);function O(t,n){var e=t.getTokenAt(n);return n.ch==e.start+1&&e.string.charAt(0)=="."?(e.end=e.start,e.string=".",e.type="property"):/^\.[\w$_]*$/.test(e.string)&&(e.type="property",e.start++,e.string=e.string.replace(/\./,"")),e}function x(t,n){return v(t,H,O,n)}p.registerHelper("hint","coffeescript",x);var C="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),P="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),A="prototype apply call bind".split(" "),_="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),H="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function $(t,n){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var e in t)n(e);else for(var r=t;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(n)}function Q(t,n,e,r){var s=[],i=t.string,o=r&&r.globalScope||window;function f(u){u.lastIndexOf(i,0)==0&&!w(s,u)&&s.push(u)}function y(u){typeof u=="string"?g(C,f):u instanceof Array?g(P,f):u instanceof Function&&g(A,f),$(u,f)}if(n&&n.length){var c=n.pop(),l;for(c.type&&c.type.indexOf("variable")===0?(r&&r.additionalContext&&(l=r.additionalContext[c.string]),(!r||r.useGlobalScope!==!1)&&(l=l||o[c.string])):c.type=="string"?l="":c.type=="atom"?l=1:c.type=="function"&&(o.jQuery!=null&&(c.string=="$"||c.string=="jQuery")&&typeof o.jQuery=="function"?l=o.jQuery():o._!=null&&c.string=="_"&&typeof o._=="function"&&(l=o._()));l!=null&&n.length;)l=l[n.pop().string];l!=null&&y(l)}else{for(var a=t.state.localVars;a;a=a.next)f(a.name);for(var h=t.state.context;h;h=h.prev)for(var a=h.vars;a;a=a.next)f(a.name);for(var a=t.state.globalVars;a;a=a.next)f(a.name);if(r&&r.additionalContext!=null)for(var S in r.additionalContext)f(S);(!r||r.useGlobalScope!==!1)&&y(o),g(e,f)}return s}});

The same content is in 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.