rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var create_volumes = $('#create_volumes').find('li');
var create_volumes = $(this).find('#create_volumes').find('li');
DcmgrGUI.prototype.snapshotPanel = function(){ var total = 0; var maxrow = 10; var page = 1; var list_request = { "url" : DcmgrGUI.Util.getPagePath('/snapshots/list/',page), "data" : DcmgrGUI.Util.getPagenateData(page,maxrow) }; DcmgrGUI.List.prototype.getEmptyData = function(){ return [{ "uuid":'', "size":'', "origin_volume_id":'', "created_at":'', "state":'' }] } DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "uuid" : "-", "size" : "-", "origin_volume_id" : "-", "created_at" : "-", "updated_at" : "-", "state" : "", } } var c_pagenate = new DcmgrGUI.Pagenate({ row:maxrow, total:total }); var c_list = new DcmgrGUI.List({ element_id:'#display_snapshots', template_id:'#snapshotsListTemplate', maxrow:maxrow, page:page }); c_list.setDetailTemplate({ template_id:'#snapshotsDetailTemplate', detail_path:'/snapshots/show/' }); c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var snapshot = params.data.volume_snapshot; c_pagenate.changeTotal(snapshot.owner_total); c_list.setData(snapshot.results); c_list.multiCheckList(c_list.detail_template); }); var bt_refresh = new DcmgrGUI.Refresh(); var bt_create_volume = new DcmgrGUI.Dialog({ target:'.create_volume', width:400, height:200, title:'Create Volume', path:'/create_volume_from_snapshot', button:{ "Create": function() { var create_volumes = $('#create_volumes').find('li'); var ids = [] $.each(create_volumes,function(){ ids.push($(this).text()) }) var data = $.param({ids:ids}) $.ajax({ "type": "POST", "async": true, "url": '/volumes/create', "dataType": "json", "data": data, success: function(json,status){ console.log(json); bt_refresh.element.trigger('dcmgrGUI.refresh'); } }); $(this).dialog("close"); } } }); var bt_delete_snapshot = new DcmgrGUI.Dialog({ target:'.delete_snapshot', width:400, height:200, title:'Delete snapshot', path:'/delete_snapshot', button:{ "Close": function() { $(this).dialog("close"); }, "Yes, Delete": function() { var delete_snapshots = $('#delete_snapshots').find('li'); var ids = [] $.each(delete_snapshots,function(){ ids.push($(this).text()) }) var data = $.param({ids:ids}) $.ajax({ "type": "DELETE", "async": true, "url": '/snapshots/delete', "dataType": "json", "data": data, success: function(json,status){ console.log(json); bt_refresh.element.trigger('dcmgrGUI.refresh'); } }); c_list.changeStatus('deleting'); $(this).dialog("close"); } } }); bt_create_volume.target.bind('click',function(){ bt_create_volume.open(c_list.getCheckedInstanceIds()); }); bt_delete_snapshot.target.bind('click',function(){ bt_delete_snapshot.open(c_list.getCheckedInstanceIds()); }); bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/snapshots/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/snapshots/show/',check_id) },true); }); }); c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); }); //list c_list.setData(null); c_list.update(list_request,true); }
var delete_snapshots = $('#delete_snapshots').find('li');
var delete_snapshots = $(this).find('#delete_snapshots').find('li');
DcmgrGUI.prototype.snapshotPanel = function(){ var total = 0; var maxrow = 10; var page = 1; var list_request = { "url" : DcmgrGUI.Util.getPagePath('/snapshots/list/',page), "data" : DcmgrGUI.Util.getPagenateData(page,maxrow) }; DcmgrGUI.List.prototype.getEmptyData = function(){ return [{ "uuid":'', "size":'', "origin_volume_id":'', "created_at":'', "state":'' }] } DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "uuid" : "-", "size" : "-", "origin_volume_id" : "-", "created_at" : "-", "updated_at" : "-", "state" : "", } } var c_pagenate = new DcmgrGUI.Pagenate({ row:maxrow, total:total }); var c_list = new DcmgrGUI.List({ element_id:'#display_snapshots', template_id:'#snapshotsListTemplate', maxrow:maxrow, page:page }); c_list.setDetailTemplate({ template_id:'#snapshotsDetailTemplate', detail_path:'/snapshots/show/' }); c_list.element.bind('dcmgrGUI.contentChange',function(event,params){ var snapshot = params.data.volume_snapshot; c_pagenate.changeTotal(snapshot.owner_total); c_list.setData(snapshot.results); c_list.multiCheckList(c_list.detail_template); }); var bt_refresh = new DcmgrGUI.Refresh(); var bt_create_volume = new DcmgrGUI.Dialog({ target:'.create_volume', width:400, height:200, title:'Create Volume', path:'/create_volume_from_snapshot', button:{ "Create": function() { var create_volumes = $('#create_volumes').find('li'); var ids = [] $.each(create_volumes,function(){ ids.push($(this).text()) }) var data = $.param({ids:ids}) $.ajax({ "type": "POST", "async": true, "url": '/volumes/create', "dataType": "json", "data": data, success: function(json,status){ console.log(json); bt_refresh.element.trigger('dcmgrGUI.refresh'); } }); $(this).dialog("close"); } } }); var bt_delete_snapshot = new DcmgrGUI.Dialog({ target:'.delete_snapshot', width:400, height:200, title:'Delete snapshot', path:'/delete_snapshot', button:{ "Close": function() { $(this).dialog("close"); }, "Yes, Delete": function() { var delete_snapshots = $('#delete_snapshots').find('li'); var ids = [] $.each(delete_snapshots,function(){ ids.push($(this).text()) }) var data = $.param({ids:ids}) $.ajax({ "type": "DELETE", "async": true, "url": '/snapshots/delete', "dataType": "json", "data": data, success: function(json,status){ console.log(json); bt_refresh.element.trigger('dcmgrGUI.refresh'); } }); c_list.changeStatus('deleting'); $(this).dialog("close"); } } }); bt_create_volume.target.bind('click',function(){ bt_create_volume.open(c_list.getCheckedInstanceIds()); }); bt_delete_snapshot.target.bind('click',function(){ bt_delete_snapshot.open(c_list.getCheckedInstanceIds()); }); bt_refresh.element.bind('dcmgrGUI.refresh',function(){ c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/snapshots/list/',c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page,c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList',{request:list_request}) //update detail $.each(c_list.checked_list,function(check_id,obj){ $($('#detail').find('#'+check_id)).remove(); c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/snapshots/show/',check_id) },true); }); }); c_pagenate.element.bind('dcmgrGUI.updatePagenate',function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); }); //list c_list.setData(null); c_list.update(list_request,true); }
if (aColorCode == PAGESPEED.Utils.SCORE_CODE_RED) { if (a.experimental != b.experimental) { return a.experimental ? 1 : -1; } }
var sortByScore = function(a, b) { var aColorCode = PAGESPEED.Utils.getColorCode(a); var bColorCode = PAGESPEED.Utils.getColorCode(b); if (aColorCode != bColorCode) { return aColorCode - bColorCode; } // Past this point, the color codes are the same. var aDetails = !!((a.warnings || '') + (a.information || '')); var bDetails = !!((b.warnings || '') + (b.information || '')); if (aDetails != bDetails) { return aDetails ? -1 : 1; } if (aColorCode == 4) { // Non-scoring (informational) color code. sort by score if both // scores are strings. var aIsString = (typeof a.score == 'string'); var bIsString = (typeof b.score == 'string'); if (aIsString && bIsString) { // If both are strings, then perform a lexical sort. if (a.score == b.score) { return sortByName(a, b); } return (a.score > b.score) ? 1 : -1; } return aIsString ? 1 : -1; } if (b.weight == a.weight) { return sortByName(a, b); } return b.weight - a.weight; };
each(a, function() { vals.push(context.call("string", xpath.core.newNodeSet([this])).value); });
each(nodes, function() { vals.push(context.call("string", xpath.core.newNodeSet([this])).value); });
function sortStringValues(context, nodes) { var vals = [] each(a, function() { vals.push(context.call("string", xpath.core.newNodeSet([this])).value); }); vals.sort(); return vals;}
commands.execute(file.read(), null, silent, null,
commands.execute(file.read(), null, silent || "loud", null,
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.get("io").newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</> } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) storage.styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent, null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
try { var file = io.File(filename);
this.withSavedValues(["sourcing"], function () { this.sourcing = null; try { var file = io.File(filename);
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
if (!file.exists() || !file.isReadable() || file.isDirectory()) {
if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e);
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
dactyl.echoerr("E484: Can't open file " + filename.quote()); return;
dactyl.echoerr(message);
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; }
finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); }
});
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.io.newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</>; } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
storage.styles.registerSheet(uri.spec, false, true);
styles.registerSheet(uri.spec, false, true);
source: function (filename, silent) { defineModule.loadLog.push("sourcing " + filename); let time = Date.now(); try { var file = io.File(filename); if (!file.exists() || !file.isReadable() || file.isDirectory()) { if (!silent) dactyl.echoerr("E484: Can't open file " + filename.quote()); return; } dactyl.echomsg("sourcing " + filename.quote(), 2); let uri = services.get("io").newFileURI(file); // handle pure JavaScript files specially if (/\.js$/.test(filename)) { try { dactyl.loadScript(uri.spec, Script(file)); dactyl.helpInitialized = false; } catch (e) { if (e.fileName) try { e.fileName = e.fileName.replace(/^(chrome|resource):.*? -> /, ""); if (e.fileName == uri.spec) e.fileName = filename; e.echoerr = <>{e.fileName}:{e.lineNumber}: {e}</> } catch (e) {} throw e; } } else if (/\.css$/.test(filename)) storage.styles.registerSheet(uri.spec, false, true); else { commands.execute(file.read(), null, silent || "loud", null, { file: file.path, line: 1 }); } if (this._scriptNames.indexOf(file.path) == -1) this._scriptNames.push(file.path); dactyl.echomsg("finished sourcing " + filename.quote(), 2); dactyl.log("Sourced: " + filename, 3); } catch (e) { if (!(e instanceof FailedAssertion)) dactyl.reportError(e); let message = "Sourcing file: " + (e.echoerr || file.path + ": " + e); if (!silent) dactyl.echoerr(message); } finally { defineModule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms"); } },
let dirs = File.getPathsFromPathList(options["runtimepath"]);
let dirs = options.get("runtimepath").values;
sourceFromRuntimePath: function (paths, all) { let dirs = File.getPathsFromPathList(options["runtimepath"]); let found = false; dactyl.echomsg("Searching for " + paths.join(" ").quote() + " in " + options["runtimepath"].quote(), 2); outer: for (let [, dir] in Iterator(dirs)) { for (let [, path] in Iterator(paths)) { let file = File.joinPaths(dir, path); dactyl.echomsg("Searching for " + file.path.quote(), 3); if (file.exists() && file.isFile() && file.isReadable()) { io.source(file.path, false); found = true; if (!all) break outer; } } } if (!found) dactyl.echomsg("not found in 'runtimepath': " + paths.join(" ").quote(), 1); return found; },
let file = File.joinPaths(dir, path);
let file = File.joinPaths(dir, path, this.cwd);
sourceFromRuntimePath: function (paths, all) { let dirs = File.getPathsFromPathList(options["runtimepath"]); let found = false; dactyl.echomsg("Searching for " + paths.join(" ").quote() + " in " + options["runtimepath"].quote(), 2); outer: for (let [, dir] in Iterator(dirs)) { for (let [, path] in Iterator(paths)) { let file = File.joinPaths(dir, path); dactyl.echomsg("Searching for " + file.path.quote(), 3); if (file.exists() && file.isFile() && file.isReadable()) { io.source(file.path, false); found = true; if (!all) break outer; } } } if (!found) dactyl.echomsg("not found in 'runtimepath': " + paths.join(" ").quote(), 1); return found; },
dactyl.echomsg("Searching for \"" + paths.join(" ") + "\" in \"" + options["runtimepath"] + "\"", 2);
dactyl.echomsg("Searching for " + paths.join(" ").quote() + " in " + options["runtimepath"].quote(), 2);
sourceFromRuntimePath: function (paths, all) { let dirs = File.getPathsFromPathList(options["runtimepath"]); let found = false; dactyl.echomsg("Searching for \"" + paths.join(" ") + "\" in \"" + options["runtimepath"] + "\"", 2); outer: for (let [, dir] in Iterator(dirs)) { for (let [, path] in Iterator(paths)) { let file = File.joinPaths(dir, path); dactyl.echomsg("Searching for \"" + file.path + "\"", 3); if (file.exists() && file.isFile() && file.isReadable()) { io.source(file.path, false); found = true; if (!all) break outer; } } } if (!found) dactyl.echomsg("not found in 'runtimepath': \"" + paths.join(" ") + "\"", 1); return found; },
dactyl.echomsg("Searching for \"" + file.path + "\"", 3);
dactyl.echomsg("Searching for " + file.path.quote(), 3);
sourceFromRuntimePath: function (paths, all) { let dirs = File.getPathsFromPathList(options["runtimepath"]); let found = false; dactyl.echomsg("Searching for \"" + paths.join(" ") + "\" in \"" + options["runtimepath"] + "\"", 2); outer: for (let [, dir] in Iterator(dirs)) { for (let [, path] in Iterator(paths)) { let file = File.joinPaths(dir, path); dactyl.echomsg("Searching for \"" + file.path + "\"", 3); if (file.exists() && file.isFile() && file.isReadable()) { io.source(file.path, false); found = true; if (!all) break outer; } } } if (!found) dactyl.echomsg("not found in 'runtimepath': \"" + paths.join(" ") + "\"", 1); return found; },
dactyl.echomsg("not found in 'runtimepath': \"" + paths.join(" ") + "\"", 1);
dactyl.echomsg("not found in 'runtimepath': " + paths.join(" ").quote(), 1);
sourceFromRuntimePath: function (paths, all) { let dirs = File.getPathsFromPathList(options["runtimepath"]); let found = false; dactyl.echomsg("Searching for \"" + paths.join(" ") + "\" in \"" + options["runtimepath"] + "\"", 2); outer: for (let [, dir] in Iterator(dirs)) { for (let [, path] in Iterator(paths)) { let file = File.joinPaths(dir, path); dactyl.echomsg("Searching for \"" + file.path + "\"", 3); if (file.exists() && file.isFile() && file.isReadable()) { io.source(file.path, false); found = true; if (!all) break outer; } } } if (!found) dactyl.echomsg("not found in 'runtimepath': \"" + paths.join(" ") + "\"", 1); return found; },
if (!(syllables[k].match("[\u1000-\u109F]")))
if (!(syllables[k].match("[α€€-α‚Ÿ]")))
MyanmarConverterExtension.spellCheckSyllables = function(syllables){ var convertedText = ""; var unknownSyllables = 0; var knownWordCount = 0; var wordBreaks = new Array(); for (var j = 0 ; j< syllables.length; j++) { var testWord = syllables[j]; var checkedWord = ""; var matchedSyllables = 0; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = 1; } // assume max of 8 'syllables' per word var k = j + 1; for (; k < j + 8 && k < syllables.length; k++) { if (!(syllables[k].match("[\u1000-\u109F]"))) break; testWord += syllables[k]; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = k - j + 1; } } if (matchedSyllables > 0) { convertedText += checkedWord; j += matchedSyllables - 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } knownWordCount += 1; } else { convertedText += syllables[j]; if (syllables[j].match("[\u1000-\u1049\u104C-\u109F]")) { unknownSyllables += 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } } } } var ret = new Object(); ret.text = convertedText; ret.knownWords = knownWordCount; ret.unknownSyllables = unknownSyllables; ret.wordBreaks = wordBreaks; this._trace(ret.text + " Known: " + ret.knownWords + " Unknown: " + ret.unknownSyllables + " " + wordBreaks); return ret;}
if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]")))
if ((j + 1 < syllables.length) && (syllables[j+1].match("[α€€-α‰αŒ-α‚Ÿ]")))
MyanmarConverterExtension.spellCheckSyllables = function(syllables){ var convertedText = ""; var unknownSyllables = 0; var knownWordCount = 0; var wordBreaks = new Array(); for (var j = 0 ; j< syllables.length; j++) { var testWord = syllables[j]; var checkedWord = ""; var matchedSyllables = 0; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = 1; } // assume max of 8 'syllables' per word var k = j + 1; for (; k < j + 8 && k < syllables.length; k++) { if (!(syllables[k].match("[\u1000-\u109F]"))) break; testWord += syllables[k]; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = k - j + 1; } } if (matchedSyllables > 0) { convertedText += checkedWord; j += matchedSyllables - 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } knownWordCount += 1; } else { convertedText += syllables[j]; if (syllables[j].match("[\u1000-\u1049\u104C-\u109F]")) { unknownSyllables += 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } } } } var ret = new Object(); ret.text = convertedText; ret.knownWords = knownWordCount; ret.unknownSyllables = unknownSyllables; ret.wordBreaks = wordBreaks; this._trace(ret.text + " Known: " + ret.knownWords + " Unknown: " + ret.unknownSyllables + " " + wordBreaks); return ret;}
if (syllables[j].match("[\u1000-\u1049\u104C-\u109F]"))
if (syllables[j].match("[α€€-α‰αŒ-α‚Ÿ]"))
MyanmarConverterExtension.spellCheckSyllables = function(syllables){ var convertedText = ""; var unknownSyllables = 0; var knownWordCount = 0; var wordBreaks = new Array(); for (var j = 0 ; j< syllables.length; j++) { var testWord = syllables[j]; var checkedWord = ""; var matchedSyllables = 0; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = 1; } // assume max of 8 'syllables' per word var k = j + 1; for (; k < j + 8 && k < syllables.length; k++) { if (!(syllables[k].match("[\u1000-\u109F]"))) break; testWord += syllables[k]; if (this.spellChecker.check(testWord)) { checkedWord = testWord; matchedSyllables = k - j + 1; } } if (matchedSyllables > 0) { convertedText += checkedWord; j += matchedSyllables - 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } knownWordCount += 1; } else { convertedText += syllables[j]; if (syllables[j].match("[\u1000-\u1049\u104C-\u109F]")) { unknownSyllables += 1; if ((j + 1 < syllables.length) && (syllables[j+1].match("[\u1000-\u1049\u104C-\u109F]"))) { wordBreaks.push(j); } } } } var ret = new Object(); ret.text = convertedText; ret.knownWords = knownWordCount; ret.unknownSyllables = unknownSyllables; ret.wordBreaks = wordBreaks; this._trace(ret.text + " Known: " + ret.knownWords + " Unknown: " + ret.unknownSyllables + " " + wordBreaks); return ret;}
split: function(expression) { var expressions = []; expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) { expressions.push(m[1].strip()); }); return expressions; },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
split: function(expression) { var expressions = []; expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(m) { expressions.push(m[1].strip()); }); return expressions; },
if (count !== undefined) Option._splitAt += count + 1;
splitList: function (value, keepQuotes) { let res = []; Option._splitAt = 0; do { if (count !== undefined) Option._splitAt += count + 1; var [count, arg, quote] = Commands.parseArg(value, /,/, keepQuotes); Option._quote = quote; // FIXME res.push(arg); value = value.slice(count + 1); } while (value.length); return res; },
if (value.length > count) Option._splitAt += count + 1;
splitList: function (value, keepQuotes) { let res = []; Option._splitAt = 0; do { if (count !== undefined) Option._splitAt += count + 1; var [count, arg, quote] = Commands.parseArg(value, /,/, keepQuotes); Option._quote = quote; // FIXME res.push(arg); value = value.slice(count + 1); } while (value.length); return res; },
value = value.slice(count + 1);
value = value.slice(count);
splitList: function (value, keepQuotes) { let res = []; Option._splitAt = 0; do { var [count, arg, quote] = Commands.parseArg(value, /,/, keepQuotes); Option._quote = quote; // FIXME res.push(arg); if (value.length > count) Option._splitAt += count + 1; value = value.slice(count + 1); } while (value.length); return res; },
return doctest.spies[name];
self = doctest.spies[name]; if (! options && ! extraOptions) { return self; } } else { var self = function () { return self.func.apply(this, arguments); };
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self._name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self._name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self._name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self._name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self._name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
var self = function () { return self.func.apply(this, arguments); };
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self._name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self._name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self._name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self._name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self._name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
self.throwError = self.throwError || null;
self.throwError = options.throwError || null; self.ignoreThis = options.ignoreThis || false;
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self._name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self._name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self._name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self._name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self._name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
if (self.self !== window && self.self !== self) {
if ((! self.ignoreThis) && self.self !== window && self.self !== self) {
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self._name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self._name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self._name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self._name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self._name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
doctest.spies[name] = this;
doctest.spies[name] = self;
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = this; if (options.wait) { self.wait(); } return self;};
self.name = name;
self._name = name;
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
return "Spy('" + self.name + "').func";
return "Spy('" + self._name + "').func";
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
s += self.name;
s += self._name;
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
var desc = self.name + '.' + name;
var desc = self._name + '.' + name;
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
return "Spy('" + self.name + "')";
return "Spy('" + self._name + "')";
doctest.Spy = function (name, options, extraOptions) { if (doctest.spies[name]) { return doctest.spies[name]; } var self = function () { return self.func.apply(this, arguments); }; name = name || 'spy'; options = options || {}; if (typeof options == 'function') { options = {applies: options}; } if (extraOptions) { doctest.extendDefault(options, extraOptions); } doctest.extendDefault(options, doctest.defaultSpyOptions); self.name = name; self.options = options; self.called = false; self.calledWait = false; self.args = null; self.self = null; self.argList = []; self.selfList = []; self.writes = options.writes || false; self.returns = options.returns || null; self.applies = options.applies || null; self.binds = options.binds || null; self.throwError = self.throwError || null; self.func = function () { self.called = true; self.calledWait = true; self.args = doctest._argsToArray(arguments); self.self = this; self.argList.push(self.args); self.selfList.push(this); // It might be possible to get the caller? if (self.writes) { writeln(self.formatCall()); } if (self.throwError) { throw self.throwError; } if (self.applies) { return self.applies.apply(this, arguments); } return self.returns; }; self.func.toString = function () { return "Spy('" + self.name + "').func"; }; // Method definitions: self.formatCall = function () { var s = ''; if (self.self !== window && self.self !== self) { s += doctest.repr(self.self) + '.'; } s += self.name; if (self.args === null) { return s + ':never called'; } s += '('; for (var i=0; i<self.args.length; i++) { if (i) { s += ', '; } s += doctest.repr(self.args[i], true); } s += ')'; return s; }; self.method = function (name, options, extraOptions) { var desc = self.name + '.' + name; var newSpy = Spy(desc, options, extraOptions); self[name] = self.func[name] = newSpy.func; return newSpy; }; self.methods = function (props) { for (var i in props) { if (props[i] === props.prototype[i]) { continue; } self.method(i, props[i]); } return self; }; self.wait = function (timeout) { var func = function () { var value = self.calledWait; if (value) { self.calledWait = false; } return value; }; func.repr = function () { return 'called:'+repr(self); }; doctest.wait(func, timeout); }; self.repr = function () { return "Spy('" + self.name + "')"; }; if (options.methods) { self.methods(options.methods); } doctest.spies[name] = self; if (options.wait) { self.wait(); } return self;};
list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page, c_list.maxrow)
list_request.data = DcmgrGUI.Util.getPagenateData(c_pagenate.start,c_pagenate.row);
DcmgrGUI.prototype.sshKeyPairPanel = function(){ var total = 0; var maxrow = 10; var page = 1; var list_request = { "url" : DcmgrGUI.Util.getPagePath('/keypairs/list/',page), "data" : DcmgrGUI.Util.getPagenateData(page,maxrow) }; DcmgrGUI.List.prototype.getEmptyData = function(){ return [{ "name":'' }] } DcmgrGUI.Detail.prototype.getEmptyData = function(){ return { "name" : "-", "create_at" : "-", "update_at":'' } } var c_pagenate = new DcmgrGUI.Pagenate({ row:maxrow, total:total }); var c_list = new DcmgrGUI.List({ element_id:'#display_ssh_keypairs', template_id:'#sshKeyPairsListTemplate', maxrow:maxrow, page:page }); c_list.setDetailTemplate({ template_id:'#sshKeypairsDetailTemplate', detail_path:'/keypairs/show/' }); c_list.element.bind('dcmgrGUI.contentChange', function(event,params){ var ssh_key_pair = params.data.ssh_key_pair; c_pagenate.changeTotal(ssh_key_pair.owner_total); c_list.setData(ssh_key_pair.results); c_list.singleCheckList(c_list.detail_template); }); var bt_refresh = new DcmgrGUI.Refresh(); bt_refresh.element.bind('dcmgrGUI.refresh', function(){ //Update list element c_list.page = c_pagenate.current_page; list_request.url = DcmgrGUI.Util.getPagePath('/keypairs/list/', c_list.page); list_request.data = DcmgrGUI.Util.getPagenateData(c_list.page, c_list.maxrow) c_list.element.trigger('dcmgrGUI.updateList', {request:list_request}) $.each(c_list.checked_list, function(check_id,obj){ //All remove detail element $($('#detail').find('#'+check_id)).remove(); //All reload detail element c_list.checked_list[check_id].c_detail.update({ url:DcmgrGUI.Util.getPagePath('/keypairs/show/', check_id) },true); }); }); c_pagenate.element.bind('dcmgrGUI.updatePagenate', function(){ c_list.clearCheckedList(); $('#detail').html(''); bt_refresh.element.trigger('dcmgrGUI.refresh'); }); var bt_create_ssh_keypair = new DcmgrGUI.Dialog({ target:'.create_ssh_keypair', width:400, height:200, title:'Create SSH Key Pair', path:'/create_ssh_keypair', callback: function(){ var html = '<iframe src="javascript:false" name="hiddenIframe" style="display:none"></iframe>'; $(this).find('#create_ssh_keypair_dialog').append(html); }, button:{ "Create": function() { var name = $(this).find('#ssh_keypair_name').val(); var download_once = $(this).find('#ssh_keypair_download_once').attr('checked'); if(!name){ $('#ssh_keypair_name').focus(); return false; } if(!name.match(/[a-z0-9_]+/)){ $('#ssh_keypair_name').focus(); return false; } var iframe = $(this).find('iframe:first').contents(); var html = '<form id="prk_download" action="/keypairs/create_ssh_keypair" method="get">' +'<input type="hidden" name="name" value="'+name+ '">' +'<input type="hidden" name="download_once" value="'+download_once+ '">' +'</form>' iframe.find('body').append(html); iframe.find("#prk_download").submit(); bt_refresh.element.trigger('dcmgrGUI.refresh'); $(this).dialog("close"); } } }); bt_create_ssh_keypair.target.bind('click', function(){ bt_create_ssh_keypair.open(); }); var bt_delete_ssh_keypair = new DcmgrGUI.Dialog({ target: '.delete_ssh_keypair', width: 400, height: 200, title: 'Delete SSH Keypair', path: '/delete_ssh_keypair', button:{ "Yes, Delete": function() { var ssh_keypair_id = $(this).find('#ssh_keypair_id').val(); $.ajax({ "type": "DELETE", "async": true, "url": '/keypairs/'+ ssh_keypair_id +'.json', "dataType": "json", success: function(json, status){ bt_refresh.element.trigger('dcmgrGUI.refresh'); } }); $(this).dialog("close"); } } }); bt_delete_ssh_keypair.target.bind('click', function() { var id = c_list.currentChecked(); if( id ){ bt_delete_ssh_keypair.open({"ids":[id]}); } return false; }); c_list.setData(null); c_list.update(list_request,true);}
console.log("START");
start: function(ev) { console.log("START"); this.status = status; removeElementClass(table, 'normal'); addElementClass(table, status); },
observerService,
httpActivityDistributor,
activity.TimelineManager.prototype.start = function( activityProfiler, observerService, startTimeUsec, xulElementFactory, xulRowsElement, paintPaneElement, paintPaneSplitter, enableScreenSnapshots) { this.reset(); this.timerDelayMsec_ = activity.preference.getInt( activity.TimelineManager.PREF_REFRESH_DELAY_MSEC_, activity.TimelineManager.DEFAULT_REFRESH_DELAY_MSEC_); var resolutionMsec = activity.preference.getInt( activity.TimelineManager.PREF_RESOLUTION_MSEC_, activity.TimelineManager.DEFAULT_RESOLUTION_MSEC_); if (resolutionMsec < 2) { // limit to 2ms resolution minimum resolutionMsec = 2; } this.timelineView_ = new activity.TimelineView( xulRowsElement, xulElementFactory, resolutionMsec * 1000); if (enableScreenSnapshots) { var canvasWidth = activity.preference.getInt( activity.TimelineManager.PREF_CANVAS_WIDTH_PX_, activity.TimelineManager.DEFAULT_CANVAS_WIDTH_PX_); this.paintView_ = new activity.PaintView( paintPaneElement, paintPaneSplitter, xulElementFactory, gBrowser, canvasWidth); } this.model_ = new activity.TimelineModel(); this.model_.addListener(this.timelineView_); this.fetcher_ = new activity.JsEventFetcher( this.model_, this.timelineView_.getResolutionUsec(), activityProfiler, this.callbackWrapper_); this.networkObserver_ = new activity.NetworkObserver( activityProfiler, observerService, this.model_, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.paintObserver_ = new activity.PaintObserver( activityProfiler, xulElementFactory, this.model_, this.paintView_, gBrowser, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.requestObserver_ = new activity.RequestObserver( this.timeoutFactory_, activityProfiler, observerService, this.model_, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.fetcher_.start(); this.networkObserver_.register(); this.paintObserver_.register(); this.requestObserver_.register(); this.timeoutId_ = this.timeoutFactory_.setTimeout( this.boundOnTimeoutCallback_, this.timerDelayMsec_); this.state_ = activity.TimelineManager.State.STARTED;};
aggregateBrowserJS,
activity.TimelineManager.prototype.start = function( activityProfiler, observerService, httpActivityDistributor, startTimeUsec, xulElementFactory, xulRowsElement, paintPaneElement, paintPaneSplitter, enableScreenSnapshots) { this.reset(); this.timerDelayMsec_ = activity.preference.getInt( activity.TimelineManager.PREF_REFRESH_DELAY_MSEC_, activity.TimelineManager.DEFAULT_REFRESH_DELAY_MSEC_); var resolutionMsec = activity.preference.getInt( activity.TimelineManager.PREF_RESOLUTION_MSEC_, activity.TimelineManager.DEFAULT_RESOLUTION_MSEC_); if (resolutionMsec < 2) { // limit to 2ms resolution minimum resolutionMsec = 2; } this.timelineView_ = new activity.TimelineView( xulRowsElement, xulElementFactory, resolutionMsec * 1000); if (enableScreenSnapshots) { var canvasWidth = activity.preference.getInt( activity.TimelineManager.PREF_CANVAS_WIDTH_PX_, activity.TimelineManager.DEFAULT_CANVAS_WIDTH_PX_); this.paintView_ = new activity.PaintView( paintPaneElement, paintPaneSplitter, xulElementFactory, gBrowser, canvasWidth); } this.model_ = new activity.TimelineModel(); this.model_.addListener(this.timelineView_); this.fetcher_ = new activity.JsEventFetcher( this.model_, this.timelineView_.getResolutionUsec(), activityProfiler, this.callbackWrapper_); this.networkObserver_ = new activity.NetworkObserver( activityProfiler, httpActivityDistributor, this.model_, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.paintObserver_ = new activity.PaintObserver( activityProfiler, xulElementFactory, this.model_, this.paintView_, gBrowser, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.requestObserver_ = new activity.RequestObserver( this.timeoutFactory_, activityProfiler, observerService, this.model_, startTimeUsec, this.timelineView_.getResolutionUsec(), this.callbackWrapper_); this.fetcher_.start(); this.networkObserver_.register(); this.paintObserver_.register(); this.requestObserver_.register(); this.timeoutId_ = this.timeoutFactory_.setTimeout( this.boundOnTimeoutCallback_, this.timerDelayMsec_); this.state_ = activity.TimelineManager.State.STARTED;};
this.throwIfDisposed_();
activity.JsEventFetcher.prototype.start = function() { this.throwIfDisposed_(); this.startTimeUsec_ = 0; this.isRunning_ = true; this.isFinished_ = false; this.isCallbackPending_ = false;};
start: function() { this.options.onComplete = this.updateComplete.bind(this); this.onTimerEvent(); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
start: function() { this.options.onComplete = this.updateComplete.bind(this); this.onTimerEvent(); },
this.throwIfDisposed();
activity.TimelineModel.prototype.startAddingEvents = function() { this.throwIfDisposed(); this.addingEventDepth_++; if (this.addingEventDepth_ == 1) { this.pendingEndTimeUsec_ = 0; }};
httpActivityDistributor,
activity.ui.startProfiler_ = function() { activity.ui.reset(); if (!activity.ui.timelineWindow_) return; activity.ui.isProfiling_ = true; activity.ui.collectFullCallTrees_ = activity.preference.getBool( activity.ui.PREF_COLLECT_COMPLETE_CALL_GRAPHS_, false); activity.ui.enableJsProfiling_ = activity.preference.getBool( activity.ui.PREF_ENABLE_JS_PROFILING_, true); activity.ui.enableScreenSnapshots_ = activity.preference.getBool( activity.ui.PREF_ENABLE_SCREEN_SNAPSHOTS_, false); activity.ui.appStateObserver_.register(); activity.ui.activityProfiler_ = activity.xpcom.CCIN( activity.ui.ACTIVITY_PROFILER_CONTRACT_ID_, activity.ui.ACTIVITY_PROFILER_INTERFACE_NAME_); activity.ui.startTimeUsec_ = activity.ui.activityProfiler_.getCurrentTimeUsec(); if (activity.ui.enableJsProfiling_) { activity.ui.firebugProtector_ = new activity.FirebugProtector( activity.ui.getFirebugServiceOrNull_(), activity.ui.firebugFunctionPatch_); activity.ui.firebugProtector_.start(); activity.ui.profiler_.start(); activity.ui.activityProfiler_.register( activity.ui.startTimeUsec_, activity.ui.collectFullCallTrees_); } var observerService = activity.xpcom.CCSV( activity.ui.OBSERVER_SERVICE_CONTRACTID_, activity.ui.OBSERVER_SERVICE_INTERFACE_NAME_); var xulRowsElement = activity.ui.instantiateUi_(); var paintPaneElement = activity.ui.getElementById_('canvasPane'); var paintPaneSplitter = activity.ui.getElementById_('canvasSplitter'); activity.ui.timelineManager_.start( activity.ui.activityProfiler_, observerService, activity.ui.startTimeUsec_, activity.ui.timelineWindow_.document, xulRowsElement, paintPaneElement, paintPaneSplitter, activity.ui.enableScreenSnapshots_);};
startsWith: function(pattern) { return this.indexOf(pattern) === 0; },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
startsWith: function(pattern) { return this.indexOf(pattern) === 0; },
Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path);
Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec + "!/" + path, null, null);
function startup(data, reason) { dump("dactyl: bootstrap: startup " + reasonToString(reason) + "\n"); basePath = data.installPath; if (!initialized) { initialized = true; dump("dactyl: bootstrap: init" + " " + data.id + "\n"); addon = data; AddonManager.getAddonByID(addon.id, function (a) { addon = a }); if (basePath.isDirectory()) getURI = function getURI(path) { let file = basePath.clone().QueryInterface(Ci.nsILocalFile); file.appendRelativePath(path); return (Services.io || services.io).newFileURI(file); } else getURI = function getURI(path) Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path); try { init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n" + e.stack); Cu.reportError(e); } }}
AddonManager.getAddonByID(addon.id, function (a) { addon = a });
AddonManager.getAddonByID(addon.id, function (a) { addon = a; });
function startup(data, reason) { dump("dactyl: bootstrap: startup " + reasonToString(reason) + "\n"); basePath = data.installPath; if (!initialized) { initialized = true; dump("dactyl: bootstrap: init" + " " + data.id + "\n"); addon = data; AddonManager.getAddonByID(addon.id, function (a) { addon = a }); if (basePath.isDirectory()) getURI = function getURI(path) { let file = basePath.clone().QueryInterface(Ci.nsILocalFile); file.appendRelativePath(path); return (Services.io || services.io).newFileURI(file); } else getURI = function getURI(path) Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec + "!/" + path, null, null); try { init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n" + e.stack); Cu.reportError(e); } }}
}
};
function startup(data, reason) { dump("dactyl: bootstrap: startup " + reasonToString(reason) + "\n"); basePath = data.installPath; if (!initialized) { initialized = true; dump("dactyl: bootstrap: init" + " " + data.id + "\n"); addon = data; AddonManager.getAddonByID(addon.id, function (a) { addon = a }); if (basePath.isDirectory()) getURI = function getURI(path) { let file = basePath.clone().QueryInterface(Ci.nsILocalFile); file.appendRelativePath(path); return (Services.io || services.io).newFileURI(file); } else getURI = function getURI(path) Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec + "!/" + path, null, null); try { init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n" + e.stack); Cu.reportError(e); } }}
AddonManager.getAddonByID(data.id, function (res) { try { addon = res; init();
addon = data; if (basePath.isDirectory()) getURI = function getURI(path) { let file = basePath.clone().QueryInterface(Ci.nsILocalFile); file.appendRelativePath(path); return (Services.io || services.io).newFileURI(file);
function startup(data, reason) { dump("dactyl: bootstrap: startup\n"); basePath = data.installPath; if (!initialized) { initialized = true; dump("dactyl: bootstrap: init" + " " + data.id + "\n"); AddonManager.getAddonByID(data.id, function (res) { try { addon = res; init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n"); Cu.reportError(e); } }); }}
catch (e) { dump("dactyl: bootstrap: " + e + "\n"); Cu.reportError(e); } });
else getURI = function getURI(path) Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path); try { init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n" + e.stack); Cu.reportError(e); }
function startup(data, reason) { dump("dactyl: bootstrap: startup\n"); basePath = data.installPath; if (!initialized) { initialized = true; dump("dactyl: bootstrap: init" + " " + data.id + "\n"); AddonManager.getAddonByID(data.id, function (res) { try { addon = res; init(); } catch (e) { dump("dactyl: bootstrap: " + e + "\n"); Cu.reportError(e); } }); }}
metaData.css = 'planned';
TYPO3.Backend.Seminars.Events.StatusRenderer = function(value, metaData, record, rowIndex, colIndex, store) { switch (value) { case 1: metaData.css = 'cancel'; value = TYPO3.lang['eventlist_status_canceled']; break; case 2: metaData.css = 'confirm'; value = TYPO3.lang['eventlist_status_confirmed']; break; default: // fall-through is intended case 0: // @todo invent a locallang label for the status "planned" value = 'planned'; break; } return value;}
statusline.updateProgress("");
statusline.progess = "";
this._statusTimer = Timer(5, 100, function statusTell() { if (self._completions == null) return; if (self._completions.selected == null) statusline.updateProgress(""); else statusline.updateProgress("match " + (self._completions.selected + 1) + " of " + self._completions.items.length); });
statusline.updateProgress("match " + (self._completions.selected + 1) + " of " + self._completions.items.length);
statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length;
this._statusTimer = Timer(5, 100, function statusTell() { if (self._completions == null) return; if (self._completions.selected == null) statusline.updateProgress(""); else statusline.updateProgress("match " + (self._completions.selected + 1) + " of " + self._completions.items.length); });
statusline.progess = "";
statusline.progress = "";
this._statusTimer = Timer(5, 100, function statusTell() { if (self._completions == null || self._completions.selected == null) statusline.progess = ""; else statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length; });
if (self._completions == null) return; if (self._completions.selected == null)
if (self._completions == null || self._completions.selected == null)
this._statusTimer = Timer(5, 100, function statusTell() { if (self._completions == null) return; if (self._completions.selected == null) statusline.progess = ""; else statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length; });
"width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=K(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow= this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos= c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
"width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=K(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
this.throwIfDisposed_();
activity.JsEventFetcher.prototype.stop = function() { this.throwIfDisposed_(); this.isRunning_ = false;};
c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Z);Z=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
stop: function() { if (!this.timer) return; clearInterval(this.timer); this.timer = null; },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
stop: function() { if (!this.timer) return; clearInterval(this.timer); this.timer = null; },
var cancel = function stop(ev){
function stop(ev){
var cancel = function stop(ev){ ev.preventDefault(); ev.stopPropagation();}
function stop(ev){
var cancel = function stop(ev){
function stop(ev){ ev.preventDefault(); ev.stopPropagation();}
ba;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ba;this.stopPropagation()},isDefaultPrevented:aa,isPropagationStopped:aa,isImmediatePropagationStopped:aa};var Ba=function(a){for(var b=a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ca=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
ba;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ba;this.stopPropagation()},isDefaultPrevented:aa,isPropagationStopped:aa,isImmediatePropagationStopped:aa};var Ba=function(a){for(var b=a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ca=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",
b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=K();this[H]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ba;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped= ba;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ba;this.stopPropagation()},isDefaultPrevented:aa,isPropagationStopped:aa,isImmediatePropagationStopped:aa};var Ba=function(a){for(var b=a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ca=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=K();this[H]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ba;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=ba;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ba;this.stopPropagation()},isDefaultPrevented:aa,isPropagationStopped:aa,isImmediatePropagationStopped:aa};var Ba=function(a){for(var b=a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ca=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",
stopPropagation: function() { this.cancelBubble = true },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
stopPropagation: function() { this.cancelBubble = true },
debug('streamtest');
logger.debug('streamtest');
streamtest: function (request, response) { debug('streamtest'); // XXX who knows what this does...? },
strip: function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
strip: function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); },
stripScripts: function() { return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
stripScripts: function() { return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); },
stripTags: function() { return this.replace(/<\/?[^>]+>/gi, ''); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
stripTags: function() { return this.replace(/<\/?[^>]+>/gi, ''); },
s.defaultView.getComputedStyle,Ka=c.support.cssFloat?"cssFloat":"styleFloat",la=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return $(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!ib.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""=== "NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Ia.test(a)?a.replace(Ia,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Ja.exec(f.filter)[1])/100+"":""}if(ja.test(b))b=Ka;b=b.replace(ka,la);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,i=b==="width"?nb:ob;function j(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(i,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
s.defaultView.getComputedStyle,Ka=c.support.cssFloat?"cssFloat":"styleFloat",la=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return $(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!ib.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Ia.test(a)?a.replace(Ia,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Ja.exec(f.filter)[1])/100+"":""}if(ja.test(b))b=Ka;b=b.replace(ka,la);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,i=b==="width"?nb:ob;function j(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(i,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=
el = $.id(el); for(prop in style) { switch(prop) { case 'float': el.style.styleFloat = el.style.cssFloat = style[prop]; break; case 'opacity': el.style.opacity = style[prop]; if(el.filters) { try { var alpha = ieGetAlpha(); var opacity = style[prop] == 1 ? 99.99 : style[prop] * 100; if(!alpha) { el.style.filter = "alpha(opacity=" + opacity + ")"; } else { alpha.Opacity = opacity; } } catch(e) {} } break; default: el.style[prop] = style[prop]; break;
el = $.id(el); for(prop in style) { switch(prop) { case 'float': el.style.styleFloat = el.style.cssFloat = style[prop]; break; case 'opacity': el.style.opacity = style[prop]; if(el.filters) { try { var alpha = ieGetAlpha(); var opacity = style[prop] == 1 ? 99.99 : style[prop] * 100; if(!alpha) { el.style.filter = "alpha(opacity=" + opacity + ")"; } else { alpha.Opacity = opacity; } } catch(e) {} } break; default: el.style[prop] = style[prop]; break; }
$.style = function(el, style) { if(el instanceof Array) { for(var i = 0, o; o = el[i]; ++i) { $.style(o, style); } return; } el = $.id(el); for(prop in style) { switch(prop) { case 'float': el.style.styleFloat = el.style.cssFloat = style[prop]; break; case 'opacity': el.style.opacity = style[prop]; if(el.filters) { try { var alpha = ieGetAlpha(); var opacity = style[prop] == 1 ? 99.99 : style[prop] * 100; if(!alpha) { // TODO: this might destroy any existing filters? el.style.filter = "alpha(opacity=" + opacity + ")"; } else { alpha.Opacity = opacity; } } catch(e) {} } break; default: el.style[prop] = style[prop]; break; } }};
} };
};
$.style = function(el, style) { if(el instanceof Array) { for(var i = 0, o; o = el[i]; ++i) { $.style(o, style); } return; } el = $.id(el); for(prop in style) { switch(prop) { case 'float': el.style.styleFloat = el.style.cssFloat = style[prop]; break; case 'opacity': el.style.opacity = style[prop]; if(el.filters) { try { var alpha = ieGetAlpha(); var opacity = style[prop] == 1 ? 99.99 : style[prop] * 100; if(!alpha) { // TODO: this might destroy any existing filters? el.style.filter = "alpha(opacity=" + opacity + ")"; } else { alpha.Opacity = opacity; } } catch(e) {} } break; default: el.style[prop] = style[prop]; break; } }};
while(match = regex.exec(attr)) styles[match[1].camelize()] = match[2];
styles: function(styles, cloneOnModify) { var attr, regex, match; if (styles === undefined) { // no styles are defined yet but we do have a source element. Lazily // extract styles from element. if (!this._styles && this._elem) { // parse style... attr = SC.$(this._elem).attr('style'); if (attr && (attr = attr.toString()).length>0) { if(SC.browser.msie){ attr = attr.toLowerCase(); } styles = {}; regex = this._STYLE_REGEX ; regex.lastIndex = 0; while(match = regex.exec(attr)) styles[match[1].camelize()] = match[2]; while(match = regex.exec(attr)) styles[this._camelizeStyleName(match[1])] = match[2]; while(match = regex.exec(attr)) styles[match[1].dasherize()] = match[2]; this._styles = styles; this._cloneStyles = NO; } else { this._styles = {}; } // if there is no element or we do have styles, possibly clone them // before returning. } else { if (!this._styles) { this._styles = {}; } else { if (this._cloneStyles) { this._styles = SC.beget(this._styles); this._cloneStyles = NO ; } } } return this._styles ; // set the styles if passed. } else { this._styles = styles ; this._cloneStyles = cloneOnModify || NO ; this._stylesDidChange = YES ; return this ; } },
while(match = regex.exec(attr)) styles[match[1].dasherize()] = match[2];
styles: function(styles, cloneOnModify) { var attr, regex, match; if (styles === undefined) { // no styles are defined yet but we do have a source element. Lazily // extract styles from element. if (!this._styles && this._elem) { // parse style... attr = SC.$(this._elem).attr('style'); if (attr && (attr = attr.toString()).length>0) { if(SC.browser.msie){ attr = attr.toLowerCase(); } styles = {}; regex = this._STYLE_REGEX ; regex.lastIndex = 0; while(match = regex.exec(attr)) styles[match[1].camelize()] = match[2]; while(match = regex.exec(attr)) styles[this._camelizeStyleName(match[1])] = match[2]; while(match = regex.exec(attr)) styles[match[1].dasherize()] = match[2]; this._styles = styles; this._cloneStyles = NO; } else { this._styles = {}; } // if there is no element or we do have styles, possibly clone them // before returning. } else { if (!this._styles) { this._styles = {}; } else { if (this._cloneStyles) { this._styles = SC.beget(this._styles); this._cloneStyles = NO ; } } } return this._styles ; // set the styles if passed. } else { this._styles = styles ; this._cloneStyles = cloneOnModify || NO ; this._stylesDidChange = YES ; return this ; } },
while(match = regex.exec(attr)) styles[match[1].dasherize()] = match[2];
styles: function(styles, cloneOnModify) { var attr, regex, match; if (styles === undefined) { // no styles are defined yet but we do have a source element. Lazily // extract styles from element. if (!this._styles && this._elem) { // parse style... attr = SC.$(this._elem).attr('style'); if (attr && (attr = attr.toString()).length>0) { if(SC.browser.msie){ attr = attr.toLowerCase(); } styles = {}; regex = this._STYLE_REGEX ; regex.lastIndex = 0; while(match = regex.exec(attr)) styles[this._camelizeStyleName(match[1])] = match[2]; this._styles = styles; this._cloneStyles = NO; } else { this._styles = {}; } // if there is no element or we do have styles, possibly clone them // before returning. } else { if (!this._styles) { this._styles = {}; } else { if (this._cloneStyles) { this._styles = SC.beget(this._styles); this._cloneStyles = NO ; } } } return this._styles ; // set the styles if passed. } else { this._styles = styles ; this._cloneStyles = cloneOnModify || NO ; this._stylesDidChange = YES ; return this ; } },
sub: function(pattern, replacement, count) { replacement = this.gsub.prepareReplacement(replacement); count = Object.isUndefined(count) ? 1 : count; return this.gsub(pattern, function(match) { if (--count < 0) return match[0]; return replacement(match); }); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
sub: function(pattern, replacement, count) { replacement = this.gsub.prepareReplacement(replacement); count = Object.isUndefined(count) ? 1 : count; return this.gsub(pattern, function(match) { if (--count < 0) return match[0]; return replacement(match); }); },
succ: function() { return this + 1; },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
succ: function() { return this + 1; },
success: function(json,status){ console.log(json)
success: function(json,status,xhr){
success: function(json,status){ console.log(json) self.element.trigger('dcmgrGUI.contentChange',[{"data":json,"self":self}]); self.element.trigger('dcmgrGUI.afterUpdate',[{"data":json,"self":self}]); }
}
$("#list_load_mask").unmask(); },
success: function(json,status){ console.log(json) self.element.trigger('dcmgrGUI.contentChange',[{"data":json,"self":self}]); self.element.trigger('dcmgrGUI.afterUpdate',[{"data":json,"self":self}]); }
console.log(json)
success: function(json,status){ self.element.trigger('dcmgrGUI.contentChange',[{"data":json,"self":self}]); self.element.trigger('dcmgrGUI.afterUpdate',[{"data":json,"self":self}]); }
"id" : results[i].result.uuid,
"value" : results[i].result.uuid,
success: function(json,status){ var results = json.netfilter_group.results; var size = results.length for (var i=0; i < size ; i++) { data.push({ "id" : results[i].result.uuid, "name" : results[i].result.name }); } }
var security_group = new DcmgrGUI.ItemSelector({ 'left_select_id' : '#left_select_list', 'right_select_id' : "#right_select_list", "data" : data }); $(self).find('#right_button').click(function(){ security_group.leftToRight(); }); $(self).find('#left_button').click(function(){ security_group.rightToLeft(); });
success: function(json,status){ var results = json.netfilter_group.results; var size = results.length for (var i=0; i < size ; i++) { data.push({ "id" : results[i].result.uuid, "name" : results[i].result.name }); } }
ajaxAnimation.removeClass(xhrName); if (!ajaxAnimation.attr('class')) ajaxAnimation.hide();
success: function(data) { fSuccess(data, obj); ajaxAnimation.removeClass(xhrName); if (!ajaxAnimation.attr('class')) ajaxAnimation.hide(); },
alert (msg);
success: function(msg){ //alert(msg); //close the window //$("#propertyBinding").hide(); utrIntro(); }//succes
$(quickeditor).parent().replaceWith('<div class="content">' + html + '</div>');
$(quickeditor).parent().replaceWith('<div class="content text-content">' + html + '</div>');
success: function(html){ $(quickeditor).parent().replaceWith('<div class="content">' + html + '</div>'); }
success: function() { var status = this.getStatus(); return !status || (status >= 200 && status < 300); },
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(b)}})(),BrowserFeatures:{XPath:!!document.evaluate,SelectorsAPI:!!document.querySelector,ElementExtensions:(function(){var a=window.Element||window.HTMLElement;return !!(a&&a.prototype)})(),SpecificElementExtensions:(function(){if(typeof window.HTMLDivElement!=="undefined"){return true}var c=document.createElement("div");var b=document.createElement("form");var a=false;if(c.__proto__&&(c.__proto__!==b.__proto__)){a=true}c=b=null;return a})()},ScriptFragment:"<script[^>]*>([\\S\\s]*?)<\/script>",JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(a){return a}};if(Prototype.Browser.MobileSafari){Prototype.BrowserFeatures.SpecificElementExtensions=false}var Abstract={};var Try={these:function(){var c;for(var b=0,d=arguments.length;b<d;b++){var a=arguments[b];try{c=a();break}catch(f){}}return c}};var Class=(function(){function a(){}function b(){var g=null,f=$A(arguments);if(Object.isFunction(f[0])){g=f.shift()}function d(){this.initialize.apply(this,arguments)}Object.extend(d,Class.Methods);d.superclass=g;d.subclasses=[];if(g){a.prototype=g.prototype;d.prototype=new a;g.subclasses.push(d)}for(var e=0;e<f.length;e++){d.addMethods(f[e])}if(!d.prototype.initialize){d.prototype.initialize=Prototype.emptyFunction}d.prototype.constructor=d;return d}function c(k){var f=this.superclass&&this.superclass.prototype;var e=Object.keys(k);if(!Object.keys({toString:true}).length){if(k.toString!=Object.prototype.toString){e.push("toString")}if(k.valueOf!=Object.prototype.valueOf){e.push("valueOf")}}for(var d=0,g=e.length;d<g;d++){var j=e[d],h=k[j];if(f&&Object.isFunction(h)&&h.argumentNames().first()=="$super"){var l=h;h=(function(i){return function(){return f[i].apply(this,arguments)}})(j).wrap(l);h.valueOf=l.valueOf.bind(l);h.toString=l.toString.bind(l)}this.prototype[j]=h}return this}return{create:b,Methods:{addMethods:c}}})();(function(){var d=Object.prototype.toString;function i(q,s){for(var r in s){q[r]=s[r]}return q}function l(q){try{if(e(q)){return"undefined"}if(q===null){return"null"}return q.inspect?q.inspect():String(q)}catch(r){if(r instanceof RangeError){return"..."}throw r}}function k(q){var s=typeof q;switch(s){case"undefined":case"function":case"unknown":return;case"boolean":return q.toString()}if(q===null){return"null"}if(q.toJSON){return q.toJSON()}if(h(q)){return}var r=[];for(var u in q){var t=k(q[u]);if(!e(t)){r.push(u.toJSON()+": "+t)}}return"{"+r.join(", ")+"}"}function c(q){return $H(q).toQueryString()}function f(q){return q&&q.toHTML?q.toHTML():String.interpret(q)}function o(q){var r=[];for(var s in q){r.push(s)}return r}function m(q){var r=[];for(var s in q){r.push(q[s])}return r}function j(q){return i({},q)}function h(q){return !!(q&&q.nodeType==1)}function g(q){return d.call(q)=="[object Array]"}function p(q){return q instanceof Hash}function b(q){return typeof q==="function"}function a(q){return d.call(q)=="[object String]"}function n(q){return d.call(q)=="[object Number]"}function e(q){return typeof q==="undefined"}i(Object,{extend:i,inspect:l,toJSON:k,toQueryString:c,toHTML:f,keys:o,values:m,clone:j,isElement:h,isArray:g,isHash:p,isFunction:b,isString:a,isNumber:n,isUndefined:e})})();Object.extend(Function.prototype,(function(){var k=Array.prototype.slice;function d(o,l){var n=o.length,m=l.length;while(m--){o[n+m]=l[m]}return o}function i(m,l){m=k.call(m,0);return d(m,l)}function g(){var l=this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\
success: function() { var status = this.getStatus(); return !status || (status >= 200 && status < 300); },
$("#list_load_mask").unmask();
success: function(json,status,xhr){ self.element.trigger('dcmgrGUI.contentChange',[{"data":json,"self":self}]); self.element.trigger('dcmgrGUI.afterUpdate',[{"data":json,"self":self}]); $("#list_load_mask").unmask(); },
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : [];
function suggest(aWord, aDomain) { var xhr = new XMLHttpRequest(); var endPoint = "http:
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : []; return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]); let cc = { origin : origin, query : query }; if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description; return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]);
xhr.mozBackgroundRequest = true; xhr.open("GET", endPoint, false); xhr.send(null);
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : []; return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]); let cc = { origin : origin, query : query }; if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description; return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
let cc = { origin : origin, query : query };
let matched = xhr.responseText.match("(<toplevel>.*</toplevel>)");
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : []; return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]); let cc = { origin : origin, query : query }; if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description; return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description;
if (!matched) return null;
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : []; return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]); let cc = { origin : origin, query : query }; if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description; return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
return new XML(matched[1]); }
suggest: function (aEngines, aWithDescription) { let util = modules.util; let engines = aEngines ? util.suggest.filterEngines(aEngines) : []; return function (currentText, text) { [query, origin] = completer.utils.getQuery(currentText, [" "]); let cc = { origin : origin, query : query }; if (query) { let collection = engines.reduce( function (accum, engine) { let suggestions = util.suggest.getSuggestions(engine, query); let description = engine.description; return accum.concat(aWithDescription ? suggestions.map(function (s) [s, description]) : suggestions); }, []); cc.collection = collection; } return cc; }; },
a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ka,la);f=a.currentStyle[b]||a.currentStyle[d];if(!kb.test(f)&&lb.test(f)){b=e.left;var i=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=i}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]= f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=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 qb=K(),rb=/<script(.|\s)*?\/script>/gi,sb=/select|textarea/i,tb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,O=/=\?(&|$)/,ma=/\?/,ub=/(\?|&)_=.*?(&|$)/,vb=/^(\w+:)?\/\/([^\/?#]+)/,
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ka,la);f=a.currentStyle[b]||a.currentStyle[d];if(!kb.test(f)&&lb.test(f)){b=e.left;var i=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=i}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=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 qb=K(),rb=/<script(.|\s)*?\/script>/gi,sb=/select|textarea/i,tb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,O=/=\?(&|$)/,ma=/\?/,ub=/(\?|&)_=.*?(&|$)/,vb=/^(\w+:)?\/\/([^\/?#]+)/,
matches.push(index);
matches.push(browser);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } count = Math.max(1, count || 1); reverse = Boolean(reverse); let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false); return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { let index = (count - 1) % matches.length; if (reverse) index = matches.length - count; index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false); } },
if (allowNonUnique === undefined || allowNonUnique == null)
if (allowNonUnique == null)
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false;
count = Math.max(1, count || 1); reverse = Boolean(reverse);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
tabs.select(parseInt(matches[1], 10) - 1, false);
tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase();
let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase();
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
if (reverse) {
let index = (count - 1) % matches.length; if (reverse)
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
while (index < 0) index += matches.length; } else index = (count - 1) % matches.length;
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
tabs.select(matches[index], false);
index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique === undefined || allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } if (!count || count < 1) count = 1; if (typeof reverse != "boolean") reverse = false; let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let url = config.tabbrowser.getBrowserAtIndex(index).contentDocument.location.href; let title = config.tabbrowser.getBrowserAtIndex(index).contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(index); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { if (reverse) { index = matches.length - count; while (index < 0) index += matches.length; } else index = (count - 1) % matches.length; tabs.select(matches[index], false); } },
let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; }
let allTabs = tabs.allTabs; for (let [i, ] in Iterator(tabs.allTabs)) { let tab = allTabs[(i + first) % allTabs.length]; let url = tab.linkedBrowser.contentDocument.location.href; if (url == buffer) return tabs.select(index, false);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } count = Math.max(1, count || 1); reverse = Boolean(reverse); let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false); return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(browser); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { let index = (count - 1) % matches.length; if (reverse) index = matches.length - count; index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false); } },
if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(browser);
if (url.indexOf(buffer) >= 0 || tab.label.toLowerCase().indexOf(lowerBuffer) >= 0) matches.push(tab);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } count = Math.max(1, count || 1); reverse = Boolean(reverse); let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false); return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(browser); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { let index = (count - 1) % matches.length; if (reverse) index = matches.length - count; index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false); } },
index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false);
tabs.select(matches[index], false);
switchTo: function (buffer, allowNonUnique, count, reverse) { if (buffer == "") return; if (buffer != null) { // store this command, so it can be repeated with "B" this._lastBufferSwitchArgs = buffer; this._lastBufferSwitchSpecial = allowNonUnique; } else { buffer = this._lastBufferSwitchArgs; if (allowNonUnique == null) // XXX allowNonUnique = this._lastBufferSwitchSpecial; } if (buffer == "#") { tabs.selectAlternateTab(); return; } count = Math.max(1, count || 1); reverse = Boolean(reverse); let matches = buffer.match(/^(\d+):?/); if (matches) { tabs.select(this.allTabs[parseInt(matches[1], 10) - 1], false); return; } matches = []; let lowerBuffer = buffer.toLowerCase(); let first = tabs.index() + (reverse ? 0 : 1); let nbrowsers = config.tabbrowser.browsers.length; for (let [i, ] in tabs.browsers) { let index = (i + first) % nbrowsers; let browser = config.tabbrowser.getBrowserAtIndex(index); let url = browser.contentDocument.location.href; let title = browser.contentDocument.title.toLowerCase(); if (url == buffer) { tabs.select(index, false); return; } if (url.indexOf(buffer) >= 0 || title.indexOf(lowerBuffer) >= 0) matches.push(browser); } if (matches.length == 0) dactyl.echoerr("E94: No matching buffer for " + buffer); else if (matches.length > 1 && !allowNonUnique) dactyl.echoerr("E93: More than one match for " + buffer); else { let index = (count - 1) % matches.length; if (reverse) index = matches.length - count; index = Array.indexOf(config.tabbrowser.browsers, matches[index]); tabs.select(index, false); } },