rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+this.form.elements[i].name+"="+this.form.elements[i].value;}
return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+encodeURIComponent(this.form.elements[i].name)+"="+encodeURIComponent(this.form.elements[i].value);}
var opActivity=function(id,posturl){var t=this;var addEventListener=function(obj,type,listener,useCapture){if(obj.addEventListener){obj.addEventListener(type,listener,useCapture);}else if(obj.attachEvent){type='on'+type;obj.attachEvent(type,listener);}};var getHttpRequest=function(){var req=null;if(window.XMLHttpRequest){req=new XMLHttpRequest();}else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){req=new ActiveXObject("Microsoft.XMLHTTP");}}return req;};this.post=function(){var req=getHttpRequest();req.open("POST",posturl,true);req.setRequestHeader("X-Requested-With","XMLHttpRequest");req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var data="";for(var i=0;i<this.form.elements.length;i++){data+="&"+this.form.elements[i].name+"="+this.form.elements[i].value;}
getInputs: function(form, typeName, name) { form = $(form); var inputs = form.getElementsByTagName('input'); if (!typeName && !name) return $A(inputs).map(Element.extend); for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) { var input = inputs[i]; if ((typeName && input.type != typeName) || (name && input.name != name)) continue; matchingInputs.push(Element.extend(input)); } return matchingInputs; },
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])*?\*\
getInputs: function(form, typeName, name) { form = $(form); var inputs = form.getElementsByTagName('input'); if (!typeName && !name) return $A(inputs).map(Element.extend); for (var i = 0, matchingInputs = [], length = inputs.length; i < length; i++) { var input = inputs[i]; if ((typeName && input.type != typeName) || (name && input.name != name)) continue; matchingInputs.push(Element.extend(input)); } return matchingInputs; },
var item = $X('ancestor-or-self::div[contains(concat(" ",@clas," ")," entry ")]', ctx.target);
var item = $X('ancestor-or-self::div[contains(concat(" ",@class," ")," entry ")]', ctx.target)[0];
getItem: function(ctx, getOnly){ if(!ctx.href.match(/\/\/www\.google\.[^\/]+\/reader\//)) return; var item = $X('ancestor-or-self::div[contains(concat(" ",@clas," ")," entry ")]', ctx.target); if(!item) return; var res = { author: ($X('descendant::div[@class="entry-author"]/*[@class="entry-author-name"]/text()', item)[0] || ''), title : $X('descendant::a[@class="entry-title-link"]/text()', item)[0] || '', feed : ($X('descendant::a[@class="entry-source-title"]/text()', item)[0] || $X('id("chrome-stream-title")//a/text()', ctx.document)[0]), href : $X('descendant::a[@class="entry-title-link"]/@href', item)[0].replace(/[?&;](fr?(om)?|track|ref|FM)=(r(ss(all)?|df)|atom)([&;].*)?/,'') }; if(!getOnly){ ctx.title = res.feed + (res.title? ' - ' + res.title : ''); ctx.href = res.href; ctx.host = res.href.match(/http:\/\/(.*?)/)[1]; } return res; }
return;
return null;
getItem: function(ctx, getOnly){ if(!ctx.href.match(/\/\/www\.google\.[^\/]+\/reader\//)) return; var item = $X('ancestor-or-self::div[contains(concat(" ",@class," ")," entry ")]', ctx.target)[0]; if(!item) return; var res = { author: ($X('descendant::div[@class="entry-author"]/*[@class="entry-author-name"]/text()', item)[0] || ''), title : $X('descendant::a[@class="entry-title-link"]/text()', item)[0] || '', feed : ($X('descendant::a[@class="entry-source-title"]/text()', item)[0] || $X('id("chrome-stream-title")//a/text()', ctx.document)[0]), href : $X('descendant::a[@class="entry-title-link"]/@href', item)[0].replace(/[?&;](fr?(om)?|track|ref|FM)=(r(ss(all)?|df)|atom)([&;].*)?/,'') }; if(!getOnly){ ctx.title = res.feed + (res.title? ' - ' + res.title : ''); ctx.href = res.href; ctx.host = res.href.match(/http:\/\/(.*?)/)[1]; } return res; }
c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},
this.throwIfDisposed();
activity.Listenable.prototype.getListeners = function() { this.throwIfDisposed(); return this.listeners_;};
return ([k, m.keys] for ([k, m] in this._macros) if (re.test(macro)));
return ([k, m.keys] for ([k, m] in events._macros) if (re.test(k)));
getMacros: function (filter) { let re = RegExp(filter || ""); return ([k, m.keys] for ([k, m] in this._macros) if (re.test(macro))); },
let count = result.root.childCount;
let childCount = result.root.childCount;
function getMostVisitedPages(count) { const historyService = Cc["@mozilla.org/browser/nav-history-service;1"] .getService(Ci.nsINavHistoryService); let query = historyService.getNewQuery(); let options = historyService.getNewQueryOptions(); options.sortingMode = options.SORT_BY_VISITCOUNT_DESCENDING; options.maxResults = count; // execute the query let result = historyService.executeQuery(query, options); // iterate over the results result.root.containerOpen = true; let count = result.root.childCount; let collection = []; for (let i = 0; i < count; i++) { let node = result.root.getChild(i); collection.push( [ node.icon || "", node.uri, node.title, TYPE_HISTORY ] ); } result.root.containerOpen = false; return collection;}
for (let i = 0; i < count; i++)
for (let i = 0; i < childCount; i++)
function getMostVisitedPages(count) { const historyService = Cc["@mozilla.org/browser/nav-history-service;1"] .getService(Ci.nsINavHistoryService); let query = historyService.getNewQuery(); let options = historyService.getNewQueryOptions(); options.sortingMode = options.SORT_BY_VISITCOUNT_DESCENDING; options.maxResults = count; // execute the query let result = historyService.executeQuery(query, options); // iterate over the results result.root.containerOpen = true; let count = result.root.childCount; let collection = []; for (let i = 0; i < count; i++) { let node = result.root.getChild(i); collection.push( [ node.icon || "", node.uri, node.title, TYPE_HISTORY ] ); } result.root.containerOpen = false; return collection;}
model.typeName = 'Tumblr';
Models.getMultiTumblelogs = function(){ Models.removeMultiTumblelogs(); return Tumblr.getTumblelogs().addCallback(function(blogs){ return blogs.map(function(blog){ var model = update({}, Tumblr); model.name = 'Tumblr - ' + blog.name; addBefore(model, 'appendTags', function(form, ps){ form.channel_id = blog.id; }); Models.register(model, 'Tumblr', true); Models.multipleTumblelogs.push(model); return model; }); }).addErrback(function(e){ alert('Multiple Tumblelog'+ ': ' + (e.message.status ? '\n' + ('HTTP Status Code ' + e.message.status).indent(4) : '\n' + e.message.indent(4))); });}
function getNextArg(str) {
function getNextArg(str, _keepQuotes) { if (arguments.length < 2) _keepQuotes = keepQuotes;
function getNextArg(str) { if (str.substr(0, 2) === "<<" && hereDoc) { let arg = /^<<(\S*)/.exec(str)[1]; let count = arg.length + 2; if (complete) return [count, "", ""]; return [count, io.readHeredoc(arg), ""]; } let [count, arg, quote] = Commands.parseArg(str, null, keepQuotes); if (quote == "\\" && !complete) return [, , , "Trailing \\"]; if (quote && !complete) return [, , , "E114: Missing quote: " + quote]; return [count, arg, quote]; }
let [count, arg, quote] = Commands.parseArg(str, null, keepQuotes);
let [count, arg, quote] = Commands.parseArg(str, null, _keepQuotes);
function getNextArg(str) { if (str.substr(0, 2) === "<<" && hereDoc) { let arg = /^<<(\S*)/.exec(str)[1]; let count = arg.length + 2; if (complete) return [count, "", ""]; return [count, io.readHeredoc(arg), ""]; } let [count, arg, quote] = Commands.parseArg(str, null, keepQuotes); if (quote == "\\" && !complete) return [, , , "Trailing \\"]; if (quote && !complete) return [, , , "E114: Missing quote: " + quote]; return [count, arg, quote]; }
var content = this.get('content'), invalid = this._invalidIndexes, indexMap = this._indexMap, i, len = invalid.length, clen = content.get('length'),
var content = this.get('content'), clen = content.get('length'), indexMap = this._indexMap, view,
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, indexMap = this._indexMap, i, len = invalid.length, clen = content.get('length'), top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret; while((top - bottom < poolSize - 1) && (top < clen - 1 || bottom > 0)) { // alternates between checking top and bottom parity = !parity; if(parity && top < clen - 1) { top++; if(!indexMap[top] || invalid.contains(top)) { ret = top; break; } } else if(bottom > 0) { bottom--; if(!indexMap[bottom] || invalid.contains(bottom)) { ret = bottom; break; } } } // save for next time (otherwise we will simply return values that haven't been loaded yet repeatedly until they load) this.topBackground = top; this.bottomBackground = bottom; this._parity = parity; return ret; },
if(!indexMap[top] || invalid.contains(top)) {
view = indexMap[top]; if(!view || view._SCCFP_dirty) {
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, indexMap = this._indexMap, i, len = invalid.length, clen = content.get('length'), top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret; while((top - bottom < poolSize - 1) && (top < clen - 1 || bottom > 0)) { // alternates between checking top and bottom parity = !parity; if(parity && top < clen - 1) { top++; if(!indexMap[top] || invalid.contains(top)) { ret = top; break; } } else if(bottom > 0) { bottom--; if(!indexMap[bottom] || invalid.contains(bottom)) { ret = bottom; break; } } } // save for next time (otherwise we will simply return values that haven't been loaded yet repeatedly until they load) this.topBackground = top; this.bottomBackground = bottom; this._parity = parity; return ret; },
if(!indexMap[bottom] || invalid.contains(bottom)) {
view = indexMap[bottom]; if(!view || view._SCCFP_dirty) {
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, indexMap = this._indexMap, i, len = invalid.length, clen = content.get('length'), top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret; while((top - bottom < poolSize - 1) && (top < clen - 1 || bottom > 0)) { // alternates between checking top and bottom parity = !parity; if(parity && top < clen - 1) { top++; if(!indexMap[top] || invalid.contains(top)) { ret = top; break; } } else if(bottom > 0) { bottom--; if(!indexMap[bottom] || invalid.contains(bottom)) { ret = bottom; break; } } } // save for next time (otherwise we will simply return values that haven't been loaded yet repeatedly until they load) this.topBackground = top; this.bottomBackground = bottom; this._parity = parity; return ret; },
while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length || this.bottomBackground >= 0)) {
while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) {
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render // pre-increment because even if it can't be background rendered, the next one might while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length || this.bottomBackground >= 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && ++this.topBackground < content.length) { if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(--this.bottomBackground >= 0){ if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
if(this._parity && ++this.topBackground < content.length) {
if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground;
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render // pre-increment because even if it can't be background rendered, the next one might while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length || this.bottomBackground >= 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && ++this.topBackground < content.length) { if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(--this.bottomBackground >= 0){ if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
} else if(--this.bottomBackground >= 0){
} else if(this.bottomBackground > 0){ --this.bottomBackground;
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render // pre-increment because even if it can't be background rendered, the next one might while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length || this.bottomBackground >= 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && ++this.topBackground < content.length) { if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(--this.bottomBackground >= 0){ if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret;
top = this._topBackground, bottom = this._bottomBackground, parity = this._parity, poolSize = this.DOMPoolSize, ret;
getNextBackground: function() { var content = this.get('content'), clen = content.get('length'), indexMap = this._indexMap, view, top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret; while((top - bottom < poolSize - 1) && (top < clen - 1 || bottom > 0)) { // alternates between checking top and bottom parity = !parity; if(parity && top < clen - 1) { top++; view = indexMap[top]; if(!view || view._SCCFP_dirty) { ret = top; break; } } else if(bottom > 0) { bottom--; view = indexMap[bottom]; if(!view || view._SCCFP_dirty) { ret = bottom; break; } } } // save for next time (otherwise we will simply return values that haven't been loaded yet repeatedly until they load) this.topBackground = top; this.bottomBackground = bottom; this._parity = parity; return ret; },
this.topBackground = top; this.bottomBackground = bottom;
this._topBackground = top; this._bottomBackground = bottom;
getNextBackground: function() { var content = this.get('content'), clen = content.get('length'), indexMap = this._indexMap, view, top = this.topBackground, bottom = this.bottomBackground, parity = this._parity, poolSize = this.domPoolSize, ret; while((top - bottom < poolSize - 1) && (top < clen - 1 || bottom > 0)) { // alternates between checking top and bottom parity = !parity; if(parity && top < clen - 1) { top++; view = indexMap[top]; if(!view || view._SCCFP_dirty) { ret = top; break; } } else if(bottom > 0) { bottom--; view = indexMap[bottom]; if(!view || view._SCCFP_dirty) { ret = bottom; break; } } } // save for next time (otherwise we will simply return values that haven't been loaded yet repeatedly until they load) this.topBackground = top; this.bottomBackground = bottom; this._parity = parity; return ret; },
i, len = invalid.length;
i, len = invalid.length, clen = content.get('length');
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, i, len = invalid.length; // loop through invalid indices and allow the first one between top and bottom to re-render for(i = 0; i < invalid.length; i++) { if(invalid[i] <= this.topBackground && invalid[i] >= this.bottomBackground) return invalid[i]; } while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) {
while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < clen - 1 || this.bottomBackground > 0)) {
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, i, len = invalid.length; // loop through invalid indices and allow the first one between top and bottom to re-render for(i = 0; i < invalid.length; i++) { if(invalid[i] <= this.topBackground && invalid[i] >= this.bottomBackground) return invalid[i]; } while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
if(this._parity && this.topBackground < content.length - 1) {
if(this._parity && this.topBackground < clen - 1) {
getNextBackground: function() { var content = this.get('content'), invalid = this._invalidIndexes, i, len = invalid.length; // loop through invalid indices and allow the first one between top and bottom to re-render for(i = 0; i < invalid.length; i++) { if(invalid[i] <= this.topBackground && invalid[i] >= this.bottomBackground) return invalid[i]; } while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
var content = this.get('content');
var content = this.get('content'), invalid = this._invalidIndexes, i, len = invalid.length;
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
for(i = 0; i < invalid.length; i++) { if(invalid[i] <= this.topBackground && invalid[i] >= this.bottomBackground) return invalid[i]; }
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) {
while((this.topBackground - this.bottomBackground < this.domPoolSize - 1) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) {
getNextBackground: function() { var content = this.get('content'); // TODO: loop through invalid indices and allow the first one between top and bottom to re-render while((this.topBackground - this.bottomBackground < this.domPoolSize) && (this.topBackground < content.length - 1 || this.bottomBackground > 0)) { // alternates between checking top and bottom this._parity = !this._parity; if(this._parity && this.topBackground < content.length - 1) { ++this.topBackground; if(this.canBackgroundRender(this.topBackground)) return this.topBackground; } else if(this.bottomBackground > 0){ --this.bottomBackground; if(this.canBackgroundRender(this.bottomBackground)) return this.bottomBackground; } } },
i, len = shouldBeShowing.length, index;
i, len = shouldBeShowing.length, index, indexMap = this._indexMap, view;
getNextNowShowing: function() { var curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len = shouldBeShowing.length, index; for(i = 0; i < len; i++) { index = shouldBeShowing[i]; if(!curShowing.contains(index) || this._invalidIndexes.contains(index)) return index; } },
if(!curShowing.contains(index) || this._invalidIndexes.contains(index)) return index;
view = indexMap[index]; if(!curShowing.contains(index) || !view || view._SCCFP_dirty) return index;
getNextNowShowing: function() { var curShowing = this._curShowing, shouldBeShowing = this._shouldBeShowing, i, len = shouldBeShowing.length, index; for(i = 0; i < len; i++) { index = shouldBeShowing[i]; if(!curShowing.contains(index) || this._invalidIndexes.contains(index)) return index; } },
jsio('from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result');
try { jsio('from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result'); } catch(e) { throw logger.error('Invalid transport (', transportName, ') or environment (', envName, ')'); }
function getObj(objectName, transportName, envName) { jsio('from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result'); return result;}
jsio('from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result');
var DYNAMIC_IMPORT_ENV = 'from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result'; jsio(DYNAMIC_IMPORT_ENV);
function getObj(objectName, transportName, envName) { try { jsio('from .env.' + (envName || jsio.__env.name) + '.' + transportName + ' import ' + objectName + ' as result'); } catch(e) { throw logger.error('Invalid transport (', transportName, ') or environment (', envName, ')'); } return result;}
getOffsetParent: function(element) { if (element.offsetParent) return $(element.offsetParent); if (element == document.body) return $(element); while ((element = element.parentNode) && element != document.body) if (Element.getStyle(element, 'position') != 'static') return $(element); return $(document.body); },
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])*?\*\
getOffsetParent: function(element) { if (element.offsetParent) return $(element.offsetParent); if (element == document.body) return $(element); while ((element = element.parentNode) && element != document.body) if (Element.getStyle(element, 'position') != 'static') return $(element); return $(document.body); },
getOpacity: function(element) { return $(element).getStyle('opacity'); },
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])*?\*\
getOpacity: function(element) { return $(element).getStyle('opacity'); },
var identifier = activity.JsEventFetcher.getEventIdentifier_(event);
var identifier = this.getEventIdentifier_(event);
activity.JsEventFetcher.EventDispatcher_.prototype.getOrCreateEvent_ = function( event, eventType) { var identifier = activity.JsEventFetcher.getEventIdentifier_(event); // An event is uniquely defined by its type,startTime,identifier // tuple. We build a string that uniquely represents this key and // use it to look up events in our map. var key = [eventType, event.getStartTimeUsec(), identifier].join(':'); if (!this.eventMap_[key]) { // An event with that key doesn't exist already, so construct a // new one. Also add it to the array. this.eventMap_[key] = new activity.TimelineModel.Event( identifier, event.getStartTimeUsec(), event.getDurationUsec(), eventType, 0.0); this.eventArray_.push(this.eventMap_[key]); } return this.eventMap_[key];};
PS_LOG('Failed to create output directory "' + outputDir +
PS_LOG('Failed to create output directory "' + outputDir.path +
getOutputDir: function(opt_subDir) { var PERMISSIONS = 0700; try { var outputDir = PAGESPEED.Utils.getFilePref(OPTIMIZED_FILE_BASE_DIR); if (!outputDir) { // The first time this function is called, the preference might not // be set. Set a default value. PAGESPEED.Utils.setDefaultOutputDir(); outputDir = PAGESPEED.Utils.getFilePref(OPTIMIZED_FILE_BASE_DIR); } // A failure after the default is set must be a bug. Log and continue. if (!outputDir) { PS_LOG('Failed to get output dir.'); return null; } if (opt_subDir) { outputDir.append(opt_subDir); } if (outputDir.exists() && !outputDir.isDirectory()) { PS_LOG('Failed to create output directory "' + outputDir + '": a file already exists at that path.'); return null; } if (!outputDir.exists()) { // create() will create intermediate dirs. For example, // creating /none/of/these/dirs/exist/ will create five // directories. The only time we should set permissions // on a directory is when we create that directory. outputDir.create(outputDir.DIRECTORY_TYPE, PERMISSIONS); // When create() fails to set permissioons as we ask, setting // permissions with outputDir.permissions = PERMISSIONS fails // in the same way, but throws an exception. We log the // permisions are logged if they are not what we expect, // so that users who see problems can report issues including // the permissions they see. if (PERMISSIONS != outputDir.permissions) { var permToOctal = function(perms) { return Number(perms).toString(8); }; PS_LOG(['getOutputDir(): Tried to set output directory ', 'permissions to ', permToOctal(PERMISSIONS), '. ', 'Permissions are ', permToOctal(outputDir.permissions), '.'].join('')); } } return outputDir.clone(); } catch (e) { PS_LOG('getOutputDir(): Failed to create output directory "' + outputDir + '" due to an exception: ' + PAGESPEED.Utils.formatException(e) + ')'); return null; } },
outputDir + '" due to an exception: ' +
outputDir.path + '" due to an exception: ' +
getOutputDir: function(opt_subDir) { var PERMISSIONS = 0700; try { var outputDir = PAGESPEED.Utils.getFilePref(OPTIMIZED_FILE_BASE_DIR); if (!outputDir) { // The first time this function is called, the preference might not // be set. Set a default value. PAGESPEED.Utils.setDefaultOutputDir(); outputDir = PAGESPEED.Utils.getFilePref(OPTIMIZED_FILE_BASE_DIR); } // A failure after the default is set must be a bug. Log and continue. if (!outputDir) { PS_LOG('Failed to get output dir.'); return null; } if (opt_subDir) { outputDir.append(opt_subDir); } if (outputDir.exists() && !outputDir.isDirectory()) { PS_LOG('Failed to create output directory "' + outputDir + '": a file already exists at that path.'); return null; } if (!outputDir.exists()) { // create() will create intermediate dirs. For example, // creating /none/of/these/dirs/exist/ will create five // directories. The only time we should set permissions // on a directory is when we create that directory. outputDir.create(outputDir.DIRECTORY_TYPE, PERMISSIONS); // When create() fails to set permissioons as we ask, setting // permissions with outputDir.permissions = PERMISSIONS fails // in the same way, but throws an exception. We log the // permisions are logged if they are not what we expect, // so that users who see problems can report issues including // the permissions they see. if (PERMISSIONS != outputDir.permissions) { var permToOctal = function(perms) { return Number(perms).toString(8); }; PS_LOG(['getOutputDir(): Tried to set output directory ', 'permissions to ', permToOctal(PERMISSIONS), '. ', 'Permissions are ', permToOctal(outputDir.permissions), '.'].join('')); } } return outputDir.clone(); } catch (e) { PS_LOG('getOutputDir(): Failed to create output directory "' + outputDir + '" due to an exception: ' + PAGESPEED.Utils.formatException(e) + ')'); return null; } },
DcmgrGUI.Util.getPagenateData = function(page,limit){ if (page === 1) { var start = 1; } else { var start = ((page -1) * limit) + 1; }
DcmgrGUI.Util.getPagenateData = function(start,limit){
DcmgrGUI.Util.getPagenateData = function(page,limit){ if (page === 1) { var start = 1; } else { var start = ((page -1) * limit) + 1; } return "start=" + start + "&" + "limit=" + limit;}
return makeRelativePath(segments.join('/') || '.', this.getCwd());
return util.makeRelativePath(segments.join('/') || '.', this.getCwd());
this.getPath = function() { var segments = __filename.split('/'); segments.pop(); return makeRelativePath(segments.join('/') || '.', this.getCwd()); }
return segments.join('/') || '.';
return makeRelativePath(segments.join('/') || '.', this.getCwd());
this.getPath = function() { var segments = __filename.split('/'); segments.pop(); return segments.join('/') || '.'; }
Models.getPostConfig = function(config, name, ps){
Models.getPostConfig = function(config, name, ps, model){
Models.getPostConfig = function(config, name, ps){ var c = config[name] || {}; return (ps.favorite && ps.favorite.name === name)? c.favorite : c[ps.type];}
return (ps.favorite && ps.favorite.name === name)? c.favorite : c[ps.type];
return (ps.favorite && ps.favorite.name === (model.typeName || name))? c.favorite : c[ps.type];
Models.getPostConfig = function(config, name, ps){ var c = config[name] || {}; return (ps.favorite && ps.favorite.name === name)? c.favorite : c[ps.type];}
if (this._error) {
var e = this.error; if (e) {
getPreedit: function () { var result = []; var start = 0; var end = 0; var rest = 0; if (this._current) { $.each(this._selected, function (i, e) { result.push(e.text); start += e.text.length; }); result.push(this._current.text); end = start + this._current.text.length; rest = this._current.end; } if (rest < this.input.length) { var text = this._display.text; var idx = this._display.index; result.push(text.substring(idx[rest])); if (this._error) { var diff = idx[rest] - end; start = idx[this._error.start] - diff; end = idx[this._error.end] - diff; } } return { text: result.join(""), start: start, end: end }; },
start = idx[this._error.start] - diff; end = idx[this._error.end] - diff;
start = idx[e.start] - diff; end = idx[e.end] - diff;
getPreedit: function () { var result = []; var start = 0; var end = 0; var rest = 0; if (this._current) { $.each(this._selected, function (i, e) { result.push(e.text); start += e.text.length; }); result.push(this._current.text); end = start + this._current.text.length; rest = this._current.end; } if (rest < this.input.length) { var text = this._display.text; var idx = this._display.index; result.push(text.substring(idx[rest])); if (this._error) { var diff = idx[rest] - end; start = idx[this._error.start] - diff; end = idx[this._error.end] - diff; } } return { text: result.join(""), start: start, end: end }; },
return jsio.modules.preprocessors[name] || jsio('import preprocessors.' + name, {dontExport: true});
var modName = 'preprocessors.' + name; return typeof name == 'function' ? name : jsio.__modules[modName] || jsio('import preprocessors.' + name, {dontExport: true});
function getPreprocessor(name) { return jsio.modules.preprocessors[name] || jsio('import preprocessors.' + name, {dontExport: true}); }
ps = res;
function getPsInfo(tab){ var d = new Deferred(); chrome.tabs.sendRequest(tab.id, { request: 'popup', content: { title: tab.title, url : tab.url } }, function(res){ d.callback(res); }); return d;};
let rcFile1 = File.joinPaths(dir, "." + config.name + "rc"); let rcFile2 = File.joinPaths(dir, "_" + config.name + "rc");
let rcFile1 = File.joinPaths(dir, "." + config.name + "rc", this.cwd); let rcFile2 = File.joinPaths(dir, "_" + config.name + "rc", this.cwd);
getRCFile: function (dir, always) { dir = dir || "~"; let rcFile1 = File.joinPaths(dir, "." + config.name + "rc"); let rcFile2 = File.joinPaths(dir, "_" + config.name + "rc"); if (dactyl.has("WINNT")) [rcFile1, rcFile2] = [rcFile2, rcFile1]; if (rcFile1.exists() && rcFile1.isFile()) return rcFile1; else if (rcFile2.exists() && rcFile2.isFile()) return rcFile2; else if (always) return rcFile1; return null; },
if (dactyl.has("Win32"))
if (dactyl.has("WINNT"))
getRCFile: function (dir, always) { dir = dir || "~"; let rcFile1 = File.joinPaths(dir, "." + config.name + "rc"); let rcFile2 = File.joinPaths(dir, "_" + config.name + "rc"); if (dactyl.has("Win32")) [rcFile1, rcFile2] = [rcFile2, rcFile1]; if (rcFile1.exists() && rcFile1.isFile()) return rcFile1; else if (rcFile2.exists() && rcFile2.isFile()) return rcFile2; else if (always) return rcFile1; return null; },
getResponseHeader: function(name) { return this.transport.getResponseHeader(name); },
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])*?\*\
getResponseHeader: function(name) { return this.transport.getResponseHeader(name); },
let dirs = File.getPathsFromPathList(options["runtimepath"]);
let dirs = options.get("runtimepath").values;
getRuntimeDirectories: function (name) { let dirs = File.getPathsFromPathList(options["runtimepath"]); dirs = dirs.map(function (dir) File.joinPaths(dir, name)) .filter(function (dir) dir.exists() && dir.isDirectory() && dir.isReadable()); return dirs; },
dirs = dirs.map(function (dir) File.joinPaths(dir, name))
dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd))
getRuntimeDirectories: function (name) { let dirs = File.getPathsFromPathList(options["runtimepath"]); dirs = dirs.map(function (dir) File.joinPaths(dir, name)) .filter(function (dir) dir.exists() && dir.isDirectory() && dir.isReadable()); return dirs; },
dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd))
dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd), this)
getRuntimeDirectories: function (name) { let dirs = options["runtimepath"]; dirs = dirs.map(function (dir) File.joinPaths(dir, name, this.cwd)) .filter(function (dir) dir.exists() && dir.isDirectory() && dir.isReadable()); return dirs; },
getScrollOffsets: function() { return Element._returnOffset( window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); }
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])*?\*\
getScrollOffsets: function() { return Element._returnOffset( window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); }
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:function(a,b,d){return new q(this,a,b,d)},reindent:function(){this.container.firstChild&&this.indentRegion(null,this.container.lastChild)},reindentSelection:function(a){if(select.somethingSelected()){var b=
b,c){this.editor.replaceChars(a,b,c)},getSearchCursor:function(a,b,c){return this.editor.getSearchCursor(a,b,c)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},grabKeys:function(a,b){this.editor.grabKeys(a,b)},ungrabKeys:function(){this.editor.ungrabKeys()},setParser:function(a,b){this.editor.setParser(a,b)},setSpellcheck:function(a){this.win.document.body.spellcheck=
10)}},replaceRange:function(a,b,d){d=i(d);d[0]=this.history.textAfter(a.node).slice(0,a.offset)+d[0];var f=d[d.length-1];d[d.length-1]=f+this.history.textAfter(b.node).slice(b.offset);b=this.history.nodeAfter(b.node);this.history.push(a.node,b,d);return{node:this.history.nodeBefore(b),offset:f.length}},getSearchCursor:function(a,b,d){return new q(this,a,b,d)},reindent:function(){this.container.firstChild&&this.indentRegion(null,this.container.lastChild)},reindentSelection:function(a){if(select.somethingSelected()){var b=
id = setTimeout(arguments.callee);
id = setTimeout(arguments.callee, 0);
function getSelected(){ var d = new Deferred(); if(location.hash === '#quick'){ var id = setTimeout(function(){ clearTimeout(id); var tab = window.tab; log(tab); if(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); } } else { id = setTimeout(arguments.callee); } }); } else { isPopup = true; chrome.tabs.getSelected(null, function(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ d.callback(tab); } else { window.close(); } }); } return d;};
});
}, 0);
function getSelected(){ var d = new Deferred(); if(location.hash === '#quick'){ var id = setTimeout(function(){ clearTimeout(id); var tab = window.tab; log(tab); if(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); } } else { id = setTimeout(arguments.callee); } }); } else { isPopup = true; chrome.tabs.getSelected(null, function(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ d.callback(tab); } else { window.close(); } }); } return d;};
if(location.hash === '#quick'){ var id = setTimeout(function(){ clearTimeout(id); var tab = window.tab; log(tab); if(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); } } else { id = setTimeout(arguments.callee, 0); } }, 0);
var query = queryHash(location.search); if(query['quick']){ var id = query['id']; var data = background.TBRL.Popup.data[id]; tab = data['tab']; ps = data['ps']; delete background.TBRL.Popup.data[id]; if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); }
function getSelected(){ var d = new Deferred(); if(location.hash === '#quick'){ var id = setTimeout(function(){ clearTimeout(id); var tab = window.tab; log(tab); if(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); } } else { id = setTimeout(arguments.callee, 0); } }, 0); } else { isPopup = true; chrome.tabs.getSelected(null, function(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ d.callback(tab); } else { window.close(); } }); } return d;};
tab = tab;
function getSelected(){ var d = new Deferred(); if(location.hash === '#quick'){ var id = setTimeout(function(){ clearTimeout(id); var tab = window.tab; log(tab); if(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ setTimeout(function(){ d.callback(tab); }, 0); } else { window.close(); } } else { id = setTimeout(arguments.callee, 0); } }, 0); } else { isPopup = true; chrome.tabs.getSelected(null, function(tab){ if(background.TBRL.Service.isEnableSite(tab.url)){ d.callback(tab); } else { window.close(); } }); } return d;};
};
}
function getSelected(){ var d = new Deferred(); chrome.tabs.getSelected(null, function(tab){ d.callback(tab); }); return d;};
getStatistics: function () { return result.stats || {}; }
getStatistics: function () { return result.stats || {}; },
getStatistics: function () { return result.stats || {}; }
getStatus: function() { try { return this.transport.status || 0; } catch (e) { return 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])*?\*\
getStatus: function() { try { return this.transport.status || 0; } catch (e) { return 0 } },
getStatusText: function() { try { return this.transport.statusText || ''; } catch (e) { return '' } },
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])*?\*\
getStatusText: function() { try { return this.transport.statusText || ''; } catch (e) { return '' } },
Element.Methods.getStyle = function(element, style) { element = $(element); style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); var value = element.style[style]; if (!value && element.currentStyle) value = element.currentStyle[style]; if (style == 'opacity') { if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) if (value[1]) return parseFloat(value[1]) / 100; return 1.0; } if (value == 'auto') { if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none')) return element['offset' + style.capitalize()] + 'px'; return null; } return value; };
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])*?\*\
Element.Methods.getStyle = function(element, style) { element = $(element); style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); var value = element.style[style]; if (!value && element.currentStyle) value = element.currentStyle[style]; if (style == 'opacity') { if (value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/)) if (value[1]) return parseFloat(value[1]) / 100; return 1.0; } if (value == 'auto') { if ((style == 'width' || style == 'height') && (element.getStyle('display') != 'none')) return element['offset' + style.capitalize()] + 'px'; return null; } return value; };
if (index != undefined)
if (index != null)
getTab: function (index) { if (index != undefined) return config.tabbrowser.mTabs[index]; else return config.tabbrowser.mCurrentTab; },
try{ return JSON.parse(unescapeHTML(res.responseText.extract(RegExp('^' + part + ' ?= ?(.+);$', 'm'), 1))) || []; }catch(e){ return [];
return $X('id("save-' + part + '-tags")
function getTags(part){ try{ return JSON.parse(unescapeHTML(res.responseText.extract(RegExp('^' + part + ' ?= ?(.+);$', 'm'), 1))) || []; }catch(e){ return []; } }
}
function getTags(part){ try{ return JSON.parse(unescapeHTML(res.responseText.extract(RegExp('^' + part + ' ?= ?(.+);$', 'm'), 1))) || []; }catch(e){ return []; } }
getTransport: function() { return Try.these( function() {return new XMLHttpRequest()}, function() {return new ActiveXObject('Msxml2.XMLHTTP')}, function() {return new ActiveXObject('Microsoft.XMLHTTP')} ) || false; },
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])*?\*\
getTransport: function() { return Try.these( function() {return new XMLHttpRequest()}, function() {return new ActiveXObject('Msxml2.XMLHTTP')}, function() {return new ActiveXObject('Microsoft.XMLHTTP')} ) || false; },
Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path);
Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec + "!/" + path, null, null);
getURI = function getURI(path) Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path);
thisRef.generateUserDropdownOptions();
this.getUsers = function() { var thisRef = this; var _Settings = this.Settings.Users; // Shortcut // "getData" function converts data given by ajax request onto // lkfw.searchable.list plugin readable format // Arguments: // data - object returned by ajax call var getData = function(data) { thisRef.Data.mem.users = _Settings.translateData(data); if (!(this.Data.user || $.bbq.getState('user'))) thisRef.drawUsers(); } // Get the users list from ajax call this.Data.ajax_getData(_Settings.dataURL, {}, getData, function(){}); };
this.Data.ajax_getData('usersReq', _Settings.dataURL, {}, getData, function(){});
this.Data.ajax_getData('usersReq', _Settings.dataURL, _Settings.dataURL_params(this.Data), getData, function(){});
this.getUsers = function() { var thisRef = this; var _Settings = this.Settings.Users; // Shortcut // "getData" function converts data given by ajax request onto // lkfw.searchable.list plugin readable format // Arguments: // data - object returned by ajax call var getData = function(data) { thisRef.Data.mem.users = _Settings.translateData(data); thisRef.generateUserDropdownOptions(); if (!(this.Data.user || $.bbq.getState('user'))) thisRef.drawUsers(); } // Get the users list from ajax call this.Data.ajax_getData('usersReq', _Settings.dataURL, {}, getData, function(){}); };
memo.push({ name : tag, frequency : tags[tag] });
if(tag){ memo.push({ name : tag, frequency : tags[tag] }); }
getUserTags : function(user){ return this.getCurrentUser(user).addCallback(function(user){ // 同期でエラーが起きないようにする return succeed().addCallback(function(){ return request('http://feeds.delicious.com/v2/json/tags/' + user); }).addCallback(function(res){ var tags = JSON.parse(res.responseText); return Object.keys(tags).reduce(function(memo, tag){ memo.push({ name : tag, frequency : tags[tag] }); return memo; }, []); }); }); },
title:__("template manager"), buttons:{}
title:__("template manager")
function getUtrModels(){ var optionsTM ={ height:450, width:700, hide:'explode', modal : false, resizable: false, title:__("template manager"), buttons:{} }; // open the dialog $("#utrTemplateManager").dialog(open,optionsTM); $("#txtUtrName").focus(); options={ type: "POST", url: "../classes/class.TReg_VirtualTable.php", data: { op:"getUtrModels" }, dataType:"json", success: function(msg){ //get the new UTR table listUtr = msg; //alert (msg); //preview the list in the div $("#utrTemplateModelList").html(""); for (i in listUtr){ cl = listUtr[i]; content = '<input id="'+i+'" class= "utrTemplate" type="button" value="'+i+'" name ="cl.propertySourceUri " /></input>'; $("#utrTemplateModelList").append(content); } //close the window //$("#propertyBinding").hide(); //utrIntro(); } }; $.ajax(options);}
getValue: function(element) { element = $(element); var method = element.tagName.toLowerCase(); return Form.Element.Serializers[method](element); },
var Prototype={Version:"1.6.1",Browser:(function(){var b=navigator.userAgent;var a=Object.prototype.toString.call(window.opera)=="[object Opera]";return{IE:!!window.attachEvent&&!a,Opera:a,WebKit:b.indexOf("AppleWebKit/")>-1,Gecko:b.indexOf("Gecko")>-1&&b.indexOf("KHTML")===-1,MobileSafari:/Apple.*Mobile.*Safari/.test(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])*?\*\
getValue: function(element) { element = $(element); var method = element.tagName.toLowerCase(); return Form.Element.Serializers[method](element); },
function getVisualizationVariables(bindingElements, bindingTypes)
function getVisualizationVariables(bindingElements, bindings)
function getVisualizationVariables(bindingElements, bindingTypes){ var variables = new Array(); for (var i = 0; i < bindingElements.length; i++) variables = variables.concat(getBindingVariables(bindingElements[i], bindingTypes[i])); return variables;}
for (var i = 0; i < bindingElements.length; i++) variables = variables.concat(getBindingVariables(bindingElements[i], bindingTypes[i]));
for (var i in bindingElements) { var binding = objectByType(bindingElements[i].bindingType, bindings); variables = variables.concat(getBindingVariables(bindingElements[i].element, binding)); }
function getVisualizationVariables(bindingElements, bindingTypes){ var variables = new Array(); for (var i = 0; i < bindingElements.length; i++) variables = variables.concat(getBindingVariables(bindingElements[i], bindingTypes[i])); return variables;}
getWidth: function() { return this.getDimensions().width; },
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])*?\*\
getWidth: function() { return this.getDimensions().width; },
isEmptyObject:function(a){for(var b in a)return false;return true},noop:function(){},globalEval:function(a){if(a&&Qa.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,i=a.length,j=i===w||c.isFunction(a);
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
isEmptyObject:function(a){for(var b in a)return false;return true},noop:function(){},globalEval:function(a){if(a&&Qa.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,i=a.length,j=i===w||c.isFunction(a);
if (aPos[1] != 12) { _Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL(); }
_Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL();
this.gotoTask_click = function(el) { var _Settings = this.Settings.Mains; // Shortcut var aPos = this.tasksTable[0].fnGetPosition(el); //12th column is the monitoring link - in that case we want to open the link, not to go to subjobs if (aPos[1] != 12) { _Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL(); } };
_Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL();
if (aPos[1] != 12) { _Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL(); }
this.gotoTask_click = function(el) { var _Settings = this.Settings.Mains; // Shortcut var aPos = this.tasksTable[0].fnGetPosition(el); // setup model _Settings.setupUserParams(this.Data, el, aPos); this.Data.or = []; this.Data.sorting = []; this.Data.p = 1; this.Data.noreload = false; this.setupURL(); };
select.selectionTopNode(this.container,true),d=select.selectionTopNode(this.container,false);b===false||d===false||this.indentRegion(b,d,a)}else this.indentAtCursor(a)},grabKeys:function(a,b){this.frozen=a;this.keyFilter=b},ungrabKeys:function(){this.frozen="leave"},setParser:function(a,b){e.Parser=window[a];(b=b||this.options.parserConfig)&&e.Parser.configure&&e.Parser.configure(b);if(this.container.firstChild){forEach(this.container.childNodes,function(d){if(d.nodeType!=3)d.dirty=true});this.addDirtyNode(this.firstChild);
b,c){this.editor.replaceChars(a,b,c)},getSearchCursor:function(a,b,c){return this.editor.getSearchCursor(a,b,c)},undo:function(){this.editor.history.undo()},redo:function(){this.editor.history.redo()},historySize:function(){return this.editor.history.historySize()},clearHistory:function(){this.editor.history.clear()},grabKeys:function(a,b){this.editor.grabKeys(a,b)},ungrabKeys:function(){this.editor.ungrabKeys()},setParser:function(a,b){this.editor.setParser(a,b)},setSpellcheck:function(a){this.win.document.body.spellcheck=
select.selectionTopNode(this.container,true),d=select.selectionTopNode(this.container,false);b===false||d===false||this.indentRegion(b,d,a)}else this.indentAtCursor(a)},grabKeys:function(a,b){this.frozen=a;this.keyFilter=b},ungrabKeys:function(){this.frozen="leave"},setParser:function(a,b){e.Parser=window[a];(b=b||this.options.parserConfig)&&e.Parser.configure&&e.Parser.configure(b);if(this.container.firstChild){forEach(this.container.childNodes,function(d){if(d.nodeType!=3)d.dirty=true});this.addDirtyNode(this.firstChild);
0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,i=a.length;e<i;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,i=0,j=a.length;i<j;i++){e=b(a[i],i,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,i=a.length;e<i;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,i=0,j=a.length;i<j;i++){e=b(a[i],i,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b===
gsub: function(pattern, replacement) { var result = '', source = this, match; replacement = arguments.callee.prepareReplacement(replacement); while (source.length > 0) { if (match = source.match(pattern)) { result += source.slice(0, match.index); result += String.interpret(replacement(match)); source = source.slice(match.index + match[0].length); } else { result += source, source = ''; } } return result; },
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])*?\*\
gsub: function(pattern, replacement) { var result = '', source = this, match; replacement = arguments.callee.prepareReplacement(replacement); while (source.length > 0) { if (match = source.match(pattern)) { result += source.slice(0, match.index); result += String.interpret(replacement(match)); source = source.slice(match.index + match[0].length); } else { result += source, source = ''; } } return result; },
if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode())
else
MyanmarConverterExtension.guessConverterForNode = function(node, pageConverter){ var nodeFontFamily = window.getComputedStyle(node.parentNode, null).fontFamily; var matchIndex = -1; var nodeConverter = null; var bestFreq = 0; // take the converter matching the font in the style with the lowest index just in case the web // page actually mixed different fonts in the same style! for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } // it is quite common for short Zawgyi phrases not to use Mon, Karen, Shan codes, so need to // change for any characters in Myanmar code range if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || (pageConverter == testConv && pseudoFreq == uniFreq)) && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } //if (nodeConverter == null) // MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;}
var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || (pageConverter == testConv && pseudoFreq == uniFreq)) && pseudoFreq > bestFreq)
if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode())
MyanmarConverterExtension.guessConverterForNode = function(node, pageConverter){ var nodeFontFamily = window.getComputedStyle(node.parentNode, null).fontFamily; var matchIndex = -1; var nodeConverter = null; var bestFreq = 0; // take the converter matching the font in the style with the lowest index just in case the web // page actually mixed different fonts in the same style! for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } // it is quite common for short Zawgyi phrases not to use Mon, Karen, Shan codes, so need to // change for any characters in Myanmar code range if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || (pageConverter == testConv && pseudoFreq == uniFreq)) && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } //if (nodeConverter == null) // MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;}
nodeConverter = testConv; bestFreq = pseudoFreq;
var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || ((pageConverter == testConv) && (pseudoFreq == uniFreq))) && (pseudoFreq > bestFreq)) { nodeConverter = testConv; bestFreq = pseudoFreq; }
MyanmarConverterExtension.guessConverterForNode = function(node, pageConverter){ var nodeFontFamily = window.getComputedStyle(node.parentNode, null).fontFamily; var matchIndex = -1; var nodeConverter = null; var bestFreq = 0; // take the converter matching the font in the style with the lowest index just in case the web // page actually mixed different fonts in the same style! for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } // it is quite common for short Zawgyi phrases not to use Mon, Karen, Shan codes, so need to // change for any characters in Myanmar code range if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || (pageConverter == testConv && pseudoFreq == uniFreq)) && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } //if (nodeConverter == null) // MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;}
MyanmarConverterExtension.guessConverterForNode = function(node)
MyanmarConverterExtension.guessConverterForNode = function(node, pageConverter)
MyanmarConverterExtension.guessConverterForNode = function(node){ var nodeFontFamily = window.getComputedStyle(node.parentNode, null).fontFamily; var matchIndex = -1; var nodeConverter = null; var bestFreq = 0; // take the converter matching the font in the style with the lowest index just in case the web // page actually mixed different fonts in the same style! for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } // it is quite common for short Zawgyi phrases not to use Mon, Karen, Shan codes, so need to // change for any characters in Myanmar code range if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (pseudoFreq > uniFreq && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } if (nodeConverter == null) MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;}
for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (pseudoFreq > uniFreq && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } if (nodeConverter == null) MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;
for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (((pseudoFreq > uniFreq) || (pageConverter == testConv && pseudoFreq == uniFreq)) && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } if (nodeConverter == null) MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;
MyanmarConverterExtension.guessConverterForNode = function(node){ var nodeFontFamily = window.getComputedStyle(node.parentNode, null).fontFamily; var matchIndex = -1; var nodeConverter = null; var bestFreq = 0; // take the converter matching the font in the style with the lowest index just in case the web // page actually mixed different fonts in the same style! for (var i = 0; i < MyanmarConverterExtension.legacyFonts.length; i++) { var testConv = tlsMyanmarConverters[MyanmarConverterExtension.legacyFonts[i].toLowerCase()]; var testIndex = nodeFontFamily.indexOf(MyanmarConverterExtension.legacyFonts[i]); if (testIndex > -1 && (matchIndex == -1 || testIndex < matchIndex)) { nodeConverter = testConv; matchIndex = testIndex; } // it is quite common for short Zawgyi phrases not to use Mon, Karen, Shan codes, so need to // change for any characters in Myanmar code range if (node.nodeValue.match("[\u1000-\u109F]") && testConv.isPseudoUnicode()) { var uniFreq = testConv.matchFrequency(node.nodeValue, true); var pseudoFreq = testConv.matchFrequency(node.nodeValue, false); if (pseudoFreq > uniFreq && pseudoFreq > bestFreq) { nodeConverter = testConv; bestFreq = pseudoFreq; } } } if (nodeConverter == null) MyanmarConverterExtension._trace("No Converter matched: " + node.nodeValue); return nodeConverter;}
var prefix = ENV.getCwd();
var prefix = removeTrailingSlash(ENV.getCwd());
function guessModulePath(pathString) { if(pathString.charAt(0) == '.') { var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } var prefix = ENV.getCwd(); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } if (prefix && prefix.charAt(prefix.length - 1) != '/') { prefix += '/'; } return [{filePath: prefix + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { var path = jsio.path[baseMod]; if(path.charAt(path.length - 1) != '/') { path += '/'; } return [{filePath: path + modPath + '.js'}]; } var out = []; var paths = typeof jsio.path.__default__ == 'string' ? [jsio.path.__default__] : jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = paths[i]; if(path.length && path.charAt(path.length - 1) != '/') { path += '/'; } out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
if (prefix && prefix.charAt(prefix.length - 1) != '/') { prefix += '/'; } return [{filePath: prefix + pathString.substring(i + 1).split('.').join('/') + '.js'}];
return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}];
function guessModulePath(pathString) { if(pathString.charAt(0) == '.') { var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } var prefix = ENV.getCwd(); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } if (prefix && prefix.charAt(prefix.length - 1) != '/') { prefix += '/'; } return [{filePath: prefix + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { var path = jsio.path[baseMod]; if(path.charAt(path.length - 1) != '/') { path += '/'; } return [{filePath: path + modPath + '.js'}]; } var out = []; var paths = typeof jsio.path.__default__ == 'string' ? [jsio.path.__default__] : jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = paths[i]; if(path.length && path.charAt(path.length - 1) != '/') { path += '/'; } out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
var path = jsio.path[baseMod]; if(path.charAt(path.length - 1) != '/') { path += '/'; } return [{filePath: path + modPath + '.js'}];
return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}];
function guessModulePath(pathString) { if(pathString.charAt(0) == '.') { var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } var prefix = ENV.getCwd(); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } if (prefix && prefix.charAt(prefix.length - 1) != '/') { prefix += '/'; } return [{filePath: prefix + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { var path = jsio.path[baseMod]; if(path.charAt(path.length - 1) != '/') { path += '/'; } return [{filePath: path + modPath + '.js'}]; } var out = []; var paths = typeof jsio.path.__default__ == 'string' ? [jsio.path.__default__] : jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = paths[i]; if(path.length && path.charAt(path.length - 1) != '/') { path += '/'; } out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
var path = paths[i]; if(path.length && path.charAt(path.length - 1) != '/') { path += '/'; }
var path = ensureHasTrailingSlash(paths[i]);
function guessModulePath(pathString) { if(pathString.charAt(0) == '.') { var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } var prefix = ENV.getCwd(); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } if (prefix && prefix.charAt(prefix.length - 1) != '/') { prefix += '/'; } return [{filePath: prefix + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { var path = jsio.path[baseMod]; if(path.charAt(path.length - 1) != '/') { path += '/'; } return [{filePath: path + modPath + '.js'}]; } var out = []; var paths = typeof jsio.path.__default__ == 'string' ? [jsio.path.__default__] : jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = paths[i]; if(path.length && path.charAt(path.length - 1) != '/') { path += '/'; } out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } var prefix = removeTrailingSlash(ENV.getCwd()); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}];
var prefix = './', i = 0; while (pathString.charAt(++i) == '.') { prefix += '../'; } return [{filePath: prefix + pathString.substring(i).split('.').join('/') + '.js'}];
function guessModulePath(pathString) { // resolve relative paths if(pathString.charAt(0) == '.') { // count the number of dots var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } // remove one path segment for each dot from the cwd var prefix = removeTrailingSlash(ENV.getCwd()); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } // resolve absolute paths with respect to jsio packages/ var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}]; } var out = [], paths = jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = ensureHasTrailingSlash(paths[i]); out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
if (baseMod in jsio.path) { return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}];
if (baseMod in jsio.__path) { return [{filePath: addEndSlash(jsio.__path[baseMod]) + modPath + '.js'}];
function guessModulePath(pathString) { // resolve relative paths if(pathString.charAt(0) == '.') { // count the number of dots var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } // remove one path segment for each dot from the cwd var prefix = removeTrailingSlash(ENV.getCwd()); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } // resolve absolute paths with respect to jsio packages/ var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}]; } var out = [], paths = jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = ensureHasTrailingSlash(paths[i]); out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
paths = jsio.path.__default__;
paths = jsio.__path.__default__;
function guessModulePath(pathString) { // resolve relative paths if(pathString.charAt(0) == '.') { // count the number of dots var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } // remove one path segment for each dot from the cwd var prefix = removeTrailingSlash(ENV.getCwd()); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } // resolve absolute paths with respect to jsio packages/ var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}]; } var out = [], paths = jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = ensureHasTrailingSlash(paths[i]); out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
var path = ensureHasTrailingSlash(paths[i]);
var path = addEndSlash(paths[i]);
function guessModulePath(pathString) { // resolve relative paths if(pathString.charAt(0) == '.') { // count the number of dots var i = 0; while(pathString.charAt(i + 1) == '.') { ++i; } // remove one path segment for each dot from the cwd var prefix = removeTrailingSlash(ENV.getCwd()); if (i) { prefix = prefix.split('/').slice(0, -i).join('/'); } return [{filePath: prefix + '/' + pathString.substring(i + 1).split('.').join('/') + '.js'}]; } // resolve absolute paths with respect to jsio packages/ var pathSegments = pathString.split('.'), baseMod = pathSegments[0], modPath = pathSegments.join('/'); if (baseMod in jsio.path) { return [{filePath: ensureHasTrailingSlash(jsio.path[baseMod]) + modPath + '.js'}]; } var out = [], paths = jsio.path.__default__; for (var i = 0, len = paths.length; i < len; ++i) { var path = ensureHasTrailingSlash(paths[i]); out.push({filePath: path + modPath + '.js', baseMod: baseMod, basePath: path}); } return out; }
this._trace(doc.location + ": encoding " + this.legacyFonts[i] + " f=" + f);
this._trace(doc.location + ": encoding " + this.legacyFonts[i] + " f=" + f + " ");
MyanmarConverterExtension.guessMyanmarEncoding = function(doc, testNode) { // try to guess the encoding, but ignore if the test text is too short if (testNode && testNode.textContent.length > 100) { var bestMatch = 0.90; var unicodeFreq = 0; if (! doc.tlsMyanmarEncoding) { doc.tlsMyanmarEncoding = "unicode"; } for (var i = 0; i < this.legacyFonts.length; i++) { var conv = tlsMyanmarConverters[this.legacyFonts[i].toLowerCase()]; if (i == 0) unicodeFreq = conv.matchFrequency(testNode.textContent, true); var f = conv.matchFrequency(testNode.textContent, false); if (f > bestMatch && f > unicodeFreq) { doc.tlsMyanmarEncoding = this.legacyFonts[i]; bestMatch = f; this._trace(doc.location + ": encoding " + this.legacyFonts[i] + " f=" + f); } else { this._trace(doc.location + ": no match for encoding " + this.legacyFonts[i] + " f=" + f + "uni freq =" + unicodeFreq); } } return doc.tlsMyanmarEncoding; } return null;};
var h = function(e){ if(!window[xname]){ return; } e = Ext.EventObject.setEvent(e); var t; if(o.delegate){ t = e.getTarget(o.delegate, el); if(!t){ return; } }else{ t = e.target; } if(o.stopEvent === true){ e.stopEvent(); } if(o.preventDefault === true){ e.preventDefault(); } if(o.stopPropagation === true){ e.stopPropagation(); } if(o.normalized === false){ e = e.browserEvent; } fn.call(scope || el, e, t, o); };
h: function() { return $f("H"); },
var h = function(e){ // prevent errors while unload occurring if(!window[xname]){ return; } e = Ext.EventObject.setEvent(e); var t; if(o.delegate){ t = e.getTarget(o.delegate, el); if(!t){ return; } }else{ t = e.target; } if(o.stopEvent === true){ e.stopEvent(); } if(o.preventDefault === true){ e.preventDefault(); } if(o.stopPropagation === true){ e.stopPropagation(); } if(o.normalized === false){ e = e.browserEvent; } fn.call(scope || el, e, t, o); };
function f(){for(;!c.lookAhead("?>")&&!c.endOfLine();)c.next();return{type:"comment",style:"php-comment"}}function g(l){var m="/*";for(l=l=="*";;){if(c.endOfLine())break;var r=c.next();if(r=="/"&&l){m=null;break}l=r=="*"}a(m);return{type:"comment",style:"php-comment"}}function h(l){for(var m=l,r=false;;){if(c.endOfLine())break;var u=c.next();if(u==l&&!r){m=null;break}r=u=="\\"&&!r}a(m);return{type:m==null?"string":"string_not_terminated",style:l=="'"?"php-string-single-quoted":"php-string-double-quoted"}}
r=f.addEventHandler(f,"resize",h,true);x=function(){o();r();if(k.updateNumbers==h)k.updateNumbers=null};h()}function g(){function h(n,z){q||(q=j.appendChild(document.createElement("DIV")));H&&H(q,z,n);t.push(q);t.push(n);A=q.offsetHeight+q.offsetTop;q=q.nextSibling}function o(){for(var n=0;n<t.length;n+=2)t[n].innerHTML=t[n+1];t=[]}function r(){if(!(!j.parentNode||j.parentNode!=k.lineNumbers)){for(var n=(new Date).getTime()+k.options.lineNumberTime;l;){for(h(B++,l.previousSibling);l&&!f.isBR(l);l=
function f(){for(;!c.lookAhead("?>")&&!c.endOfLine();)c.next();return{type:"comment",style:"php-comment"}}function g(l){var m="/*";for(l=l=="*";;){if(c.endOfLine())break;var r=c.next();if(r=="/"&&l){m=null;break}l=r=="*"}a(m);return{type:"comment",style:"php-comment"}}function h(l){for(var m=l,r=false;;){if(c.endOfLine())break;var u=c.next();if(u==l&&!r){m=null;break}r=u=="\\"&&!r}a(m);return{type:m==null?"string":"string_not_terminated",style:l=="'"?"php-string-single-quoted":"php-string-double-quoted"}}
this.optionValue = commandLine.handleFlagWithParam(name, false);
this.optionValue = commandLine.handleFlagWithParam(config.name, false);
handle: function (commandLine) { // TODO: handle remote launches differently? try { this.optionValue = commandLine.handleFlagWithParam(name, false); } catch (e) { dump(name + ": option '-" + name + "' requires an argument\n"); } },
dump(name + ": option '-" + name + "' requires an argument\n");
util.dump("option '-" + config.name + "' requires an argument\n");
handle: function (commandLine) { // TODO: handle remote launches differently? try { this.optionValue = commandLine.handleFlagWithParam(name, false); } catch (e) { dump(name + ": option '-" + name + "' requires an argument\n"); } },
let name = Components.classes["@dactyl.googlecode.com/base/dactyl"] .getService().wrappedJSObject.name;
handle: function (commandLine) { let name = Components.classes["@dactyl.googlecode.com/base/dactyl"] .getService().wrappedJSObject.name; // TODO: handle remote launches differently? try { this.optionValue = commandLine.handleFlagWithParam(name, false); } catch (e) { dump(name + ": option '-" + name + "' requires an argument\n"); } }
let name = Components.classes["@dactyl.googlecode.com/base/dactyl"] .getService().wrappedJSObject.name;
handle: function (commandLine) { // TODO: handle remote launches differently? try { this.optionValue = commandLine.handleFlagWithParam(name, false); } catch (e) { dump(name + ": option '-" + name + "' requires an argument\n"); } }