rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
hoststring = host ? host : 'localhost';
this.listen = function (port, host) { var server = http.createServer(bind(this, this._handleRequest)); server.listen(port, host); hoststring = host ? host : 'localhost'; };
if (!transportName) { throw logger.error('No transport provided for net.listen'); }
exports.listen = function(server, transportName, opts) { var listenerClass = net.env.getListener(transportName); var listener = new listenerClass(server, opts); listener.listen(); return listener;}
wb=/%20/g;c.fn.extend({_load:c.fn.load,load:function(a,b,d){if(typeof a!=="string")return this._load(a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional)...
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month...
wb=/%20/g;c.fn.extend({_load:c.fn.load,load:function(a,b,d){if(typeof a!=="string")return this._load(a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional)...
if (e !== "Error opening input stream (invalid filename?)") { dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack);
if (typeof e !== "string") { dump("dactyl: Trying: " + (base + script + ".js") + ": " + e + "\n" + e.stack + "\n");
modules.load = function load(script) { for (let [i, base] in Iterator(prefix)) { try { loader.loadSubScript(base + script + ".js", modules); return; } catch (e) { if (e !== "Error opening input stream (invalid filename?)") { ...
form.alias.value = col["alias"]; form.iata.value = col["iata"]; form.icao.value = col["icao"]; form.callsign.value = col["callsign"];
if(col["alias"] != "null") form.alias.value = col["alias"]; if(col["iata"] != "null") form.iata.value = col["iata"]; if(col["icao"] != "null") form.icao.value = col["icao"]; if(col["callsign"] != "null") form.callsign.value = col["callsign"];
function loadAirline(data) { var col = jsonParse(unescape(data)); var b_back = document.getElementById("b_back"); var b_fwd = document.getElementById("b_fwd"); if(b_back) b_back.disabled = true; if(b_fwd) b_fwd.disabled = true; var form = document.forms['searchform']; form.name.value = col["name"]; form.alias.v...
var b_back = document.getElementById("b_back"); var b_fwd = document.getElementById("b_fwd"); if(b_back) b_back.disabled = true; if(b_fwd) b_fwd.disabled = true;
function loadAirport(data) { var col = jsonParse(unescape(data)); var b_back = document.getElementById("b_back"); var b_fwd = document.getElementById("b_fwd"); if(b_back) b_back.disabled = true; if(b_fwd) b_fwd.disabled = true; var form = document.forms['searchform']; form.airport.value = col["name"]; form.city...
shrinksafe.tests.module.loader = function(path, stripConsole){
shrinksafe.tests.module.loader = function(path, stripConsole, escapeUnicode){
shrinksafe.tests.module.loader = function(path, stripConsole){ // summary: Simple function to load and compress some file. Returns and object // with 'original' and 'compressed' members, respectively. var s = shrinksafe.tests.module.getContents(path); return { original: s, compressed: shrinksafe.tests.module.compr...
compressed: shrinksafe.tests.module.compress(s, stripConsole)
compressed: shrinksafe.tests.module.compress(s, stripConsole, escapeUnicode || false)
shrinksafe.tests.module.loader = function(path, stripConsole){ // summary: Simple function to load and compress some file. Returns and object // with 'original' and 'compressed' members, respectively. var s = shrinksafe.tests.module.getContents(path); return { original: s, compressed: shrinksafe.tests.module.compr...
document.previewimage.src = '../gfx/images/ajax-loader.png';}
document.previewimage.src = '../gfx/images/ajax-loader-on-sheet.gif';}
function loadIt() { document.previewimage.src = '../gfx/images/ajax-loader.png';}
throw new Error("Module not found: " + modulePath + " (looked in " + paths.join(', ') + ")");
throw new Error('Error in ' + path + ": requested import (" + modulePath + ") not found.\n\tlooked in:\n\t\t" + paths.join('\n\t\t'));
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath), moduleDef = findModule(possibilities), match; if (!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + modulePath + " (l...
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath);
function loadModule(fromDir, fromFile, modulePath, opts) { var possibilities = util.resolveModulePath(modulePath, fromDir); for (var i = 0, p; p = possibilities[i]; ++i) { var path = possibilities[i].path; if (path in jsio.__modules) { return possibilities[i]; } if (path in failedFetch) { possibilities.splice(i--, 1); ...
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to load (again)'); e.jsioLogged = true; throw e; }
if (!possibilities.length) { var e = new Error('Module failed to load (again)'); e.jsioLogged = true; throw e;
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
var moduleDef = findModule(possibilities),
var moduleDef = findModule(possibilities, opts),
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
for (var i = 0, p; p = possibilities[i]; ++i) { failed[p.filePath] = true; paths.push(p.filePath); } throw new Error('Error in ' + path + ": requested import (" + modulePath + ") not found.\n\tlooked in:\n\t\t" + paths.join('\n\t\t'));
for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.path); } throw new Error('Error in ' + fromDir + fromFile + ": requested import (" + modulePath + ") not found.\n\tcurrent directory: " + ENV.getCwd() + "\n\tlooked in:\n\t\t" + paths.join('\n\t\t'));
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
moduleDef.path = modulePath;
moduleDef.friendlyPath = modulePath;
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
applyPreprocessors(path, moduleDef, match[1].split(','), opts);
applyPreprocessors(fromDir, moduleDef, match[1].split(','), opts);
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
applyPreprocessors(path, moduleDef, opts.preprocessors, opts);
applyPreprocessors(fromDir, moduleDef, opts.preprocessors, opts);
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
if (modulePath == 'base') { jsio.__baseFile = moduleDef.filePath; }
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath); for (var i = possibilities.length - 1; i >= 0; --i) { var p = possibilities[i]; if (p.filePath in failed) { possibilities.splice(i, 1); } if (!possibilities.length) { var e = new Error('Module failed to ...
if (path in jsio.__modules) {
if (!opts.reload && (path in jsio.__modules)) {
function loadModule(fromDir, fromFile, modulePath, opts) { var possibilities = util.resolveModulePath(modulePath, fromDir); for (var i = 0, p; p = possibilities[i]; ++i) { var path = possibilities[i].path; if (path in jsio.__modules) { return possibilities[i]; } if (path in failedFetch) { possibilities.sp...
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString),
function loadModule(path, modulePath, opts) { var possibilities = guessModulePath(modulePath),
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
throw new Error("Module not found: " + pathString + " (looked in " + paths.join(', ') + ")");
throw new Error("Module not found: " + modulePath + " (looked in " + paths.join(', ') + ")");
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
if (moduleDef.baseMod && !(moduleDef.baseMod in jsio.path)) {
moduleDef.path = modulePath; if (moduleDef.baseMod && !(moduleDef.baseMod in jsio.__path)) {
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
if (opts.preprocessors) { applyPreprocessors(moduleDef, opts.preprocessors, opts);
while (moduleDef.src.charAt(0) == '"' && (match = moduleDef.src.match(preprocessorCheck))) { moduleDef.src = moduleDef.src.substring(match[0].length - 1); applyPreprocessors(path, moduleDef, match[1].split(','), opts);
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
while (moduleDef.src.charAt(0) == '"' && (match = moduleDef.src.match(preprocessorCheck))) { moduleDef.src = moduleDef.src.substring(match[0].length - 1); applyPreprocessors(moduleDef, match[1].split(','), opts);
if (opts.preprocessors) { applyPreprocessors(path, moduleDef, opts.preprocessors, opts);
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
if (modulePath == 'base') { jsio.__baseFile = moduleDef.filePath; }
function loadModule(pathString, opts) { var possibilities = guessModulePath(pathString), moduleDef = findModule(possibilities), match; if(!moduleDef) { var paths = []; for (var i = 0, p; p = possibilities[i]; ++i) { paths.push(p.filePath); } throw new Error("Module not found: " + pathString + " (looked i...
dactyl.echomsg('Searching for "plugin/**/*.{js,vimp}" in "' + [dir.path.replace(/.plugin$/, "") for ([, dir] in Iterator(dirs))].join(",") + '"', 2);
dactyl.echomsg('Searching for "plugin/**/*.{js,vimp}" in ' + [dir.path.replace(/.plugin$/, "") for ([, dir] in Iterator(dirs))] .join(",").quote(), 2);
loadPlugins: function () { function sourceDirectory(dir) { dactyl.assert(dir.isReadable(), "E484: Can't open file " + dir.path); dactyl.log("Sourcing plugin directory: " + dir.path + "...", 3); dir.readDirectory(true).forEach(function (file) { if (file.isFile()...
dactyl.echomsg("Searching for \"" + (dir.path + "/**/*.{js,vimp}") + "\"", 3);
dactyl.echomsg("Searching for " + (dir.path + "/**/*.{js,vimp}").quote(), 3);
loadPlugins: function () { function sourceDirectory(dir) { dactyl.assert(dir.isReadable(), "E484: Can't open file " + dir.path); dactyl.log("Sourcing plugin directory: " + dir.path + "...", 3); dir.readDirectory(true).forEach(function (file) { if (file.isFile()...
loadSchema: function (schemaName) { Logger.debug("JSFrontend.loadSchema: " + schemaName);
loadSchema: function (schemaName, callback, _sync) {
loadSchema: function (schemaName) { Logger.debug("JSFrontend.loadSchema: " + schemaName); var me = this; this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._backend.loadDict(schema); me.engine = new Engine(schem...
this._backend.loadConfig(schemaName, function (config) {
this._loadConfig(schemaName, function (config) {
loadSchema: function (schemaName) { Logger.debug("JSFrontend.loadSchema: " + schemaName); var me = this; this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._backend.loadDict(schema); me.engine = new Engine(schem...
me._backend.loadDict(schema); me.engine = new Engine(schema, me, me._backend); me.onSchemaReady();
me._loadDict(schema, _sync ? callback : null); if (!_sync) { callback(schema); }
loadSchema: function (schemaName) { Logger.debug("JSFrontend.loadSchema: " + schemaName); var me = this; this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me._backend.loadDict(schema); me.engine = new Engine(schem...
this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config);
this._backend.loadSchema(schemaName, function (schema) {
loadSchema: function (schemaName) { Logger.debug("TestFrontend.loadSchema: " + schemaName); var me = this; this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me.engine = new Engine(schema, me, me._backend); testAll...
});
}, "_sync");
loadSchema: function (schemaName) { Logger.debug("TestFrontend.loadSchema: " + schemaName); var me = this; this._backend.loadConfig(schemaName, function (config) { schema = new Schema (schemaName, config); me.engine = new Engine(schema, me, me._backend); testAll...
console.log('LOADING VIEW: ' + ajax_target_id); console.log(html);
function loadView( ajax_target_id, html ){ console.log('LOADING VIEW: ' + ajax_target_id); console.log(html); $(ajax_target_id).html( html ); hideLoaderGraphic(); }
context.keys.icon = 2; context.incomplete = true; context.hasItems = context.completions.length > 0; context.filterFunc = null; context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } }; context.compare = CompletionContext.Sort.unsorted;
context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } }; if (searchRunning) services.get("autoCompleteSearch").stopSearch();
completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; context.title = ["Smart Completions"]; context.keys.icon = 2; context.incomplete = true; context.hasItems...
if (searchRunning) services.get("autoCompleteSearch").stopSearch(); searchRunning = true;
completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; context.title = ["Smart Completions"]; context.keys.icon = 2; context.incomplete = true; context.hasItems...
searchRunning = true;
completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; context.title = ["Smart Completions"]; context.keys.icon = 2; context.incomplete = true; context.hasItems...
context.cancel = function () { if (searchRunning) { services.get("autoCompleteSearch").stopSearch(); searchRunning = false; } };
context.cancel = function () { services.get("autoCompleteSearch").stopSearch(); context.completions = []; };
completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; context.title = ["Smart Completions"]; context.keys.icon = 2; context.incomplete = true; context.hasItems...
searchRunning = false;
completion.location = function location(context) { if (!services.get("autoCompleteSearch")) return; context.anchored = false; context.title = ["Smart Completions"]; context.keys.icon = 2; context.incomplete = true; context.hasItems...
this.log = function() { process.stdio.writeError(Array.prototype.join.call(arguments, ' ') + '\n'); }
this.log = function() { try { process.stdio.writeError(Array.prototype.map.call(arguments, JSON.stringify).join(' ') + '\n'); } catch(e) { process.stdio.writeError(Array.prototype.join.call(arguments, ' ') + '\n'); } }
this.log = function() { process.stdio.writeError(Array.prototype.join.call(arguments, ' ') + '\n'); }
skipFrames = skipFrames || 0; if (typeof e == 'undefined' || !e) { var caughtErr = null; try { (null).foo; } catch (caughtErr) { e = caughtErr; } skipFrames++;
var tracebackLines = doctest.formatTraceback(e, skipFrames); if (! tracebackLines) { return;
doctest.logTraceback = function (e, skipFrames) { skipFrames = skipFrames || 0; if (typeof e == 'undefined' || !e) { var caughtErr = null; try { (null).foo; } catch (caughtErr) { e = caughtErr; } skipFrames++; } if (e.stack) { var stack = e.stack.split('\n'); for (var i=skipFrames; i<...
if (e.stack) { var stack = e.stack.split('\n'); for (var i=skipFrames; i<stack.length; i++) { if (stack[i] == '@:0' || ! stack[i]) { continue; } var parts = stack[i].split('@'); var context = parts[0]; parts = parts[1].split(':'); var filename = parts[parts.length-2].split('/'); filename = filename[filename.length-1]; ...
for (var i=0; i<tracebackLines.length; i++) { logDebug(tracebackLines[i]);
doctest.logTraceback = function (e, skipFrames) { skipFrames = skipFrames || 0; if (typeof e == 'undefined' || !e) { var caughtErr = null; try { (null).foo; } catch (caughtErr) { e = caughtErr; } skipFrames++; } if (e.stack) { var stack = e.stack.split('\n'); for (var i=skipFrames; i<...
if(parent === doc){
if(parent === doc || !parent){
lookupBG: function(elm, doc){ if(elm !== doc){ return (function(target){ var bg = getComputedStyle(elm, '').backgroundImage; if(bg){ return bg; } else { var parent = elm.parentNode; if(parent === doc){ return null; } els...
xhtml: "http:
xul: XUL.uri, xhtml: XHTML.uri,
function lookupNamespaceURI(prefix) { return { xhtml: "http://www.w3.org/1999/xhtml", xhtml2: "http://www.w3.org/2002/06/xhtml2", dactyl: NS.uri }[prefix] || null; },
var centerPanel = new WakameGUI.Selector(); this.getCardPanel = function(){ return cardPanel; } this.setUpPanel = function(obj){ cardPanel.setUpPanel(obj) } this.refreshInstance = function(){ centerPanel.refresh(); }
WakameGUI.Main = function(){ var accountPanel = new WakameGUI.Account(); var userPanel = new WakameGUI.User(); var resourceViewerPanel = new WakameGUI.ResourceViewer(); var resourceEditorPanel = new WakameGUI.ResourceEditor(); var locationMapPanel = new WakameGUI.LocationMap(); var logViewerPa...
paragraphe.setAttribute('class', 'm-texte');
function make_admin(){ var smallbox = document.forms['smallbox']; if( smallbox ) { DOM_Events.addListener('change', jump, false, smallbox.getElementsByTagName('select')[0]); } var aList = document.getElementsByTagName('a'); for( var i = 0, m = aList.length; i < m; i++ ) { if( aList[i].rel && aList[i].rel == 'show' ...
bouton.setAttribute('type', 'button');
function make_button(bloc){ var format = bloc.id.substr((bloc.id.length - 1), 1); var conteneur = document.createElement('div'); conteneur.setAttribute('class', 'bottom'); var bouton = document.createElement('input'); bouton.setAttribute('id', 'preview' + format); bouton.setAttribute('type', 'button'); bouton.setAttr...
bouton.setAttribute('class', 'button');
function make_button(bloc){ var format = bloc.id.substr((bloc.id.length - 1), 1); var conteneur = document.createElement('div'); conteneur.setAttribute('class', 'bottom'); var bouton = document.createElement('input'); bouton.setAttribute('id', 'preview' + format); bouton.setAttribute('type', 'button'); bouton.setAttr...
if(d)if(j)for(f in a){if(b.apply(a[f],d)===false)break}else for(;e<i;){if(b.apply(a[e++],d)===false)break}else if(j)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<i&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Ra,"")},makeArray:function(a,b){b=b||[];if(a!=null)a....
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.i...
if(d)if(j)for(f in a){if(b.apply(a[f],d)===false)break}else for(;e<i;){if(b.apply(a[e++],d)===false)break}else if(j)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<i&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Ra,"")},makeArray:function(a,b){b=b||[];if(a!=null)a....
if(kwArgs.htmlFile){ var html = fileUtil.readFile(kwArgs.htmlFile); var layers = [], htmlPrefix = "", prefixes = {dijit: true, dojox: true};
function processHtmlFile(htmlFile){ var priorLayers = []; var html = fileUtil.readFile(htmlFile);
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
layers.push(scriptName = scriptName.substring(prefix.length, scriptName.length - 3)); if(scriptName.indexOf('/') > -1){ prefixes[scriptName.substring(scriptName, scriptName.indexOf('/'))] = true; }
addLayer(scriptName = scriptName.substring(prefix.length, scriptName.length - 3).replace(/\
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
layers.push(scriptName);
addLayer(scriptName);
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
for(var prefix in prefixes){
for(prefix in prefixes){
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
profileProperties = kwArgs.profileProperties = buildUtil.processProfile({ layers: layers.map(function(name, i){ return {
var layersArray = []; for(var name in layers){ layersArray.push({
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
layerDependencies: layers.slice(0, i).map(function(name){
layerDependencies: layers[name].map(function(name){
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
}; }),
}); } profileProperties = { layers: layersArray,
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
});
}; if(kwArgs.profileFile){ fileUtil.saveFile(kwArgs.profileFile, "dependencies = " + profileProperties.toSource()); } profileProperties = kwArgs.profileProperties = buildUtil.processProfile(profileProperties);
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
var dependencies = {}; if(kwArgs["profileFile"]){
else if(kwArgs["profileFile"]){
buildUtil.makeBuildOptions = function(/*Array*/scriptArgs){ //summary: constructs the build options by combining the scriptArgs with //default build options and anything specified in a profile file. var kwArgs = {}, param, profileProperties; //Parse the command line arguments kwArgs = buildUtil.convertArrayToObject(scr...
return fakeChannel();
return fakeChannel(orig);
function makeChannel(url, orig) { try { if (url == null) return fakeChannel(); if (typeof url === "function") url = dataURL.apply(null, url()); let uri = ioService.newURI(url, null, null); let channel = ioService.newChannelFromURI(uri); channel.contentCharset ...
Components.utils.reportError(e);
util.reportError(e);
function makeChannel(url, orig) { try { if (url == null) return fakeChannel(); if (typeof url === "function") url = dataURL.apply(null, url()); let uri = ioService.newURI(url, null, null); let channel = ioService.newChannelFromURI(uri); channel.contentCharset ...
if (typeof url == "function")
if (typeof url === "function")
function makeChannel(url, orig) { if (url == null) return fakeChannel(); if (typeof url == "function") url = dataURL.apply(null, url()); let uri = ioService.newURI(url, null, null); let channel = ioService.newChannelFromURI(uri); channel.contentCharset = "UTF-8"; channel.owner = systemPr...
makeClipping: function(element) { element = $(element); if (element._overflow) return element; element._overflow = Element.getStyle(element, 'overflow') || 'auto'; if (element._overflow !== 'hidden') element.style.overflow = 'hidden'; return element; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
makeClipping: function(element) { element = $(element); if (element._overflow) return element; element._overflow = Element.getStyle(element, 'overflow') || 'auto'; if (element._overflow !== 'hidden') element.style.overflow = 'hidden'; return element; },
function makeContext(modulePath, filePath, dontAddBase) {
function makeContext(modulePath, moduleDef, dontAddBase) {
function makeContext(modulePath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, modulePath); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return c...
cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0;
cwd = ENV.getCwd();
function makeContext(modulePath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, modulePath); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return c...
ctx.jsio = bind(this, importer, ctx, modulePath);
ctx.jsio = util.bind(this, importer, ctx, moduleDef.directory, moduleDef.filename);
function makeContext(modulePath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, modulePath); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return c...
ctx.jsio.__dir = isRelative ? makeRelativePath(filePath.substring(0, i), cwd) : ''; ctx.jsio.__filename = isRelative ? filePath.substring(i) : filePath;
ctx.jsio.__dir = moduleDef.directory; ctx.jsio.__filename = moduleDef.filename;
function makeContext(modulePath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, modulePath); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return c...
if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; }
ctx.require = ENV.require ? ENV.require : function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); };
function makeContext(modulePath, moduleDef, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(); ctx.jsio = util.bind(this, importer, ctx, moduleDef.directory, moduleDef.filename); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opt...
exports: {}, global: ENV.global };
exports: {}, global: ENV.global }, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0;
function makeContext(pkgPath, filePath) { var ctx = { exports: {}, global: ENV.global }; ctx.jsio = bind(this, importer, ctx, pkgPath); if(pkgPath != 'base') { ctx.jsio('from base import *'); ctx.logging.__create(pkgPath, ctx); } // TODO: FIX for "trailing ." case var cwd = ENV.getCwd(); var i = fi...
ctx.jsio = bind(this, importer, ctx, pkgPath); if(pkgPath != 'base') {
ctx.require = ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.module = {id: pkgPath}; if (pkgPath != 'base') {
function makeContext(pkgPath, filePath) { var ctx = { exports: {}, global: ENV.global }; ctx.jsio = bind(this, importer, ctx, pkgPath); if(pkgPath != 'base') { ctx.jsio('from base import *'); ctx.logging.__create(pkgPath, ctx); } // TODO: FIX for "trailing ." case var cwd = ENV.getCwd(); var i = fi...
var cwd = ENV.getCwd(); var i = filePath.lastIndexOf('/');
ctx.jsio.__jsio = jsio;
function makeContext(pkgPath, filePath) { var ctx = { exports: {}, global: ENV.global }; ctx.jsio = bind(this, importer, ctx, pkgPath); if(pkgPath != 'base') { ctx.jsio('from base import *'); ctx.logging.__create(pkgPath, ctx); } // TODO: FIX for "trailing ." case var cwd = ENV.getCwd(); var i = fi...
ctx.jsio.__dir = i > 0 ? makeRelativePath(filePath.substring(0, i), cwd) : ''; ctx.jsio.__filename = i > 0 ? filePath.substring(i) : filePath;
ctx.jsio.__dir = isRelative ? makeRelativePath(filePath.substring(0, i), cwd) : ''; ctx.jsio.__filename = isRelative ? filePath.substring(i) : filePath;
function makeContext(pkgPath, filePath) { var ctx = { exports: {}, global: ENV.global }; ctx.jsio = bind(this, importer, ctx, pkgPath); if(pkgPath != 'base') { ctx.jsio('from base import *'); ctx.logging.__create(pkgPath, ctx); } // TODO: FIX for "trailing ." case var cwd = ENV.getCwd(); var i = fi...
function makeContext(pkgPath, filePath, dontAddBase) {
function makeContext(modulePath, filePath, dontAddBase) {
function makeContext(pkgPath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; ctx...
ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); };
ctx.jsio = bind(this, importer, ctx, modulePath); if (!ENV.hasCommonJS) { ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; }
function makeContext(pkgPath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; ctx...
ctx.module = {id: pkgPath}; if (!dontAddBase && pkgPath != 'base') {
ctx.module = {id: modulePath}; if (!dontAddBase && modulePath != 'base') {
function makeContext(pkgPath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; ctx...
ctx.logging.__create(pkgPath, ctx);
ctx.logging.__create(modulePath, ctx);
function makeContext(pkgPath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; ctx...
ctx.jsio.__path = pkgPath;
ctx.jsio.__path = modulePath;
function makeContext(pkgPath, filePath, dontAddBase) { var ctx = {exports: {}}, cwd = ENV.getCwd(), i = filePath.lastIndexOf('/'), isRelative = i > 0; ctx.jsio = bind(this, importer, ctx, pkgPath); ctx.require = function(request, opts) { opts.dontExport = true; return ctx.jsio(request, opts); }; ctx...
r = RangeFind.Range(r, frames.length); if (r)
if (r = RangeFind.Range(r, frames.length))
makeFrameList: function (win) { const self = this; win = win.top; let frames = []; let backup = null; function pushRange(start, end) { function push(r) { r = RangeFind.Range(r, frames.length); if (r) frames.push(r); ...
let pageRange = doc.createRange(); pageRange.selectNode(doc.body || doc.documentElement.lastChild);
let pageRange = RangeFind.nodeRange(doc.body || doc.documentElement.lastChild);
makeFrameList: function (win) { const self = this; win = win.top; let frames = []; let backup = null; function pushRange(start, end) { function push(r) { r = RangeFind.Range(r, frames.length); if (r) frames.push(r); ...
range.selectNode(frame.frameElement); pushRange(pageStart, RangeFind.endpoint(range, true)); pageStart = RangeFind.endpoint(range, false); rec(frame);
if (util.computedStyle(frame.frameElement).visibility == "visible") { range.selectNode(frame.frameElement); pushRange(pageStart, RangeFind.endpoint(range, true)); pageStart = RangeFind.endpoint(range, false); rec(frame); }
makeFrameList: function (win) { const self = this; win = win.top; let frames = []; let backup = null; function pushRange(start, end) { function push(r) { r = RangeFind.Range(r, frames.length); if (r) frames.push(r); ...
link.href = href;
link.href = 'javascript:null'; var openUrl = function () { chrome.extension.sendRequest({kind: 'openUrl', url: href}); }; link.addEventListener('click', pagespeed.withErrorHandler(openUrl), false);
makeLink: function (href, label) { var link = pagespeed.makeElement('a', null, label); link.href = href; // TODO (mdsteele): Clicking on a link opens the page in the Page Speed // devtools pane, which is not at all what we want. We need to figure out // how to make the link open in a new Chrome tab. ...
log.apply(log, [type, this._name].concat(slice.call(arguments, 0)));
return log.apply(log, [type, this._name].concat(slice.call(arguments, 0)));
function makeLogFunction(level, type) { return function() { if (!production && level >= this._level) { log.apply(log, [type, this._name].concat(slice.call(arguments, 0))); } return arguments[0]; } }
if (level < this.level || production) return; log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0)));
if (!production && level >= this.level) { log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0))); } return arguments[0];
function makeLogFunction(level, type) { return function() { if (level < this.level || production) return; log.apply(log, [type, this.name].concat(Array.prototype.slice.call(arguments, 0))); } }
makeParams = function makeParams(args) array(Iterator(params.apply(this, arguments))).map(function ([k, v]) [k, process(v)]).toObject();
function makeParams(self, args) array.toObject([[name, process(args[i])] for ([i, name] in Iterator(params))]);
makeParams = function makeParams(args) array(Iterator(params.apply(this, arguments))).map(function ([k, v]) [k, process(v)]).toObject();
makePositioned: function(element) { element = $(element); var pos = Element.getStyle(element, 'position'); if (pos == 'static' || !pos) { element._madePositioned = true; element.style.position = 'relative'; if (Prototype.Browser.Opera) { element.style.top = 0; element.style.left = 0; } } return element; },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(...
makePositioned: function(element) { element = $(element); var pos = Element.getStyle(element, 'position'); if (pos == 'static' || !pos) { element._madePositioned = true; element.style.position = 'relative'; // Opera returns the offset relative to the positioning context, when an // elemen...
offset = path[len] == '/' ? 1 : 0
offset = path[len] == '/' ? 1 : 0;
makeRelativePath: function(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var len = relativeTo.length, offset = path[len] == '/' ? 1 : 0 return path.slice(len + offset); } var sA = util.removeEndSlash(path).split('/'), sB = util.removeEndSlas...
sB = util.removeEndSlash(relativeTo).split('/'), i = 0;
sB = util.removeEndSlash(relativeTo).split('/'); i = 0;
makeRelativePath: function(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var len = relativeTo.length, offset = path[len] == '/' ? 1 : 0 return path.slice(len + offset); } var sA = util.removeEndSlash(path).split('/'), sB = util.removeEndSlas...
function makeRelativePath(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var offset = path[relativeTo.length] == '/' ? 1 : 0 return path.slice(relativeTo.length + offset); } var sA = removeEndSlash(path).split('/'), sB = removeEndSlash(relativeTo).split('/'), i = 0; while(sA[...
makeRelativePath: function(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var len = relativeTo.length, offset = path[len] == '/' ? 1 : 0 return path.slice(len + offset); } var sA = util.removeEndSlash(path).split('/'), sB = util.removeEndSlash(relativeTo).split('/'), i = 0; w...
function makeRelativePath(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var offset = path[relativeTo.length] == '/' ? 1 : 0 return path.slice(relativeTo.length + offset); } var sA = removeEndSlash(path).split('/'), sB = removeEndSlash(relativeTo).split('/'), i =...
var sA = removeEndSlash(path).split('/'), sB = removeEndSlash(relativeTo).split('/'), i = 0; while(sA[i] == sB[i]) { ++i; } if (i) { path = sA.slice(i).join('/'); for (var j = sB.length - i; j > 0; --j) { path = '../' + path; } }
function makeRelativePath(path, relativeTo) { var i = path.match('^' + relativeTo); if (i && i[0] == relativeTo) { var offset = path[relativeTo.length] == '/' ? 1 : 0 return path.slice(relativeTo.length + offset); } return path; };
var option = $('<option/>').attr('label', type);
var option = $('<option/>').val(type).text(type);
function makeSelector(kind) { var li = $("<li/>").addClass(kind.name); var select = $("<select/>"); for(type in kind.types) { var option = $('<option/>').attr('label', type); select.append(option); select.change(function(event) { var value = $(this).val(); $(this).nex...
$("input[class = 'utrTemplate']").live('click',getUtrTemplate);
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
$("#saveUtrBtn").click(saveUtr); $("#loadUtrBtn").click(loadUtr); $("#manageUtr").click(function(){ getUtrModels(); });
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
width:400,
width:550,
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
"Apply Filter": function() {
"Apply filter": function() {
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
});
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
historyAction = new Array(); pathProperties = new Array();
function manageEvents(){ //alert ("manage"); $("#closePathBuilder").click(function (){ $("#divPathWizard").slideUp(speed); }); $("#getInitialInstances").click(getInitialInstances); $("#getRootClasses").click(getRootClassesOfInstances); //get class infos and create path $("input[class *='clas...
0;ea.apply(this,a);return this},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){retu...
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:f...
0;ea.apply(this,a);return this},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){retu...
function map(args, mapmodes, noremap) { mapmodes = getModes(args);
function map(args, noremap) { let mapmodes = array.uniq(args["-modes"].map(findMode));
function map(args, mapmodes, noremap) { mapmodes = getModes(args); if (!args.length) { mappings.list(mapmodes); return; } let [lhs, rhs] = args; if (noremap) args["-builtin"] =...
case 'SET[success]':
case 'SET_success':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ...
case 'SET[failure]':
case 'SET_failure':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ...
case 'SET[error]':
case 'SET_error':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ...
case 'SET[skipped]':
case 'SET_skipped':
var mapClasses = function (buttonId) { var className; switch (buttonId) { case 'SET[success]': className = 'testcaseSuccess'; break; case 'SET[failure]': className = 'testcaseFailure'; break; case 'SET[error]': className = 'testcaseError'; break; case 'SET[skipped]': className = 'testcaseSkipped'; ...