AproJo
view release on metacpan or search on metacpan
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
Events, FadeAnimation, Field, Flash, Float32Array, Float64Array, Form,
FormField, Frame, FormData, Function, Fx, GetObject, Group, Hash, HotKey,
HTMLElement, HTMLAnchorElement, HTMLBaseElement, HTMLBlockquoteElement,
HTMLBodyElement, HTMLBRElement, HTMLButtonElement, HTMLCanvasElement, HTMLDirectoryElement,
HTMLDivElement, HTMLDListElement, HTMLFieldSetElement,
HTMLFontElement, HTMLFormElement, HTMLFrameElement, HTMLFrameSetElement,
HTMLHeadElement, HTMLHeadingElement, HTMLHRElement, HTMLHtmlElement,
HTMLIFrameElement, HTMLImageElement, HTMLInputElement, HTMLIsIndexElement,
HTMLLabelElement, HTMLLayerElement, HTMLLegendElement, HTMLLIElement,
HTMLLinkElement, HTMLMapElement, HTMLMenuElement, HTMLMetaElement,
HTMLModElement, HTMLObjectElement, HTMLOListElement, HTMLOptGroupElement,
HTMLOptionElement, HTMLParagraphElement, HTMLParamElement, HTMLPreElement,
HTMLQuoteElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement,
HtmlTable, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement,
HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement,
HTMLTextAreaElement, HTMLTitleElement, HTMLUListElement, HTMLVideoElement,
Iframe, IframeShim, Image, importScripts, Int16Array, Int32Array, Int8Array,
Insertion, InputValidator, JSON, Keyboard, Locale, LN10, LN2, LOG10E, LOG2E,
MAX_VALUE, MIN_VALUE, Map, Mask, Math, MenuItem, MessageChannel, MessageEvent, MessagePort,
MoveAnimation, MooTools, MutationObserver, NaN, Native, NEGATIVE_INFINITY, Node, NodeFilter,
Number, Object, ObjectRange,
Option, Options, OverText, PI, POSITIVE_INFINITY, PeriodicalExecuter, Point, Position, Prototype,
RangeError, Rectangle, ReferenceError, RegExp, ResizeAnimation, Request, RotateAnimation, Set,
SQRT1_2, SQRT2, ScrollBar, ScriptEngine, ScriptEngineBuildVersion,
ScriptEngineMajorVersion, ScriptEngineMinorVersion, Scriptaculous, Scroller,
Slick, Slider, Selector, SharedWorker, String, Style, SyntaxError, Sortable, Sortables,
SortableObserver, Sound, Spinner, System, Swiff, Text, TextArea, Template,
Timer, Tips, Type, TypeError, Toggle, Try, "use strict", unescape, URI, URIError, URL,
VBArray, WeakMap, WSH, WScript, XDomainRequest, Web, Window, XMLDOM, XMLHttpRequest, XMLSerializer,
XPathEvaluator, XPathException, XPathExpression, XPathNamespace, XPathNSResolver, XPathResult,
"\\", a, abs, addEventListener, address, alert, apply, applicationCache, arguments, arity,
asi, atob, b, basic, basicToken, bitwise, blacklist, block, blur, boolOptions, boss,
browser, btoa, c, call, callee, caller, camelcase, cases, charAt, charCodeAt, character,
clearInterval, clearTimeout, close, closed, closure, comment, complexityCount, condition,
confirm, console, constructor, content, couch, create, css, curly, d, data, datalist, dd, debug,
decodeURI, decodeURIComponent, defaultStatus, defineClass, deserialize, devel, document,
dojo, dijit, dojox, define, else, emit, encodeURI, encodeURIComponent, elem,
eqeq, eqeqeq, eqnull, errors, es5, escape, esnext, eval, event, evidence, evil,
ex, exception, exec, exps, expr, exports, FileReader, first, floor, focus, forEach,
forin, fragment, frames, from, fromCharCode, fud, funcscope, funct, function, functions,
g, gc, getComputedStyle, getRow, getter, getterToken, GLOBAL, global, globals, globalstrict,
hasOwnProperty, help, history, i, id, identifier, immed, implieds, importPackage, include,
indent, indexOf, init, ins, internals, instanceOf, isAlpha, isApplicationRunning, isArray,
isDigit, isFinite, isNaN, iterator, java, join, jshint,
JSHINT, json, jquery, jQuery, keys, label, labelled, last, lastcharacter, lastsemic, laxbreak,
laxcomma, latedef, lbp, led, left, length, line, load, loadClass, localStorage, location,
log, loopfunc, m, match, max, maxcomplexity, maxdepth, maxerr, maxlen, maxstatements, maxparams,
member, message, meta, module, moveBy, moveTo, mootools, multistr, name, navigator, new, newcap,
nestedBlockDepth, noarg, node, noempty, nomen, nonew, nonstandard, nud, onbeforeunload, onblur,
onerror, onevar, onecase, onfocus, onload, onresize, onunload, open, openDatabase, openURL,
opener, opera, options, outer, param, parent, parseFloat, parseInt, passfail, plusplus,
postMessage, pop, predef, print, process, prompt, proto, prototype, prototypejs, provides, push,
quit, quotmark, range, raw, reach, reason, regexp, readFile, readUrl, regexdash,
removeEventListener, replace, report, require, reserved, resizeBy, resizeTo, resolvePath,
resumeUpdates, respond, rhino, right, runCommand, scroll, scope, screen, scripturl, scrollBy,
scrollTo, scrollbar, search, seal, self, send, serialize, sessionStorage, setInterval, setTimeout,
setter, setterToken, shift, slice, smarttabs, sort, spawn, split, statement, statementCount, stack,
status, start, strict, sub, substr, supernew, shadow, supplant, sum, sync, test, toLowerCase,
toString, toUpperCase, toint32, token, tokens, top, trailing, type, typeOf, Uint16Array,
Uint32Array, Uint8Array, undef, undefs, unused, urls, validthis, value, valueOf, var, vars,
version, verifyMaxParametersPerFunction, verifyMaxStatementsPerFunction,
verifyMaxComplexityPerFunction, verifyMaxNestedBlockDepthPerFunction, WebSocket, withstmt, white,
window, windows, Worker, worker, wsh, yui, YUI, Y, YUI_config*/
/*global exports: false */
// We build the application inside a function so that we produce only a single
// global variable. That function will be invoked immediately, and its return
// value is the JSHINT function itself.
var JSHINT = (function () {
"use strict";
var anonname, // The guessed name for anonymous functions.
// These are operators that should not be used with the ! operator.
bang = {
"<" : true,
"<=" : true,
"==" : true,
"===": true,
"!==": true,
"!=" : true,
">" : true,
">=" : true,
"+" : true,
"-" : true,
"*" : true,
"/" : true,
"%" : true
},
// These are the JSHint boolean options.
boolOptions = {
asi : true, // if automatic semicolon insertion should be tolerated
bitwise : true, // if bitwise operators should not be allowed
boss : true, // if advanced usage of assignments should be allowed
browser : true, // if the standard browser globals should be predefined
camelcase : true, // if identifiers should be required in camel case
couch : true, // if CouchDB globals should be predefined
curly : true, // if curly braces around all blocks should be required
debug : true, // if debugger statements should be allowed
devel : true, // if logging globals should be predefined (console,
// alert, etc.)
dojo : true, // if Dojo Toolkit globals should be predefined
eqeqeq : true, // if === should be required
eqnull : true, // if == null comparisons should be tolerated
es5 : true, // if ES5 syntax should be allowed
esnext : true, // if es.next specific syntax should be allowed
evil : true, // if eval should be allowed
expr : true, // if ExpressionStatement should be allowed as Programs
forin : true, // if for in statements must filter
funcscope : true, // if only function scope should be used for scope tests
globalstrict: true, // if global "use strict"; should be allowed (also
// enables 'strict')
immed : true, // if immediate invocations must be wrapped in parens
iterator : true, // if the `__iterator__` property should be allowed
jquery : true, // if jQuery globals should be predefined
lastsemic : true, // if semicolons may be ommitted for the trailing
// statements inside of a one-line blocks.
latedef : true, // if the use before definition should not be tolerated
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
// javascript url
jx = /^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i;
// catches /* falls through */ comments
ft = /^\s*\/\*\s*falls\sthrough\s*\*\/\s*$/;
}());
function F() {} // Used by Object.create
function is_own(object, name) {
// The object.hasOwnProperty method fails when the property under consideration
// is named 'hasOwnProperty'. So we have to use this more convoluted form.
return Object.prototype.hasOwnProperty.call(object, name);
}
function checkOption(name, t) {
if (valOptions[name] === undefined && boolOptions[name] === undefined) {
warning("Bad option: '" + name + "'.", t);
}
}
function isString(obj) {
return Object.prototype.toString.call(obj) === "[object String]";
}
// Provide critical ES5 functions to ES3.
if (typeof Array.isArray !== "function") {
Array.isArray = function (o) {
return Object.prototype.toString.apply(o) === "[object Array]";
};
}
if (!Array.prototype.forEach) {
Array.prototype.forEach = function (fn, scope) {
var len = this.length;
for (var i = 0; i < len; i++) {
fn.call(scope || this, this[i], i, this);
}
};
}
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
if (this === null || this === undefined) {
throw new TypeError();
}
var t = new Object(this);
var len = t.length >>> 0;
if (len === 0) {
return -1;
}
var n = 0;
if (arguments.length > 0) {
n = Number(arguments[1]);
if (n != n) { // shortcut for verifying if it's NaN
n = 0;
} else if (n !== 0 && n != Infinity && n != -Infinity) {
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
}
if (n >= len) {
return -1;
}
var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
for (; k < len; k++) {
if (k in t && t[k] === searchElement) {
return k;
}
}
return -1;
};
}
if (typeof Object.create !== "function") {
Object.create = function (o) {
F.prototype = o;
return new F();
};
}
if (typeof Object.keys !== "function") {
Object.keys = function (o) {
var a = [], k;
for (k in o) {
if (is_own(o, k)) {
a.push(k);
}
}
return a;
};
}
// Non standard methods
function isAlpha(str) {
return (str >= "a" && str <= "z\uffff") ||
(str >= "A" && str <= "Z\uffff");
}
function isDigit(str) {
return (str >= "0" && str <= "9");
}
function isIdentifier(token, value) {
if (!token)
return false;
if (!token.identifier || token.value !== value)
return false;
return true;
}
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
} else if (p.id === "}") {
// directive with no other statements, warn about missing semicolon
warning("Missing semicolon.", p);
} else if (p.id !== ";") {
break;
}
indentation();
advance();
if (directive[token.value]) {
warning("Unnecessary directive \"{a}\".", token, token.value);
}
if (token.value === "use strict") {
if (!option["(explicitNewcap)"])
option.newcap = true;
option.undef = true;
}
// there's no directive negation, so always set to true
directive[token.value] = true;
if (p.id === ";") {
advance(";");
}
continue;
}
break;
}
}
/*
* Parses a single block. A block is a sequence of statements wrapped in
* braces.
*
* ordinary - true for everything but function bodies and try blocks.
* stmt - true if block can be a single statement (e.g. in if/for/while).
* isfunc - true if block is a function body
*/
function block(ordinary, stmt, isfunc) {
var a,
b = inblock,
old_indent = indent,
m,
s = scope,
t,
line,
d;
inblock = ordinary;
if (!ordinary || !option.funcscope)
scope = Object.create(scope);
nonadjacent(token, nexttoken);
t = nexttoken;
var metrics = funct["(metrics)"];
metrics.nestedBlockDepth += 1;
metrics.verifyMaxNestedBlockDepthPerFunction();
if (nexttoken.id === "{") {
advance("{");
line = token.line;
if (nexttoken.id !== "}") {
indent += option.indent;
while (!ordinary && nexttoken.from > indent) {
indent += option.indent;
}
if (isfunc) {
m = {};
for (d in directive) {
if (is_own(directive, d)) {
m[d] = directive[d];
}
}
directives();
if (option.strict && funct["(context)"]["(global)"]) {
if (!m["use strict"] && !directive["use strict"]) {
warning("Missing \"use strict\" statement.");
}
}
}
a = statements(line);
metrics.statementCount += a.length;
if (isfunc) {
directive = m;
}
indent -= option.indent;
if (line !== nexttoken.line) {
indentation();
}
} else if (line !== nexttoken.line) {
indentation();
}
advance("}", t);
indent = old_indent;
} else if (!ordinary) {
error("Expected '{a}' and instead saw '{b}'.",
nexttoken, "{", nexttoken.value);
} else {
if (!stmt || option.curly)
warning("Expected '{a}' and instead saw '{b}'.",
nexttoken, "{", nexttoken.value);
noreach = true;
indent += option.indent;
// test indentation only if statement is in new line
a = [statement(nexttoken.line === token.line)];
indent -= option.indent;
noreach = false;
}
funct["(verb)"] = null;
if (!ordinary || !option.funcscope) scope = s;
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
function functionparams() {
var next = nexttoken;
var params = [];
var ident;
advance("(");
nospace();
if (nexttoken.id === ")") {
advance(")");
return;
}
for (;;) {
ident = identifier(true);
params.push(ident);
addlabel(ident, "unused", token);
if (nexttoken.id === ",") {
comma();
} else {
advance(")", next);
nospace(prevtoken, token);
return params;
}
}
}
function doFunction(name, statement) {
var f;
var oldOption = option;
var oldScope = scope;
option = Object.create(option);
scope = Object.create(scope);
funct = {
"(name)" : name || "\"" + anonname + "\"",
"(line)" : nexttoken.line,
"(character)": nexttoken.character,
"(context)" : funct,
"(breakage)" : 0,
"(loopage)" : 0,
"(metrics)" : createMetrics(nexttoken),
"(scope)" : scope,
"(statement)": statement,
"(tokens)" : {}
};
f = funct;
token.funct = funct;
functions.push(funct);
if (name) {
addlabel(name, "function");
}
funct["(params)"] = functionparams();
funct["(metrics)"].verifyMaxParametersPerFunction(funct["(params)"]);
block(false, false, true);
funct["(metrics)"].verifyMaxStatementsPerFunction();
funct["(metrics)"].verifyMaxComplexityPerFunction();
scope = oldScope;
option = oldOption;
funct["(last)"] = token.line;
funct["(lastcharacter)"] = token.character;
funct = funct["(context)"];
return f;
}
function createMetrics(functionStartToken) {
return {
statementCount: 0,
nestedBlockDepth: -1,
ComplexityCount: 1,
verifyMaxStatementsPerFunction: function () {
if (option.maxstatements &&
this.statementCount > option.maxstatements) {
var message = "Too many statements per function (" + this.statementCount + ").";
warning(message, functionStartToken);
}
},
verifyMaxParametersPerFunction: function (params) {
params = params || [];
if (option.maxparams && params.length > option.maxparams) {
var message = "Too many parameters per function (" + params.length + ").";
warning(message, functionStartToken);
}
},
verifyMaxNestedBlockDepthPerFunction: function () {
if (option.maxdepth &&
this.nestedBlockDepth > 0 &&
this.nestedBlockDepth === option.maxdepth + 1) {
var message = "Blocks are nested too deeply (" + this.nestedBlockDepth + ").";
warning(message);
}
},
verifyMaxComplexityPerFunction: function () {
var max = option.maxcomplexity;
var cc = this.ComplexityCount;
if (max && cc > max) {
var message = "Cyclomatic complexity is too high per function (" + cc + ").";
warning(message, functionStartToken);
}
}
};
}
function increaseComplexityCount() {
funct["(metrics)"].ComplexityCount += 1;
}
(function (x) {
x.nud = function () {
var b, f, i, p, t;
var props = {}; // All properties, including accessors
function saveProperty(name, token) {
if (props[name] && is_own(props, name))
warning("Duplicate member '{a}'.", nexttoken, i);
else
props[name] = {};
props[name].basic = true;
props[name].basicToken = token;
}
function saveSetter(name, token) {
if (props[name] && is_own(props, name)) {
if (props[name].basic || props[name].setter)
warning("Duplicate member '{a}'.", nexttoken, i);
} else {
props[name] = {};
}
props[name].setter = true;
props[name].setterToken = token;
}
function saveGetter(name) {
if (props[name] && is_own(props, name)) {
if (props[name].basic || props[name].getter)
warning("Duplicate member '{a}'.", nexttoken, i);
} else {
props[name] = {};
}
props[name].getter = true;
props[name].getterToken = token;
}
b = token.line !== nexttoken.line;
if (b) {
indent += option.indent;
if (nexttoken.from === indent + option.indent) {
indent += option.indent;
}
( run in 3.583 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )