rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function get(id) obj.getElement ? obj.getElement(id) : document.getElementById(id);
function get(prefix, map, id) (obj.getElement || util.identity)(map[id] || document.getElementById(prefix + id));
addElement: function (obj) { const self = this; this.elements[obj.name] = obj; function get(id) obj.getElement ? obj.getElement(id) : document.getElementById(id); this.active.__defineGetter__(obj.name, function () self.activeGroup[obj.name][obj.name]); this.activeGroup.__defineGet...
memoize(this.statusbar, obj.name, function () get("dactyl-statusline-field-" + (obj.id || obj.name))); memoize(this.commandbar, obj.name, function () get("dactyl-" + (obj.id || obj.name)));
memoize(this.statusbar, obj.name, function () get("dactyl-statusline-field-", statusline.widgets, (obj.id || obj.name))); memoize(this.commandbar, obj.name, function () get("dactyl-", {}, (obj.id || obj.name)));
addElement: function (obj) { const self = this; this.elements[obj.name] = obj; function get(id) obj.getElement ? obj.getElement(id) : document.getElementById(id); this.active.__defineGetter__(obj.name, function () self.activeGroup[obj.name][obj.name]); this.activeGroup.__defineGet...
function addEndSlash(str) { return rexpEndSlash.test(str) ? str : str + '/'; }
addEndSlash: function(str) { return rexpEndSlash.test(str) ? str : str + '/'; },
function addEndSlash(str) { return rexpEndSlash.test(str) ? str : str + '/'; }
this.throwIfDisposed_();
activity.TimelineView.BarChart_.prototype.addEntry = function(opacity, duration) { this.throwIfDisposed_(); if (opacity == 0.0) { this.padToEndTime(this.endTime_ + duration); return; } /* * Now build the complete CSS style string. */ var style = [ 'opacity:', opacity.toFixed(2) ].join('...
this.throwIfDisposed();
activity.TimelineModel.Timeline.prototype.addEvent = function(event) { this.throwIfDisposed(); var listeners = this.getListeners(); for (var i = 0, len = listeners.length; i < len; i++) { listeners[i].onEvent(event); }};
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.XMLHttpReques...
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.XMLHttpReques...
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.XMLHttpReques...
this.throwIfDisposed();
activity.Listenable.prototype.addListener = function(listener) { this.throwIfDisposed(); this.listeners_.push(listener);};
Element.addMethods = function(methods) { var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag; if (!methods) { Object.extend(Form, Form.Methods); Object.extend(Form.Element, Form.Element.Methods); Object.extend(Element.Methods.ByTag, { "FORM": Object.clone(Form.Methods), "INPUT": Object.clone(Form.Eleme...
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(...
Element.addMethods = function(methods) { var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag; if (!methods) { Object.extend(Form, Form.Methods); Object.extend(Form.Element, Form.Element.Methods); Object.extend(Element.Methods.ByTag, { "FORM": Object.clone(Form.Methods), "INPUT": Obj...
arguments[1] = UTF8(prompt);
addMode: function (mode, prompt, action, tags) { this._hintModes[mode] = Hints.Mode.apply(Hints.Mode, arguments); },
var c=0;var found=false; for (c=0;c<TreeParents[field].length;c++) { if (TreeParents[field][c]==-100) {found=true;break;} } if (found==false) {c=TreeParents[field].length;}
var found = false;
function AddNode(field,nodeparent,nodeid,nodename,nodeclickable,nodechecked,nodeexpand) { //try to find an empty space first var c=0;var found=false; for (c=0;c<TreeParents[field].length;c++) { if (TreeParents[field][c]==-100) {found=true;break;} } if (found==false) {c=TreeParents[field].length;} TreeP...
TreeParents[field][c]=nodeparent; TreeID[field][c]=nodeid; TreeNames[field][c]=nodename; TreeExpand[field][c]=false; TreeClickable[field][c]=nodeclickable; TreeChecked[field][c]=nodechecked; TreeExpand[field][c]=nodeexpand;
for( var c = 0; c < TreeParents[field].length; c++ ) { if( TreeParents[field][c] == -100 ) { found = true; break; }
function AddNode(field,nodeparent,nodeid,nodename,nodeclickable,nodechecked,nodeexpand) { //try to find an empty space first var c=0;var found=false; for (c=0;c<TreeParents[field].length;c++) { if (TreeParents[field][c]==-100) {found=true;break;} } if (found==false) {c=TreeParents[field].length;} TreeP...
if( found == false ) { c = TreeParents[field].length; } TreeParents[field][c] = nodeparent; TreeID[field][c] = nodeid; TreeNames[field][c] = nodename; TreeExpand[field][c] = false; TreeClickable[field][c] = nodeclickable; TreeChecked[field][c] = nodechecked; TreeExpand[field][c] = false; }
function AddNode(field,nodeparent,nodeid,nodename,nodeclickable,nodechecked,nodeexpand) { //try to find an empty space first var c=0;var found=false; for (c=0;c<TreeParents[field].length;c++) { if (TreeParents[field][c]==-100) {found=true;break;} } if (found==false) {c=TreeParents[field].length;} TreeP...
jsio.__path[baseModule] = path;
this.__path[baseModule] = path;
this.addPath = function(path, baseModule) { if (baseModule) { jsio.__path[baseModule] = path; } else { jsio.__path.__default__.push(path); } }
jsio.__path.__default__.push(path);
this.__path.__default__.push(path);
this.addPath = function(path, baseModule) { if (baseModule) { jsio.__path[baseModule] = path; } else { jsio.__path.__default__.push(path); } }
jsio.path[baseModule] = path;
jsio.__path[baseModule] = path;
this.addPath = function(path, baseModule) { if (baseModule) { jsio.path[baseModule] = path; } else { jsio.path.__default__.push(path); } }
jsio.path.__default__.push(path);
jsio.__path.__default__.push(path);
this.addPath = function(path, baseModule) { if (baseModule) { jsio.path[baseModule] = path; } else { jsio.path.__default__.push(path); } }
$this.after('<div class="atd-ajax-load"></div>');
jQuery.fn.addProofreader = function(options) { this.id = 0; var parent = this; var opts = jQuery.extend({}, jQuery.fn.addProofreader.defaults, options); return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length =...
$this.parents('form').submit(function(event) {
$this.parents('form').submit(function(e) {
jQuery.fn.addProofreader = function(options) { this.id = 0; var parent = this; var opts = jQuery.extend({}, jQuery.fn.addProofreader.defaults, options); return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length =...
if (AtD.autoproofread == 1 && AtD.proofread_click_count <= 0){ e.preventDefault(); jQuery('.atd-ajax-load').css('height','16px'); AtD_check( id, node, AtD_submit_check_callback ); }
jQuery.fn.addProofreader = function(options) { this.id = 0; var parent = this; var opts = jQuery.extend({}, jQuery.fn.addProofreader.defaults, options); return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length =...
if (AtD.autoproofread == 1 && AtD.proofread_click_count == 0 && $this.val() != ""){
if (AtD.autoproofread != undefined && AtD.autoproofread == 1 && AtD.proofread_click_count <= 0 && $this.val() != ""){
jQuery.fn.addProofreader = function(options) { this.id = 0; var parent = this; var opts = jQuery.extend({}, jQuery.fn.addProofreader.defaults, options); return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length =...
AtD_check( id, node, AtD_submit_check_callback );
AtD_check( id, node );
jQuery.fn.addProofreader = function(options) { this.id = 0; var parent = this; var opts = jQuery.extend({}, jQuery.fn.addProofreader.defaults, options); return this.each(function() { $this = jQuery(this); if ($this.css('display') == 'none' || $this.attr('spellcheck') == false) return; if ($this.attr('id').length =...
this._stylesDidChange = this._deleteComboStyles(styles, nameOrStyles);
didChange = this._deleteComboStyles(styles, nameOrStyles);
addStyle: function(nameOrStyles, value) { // get the current hash of styles. This will extract the styles and // clone them if needed. This will get the actual styles hash so we can // edit it directly. var key, didChange = NO, styles = this.styles(); // simple form if (typeof nameOrStyles ==...
this._stylesDidChange = YES ;
didChange = YES ;
addStyle: function(nameOrStyles, value) { // get the current hash of styles. This will extract the styles and // clone them if needed. This will get the actual styles hash so we can // edit it directly. var key, didChange = NO, styles = this.styles(); // simple form if (typeof nameOrStyles ==...
if (didChange) this._stylesDidChange = YES;
addStyle: function(nameOrStyles, value) { // get the current hash of styles. This will extract the styles and // clone them if needed. This will get the actual styles hash so we can // edit it directly. var key, didChange = NO, styles = this.styles(); // simple form if (typeof nameOrStyles ==...
didChange = this._deleteComboStyles(styles, key);
addStyle: function(nameOrStyles, value) { // get the current hash of styles. This will extract the styles and // clone them if needed. This will get the actual styles hash so we can // edit it directly. var key, didChange = NO, styles = this.styles(); // simple form if (typeof nameOrStyle...
didChange = this._deleteComboStyles(styles, key);
didChange = didChange || this._deleteComboStyles(styles, key);
addStyle: function(nameOrStyles, value) { // get the current hash of styles. This will extract the styles and // clone them if needed. This will get the actual styles hash so we can // edit it directly. var key, didChange = NO, styles = this.styles(); // simple form if (typeof nameOrStyles ==...
if(urlData.hostname.length == 0) { urlData.hostnameExact=true; }
addUrl : function() { var urlData = new Object(); urlData.hostname = document.getElementById("myanmarConverter.options.urlHostname").value; urlData.hostnameExact = document.getElementById("myanmarConverter.options.urlHostnameExact").selected; urlData.pathname = document.getElementById...
if (urlData.hostname.length)
if (urlData.hostname.length || urlData.pathname.length)
addUrl : function() { var urlData = new Object(); urlData.hostname = document.getElementById("myanmarConverter.options.urlHostname").value; urlData.hostnameExact = document.getElementById("myanmarConverter.options.urlHostnameExact").selected; urlData.pathname = document.getElementById...
}).uniq()
}).uniq();
addUsageCommand: function (params) { commands.add(params.name, params.description, function (args) { let results = array(params.iterate(args)) .sort(function (a, b) String.localeCompare(a.name, b.name)); if (args.length) results =...
this._removeMap(mode, name, extra.matchingUrls);
this._removeMap(mode, name, map.matchingUrls);
addUserMap: function (modes, keys, description, action, extra) { keys = keys.map(this._expandLeader); extra = extra || {}; extra.user = true; let map = Map(modes, keys, description || "User defined mapping", action, extra); // remove all old mappings to this key sequence fo...
let map = Map(modes, keys, description || "User defined mapping", action, extra);
let map = Map(modes, keys, description || "User-defined mapping", action, extra);
addUserMap: function (modes, keys, description, action, extra) { keys = keys.map(this._expandLeader); extra = extra || {}; extra.user = true; let map = Map(modes, keys, description || "User defined mapping", action, extra); // remove all old mappings to this key sequence fo...
form.getForm().submit({
user.getForm().submit({
AddUserWindow = function(){ var user = new Ext.form.FormPanel({ title: 'User-Infomation', labelWidth: 120, width: 400, baseCls: 'x-plain', items: [ { fieldLabel: 'User-Name', xtype: 'textfield', name: 'user_name', anchor: '100%', allowBlank:false ...
alert('Add user failure.'); this.close();
if(!form.isValid()){ alert('Validate error'); }else{ alert('Add user failure.'); }
AddUserWindow = function(){ var user = new Ext.form.FormPanel({ title: 'User-Infomation', labelWidth: 120, width: 400, baseCls: 'x-plain', items: [ { fieldLabel: 'User-Name', xtype: 'textfield', name: 'user_name', anchor: '100%', allowBlank:false ...
refresh();
store.reload();
AddUserWindow = function(){ var user = new Ext.form.FormPanel({ title: 'User-Infomation', labelWidth: 120, width: 400, baseCls: 'x-plain', items: [ { fieldLabel: 'User-Name', xtype: 'textfield', name: 'user_name', anchor: '100%', allowBlank:false ...
this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){i...
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.ap...
this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){i...
after: function(element, node) { element.parentNode.insertBefore(node, element.nextSibling); },
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(...
after: function(element, node) { element.parentNode.insertBefore(node, element.nextSibling); },
After: function(element, content) { return Element.insert(element, {after:content}); }
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(...
After: function(element, content) { return Element.insert(element, {after:content}); }
text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(p,o,j,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(p,x,j);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(r,q){(e.context?c(e...
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, tex...
text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(p,o,j,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(p,x,j);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(r,q){(e.context?c(e...
_Cache.clear();
this.ajax_getData = function(url, params, fSuccess, fFailure) { var thisRef = this; currentUrl = window.location.toString() portIndex = currentUrl.indexOf('?port='); if (portIndex > -1) { port = '' isNumber = true; index = port...
dataType: "jsonp", jsonp: 'jsonp_callback',
dataType: (jsonp ? "jsonp" : "json"), jsonp: "jsonp_callback",
this.ajax_getData = function(url, params, fSuccess, fFailure) { var thisRef = this; currentUrl = window.location.toString() portIndex = currentUrl.indexOf('?port='); if (portIndex > -1) { port = '' isNumber = true; index = port...
var key = $.base64Encode($.param.querystring(url, params, 2)); var data = _Cache.get(key); if (data) { fSuccess(data, obj); } else { ajaxAnimation.show(); $.ajax({ type: "GET", url: url, async: true, data: params, dataType: "jsonp", jsonp: 'jsonp_callback', success: function(data) { fSuccess(data, obj); ajaxAnimation....
ajaxAnimation.show(); $.ajax({ type: "GET", url: url, async: true, data: params, dataType: (jsonp ? "jsonp" : "json"), jsonp: "jsonp_callback", success: function(data) { fSuccess(data, obj); ajaxAnimation.hide(); }, error: function() { ajaxAnimation.hide(); fFailure(obj); } });
this.ajax_getData_charts = function(url, params, fSuccess, fFailure, obj) { var thisRef = this; currentUrl = window.location.toString() portIndex = currentUrl.indexOf('?port='); if (portIndex > -1) { port = '' isNumber = true; ...
async: true,
this.ajax_getData_charts = function(url, params, fSuccess, fFailure, obj) { var thisRef = this; currentUrl = window.location.toString() portIndex = currentUrl.indexOf('?port='); if (portIndex > -1) { port = '' isNumber = true; ...
})(win || window.content);
})(win || content);
allFrames: function (win, focusedFirst) { let frames = []; (function rec(frame) { if (frame.document.body instanceof HTMLBodyElement) frames.push(frame); Array.forEach(frame.frames, rec); })(win || window.content); if (focusedFirst) return ...
ancestors: function(element) { return $(element).recursivelyCollect('parentNode'); },
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(...
ancestors: function(element) { return $(element).recursivelyCollect('parentNode'); },
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(sa(a[0])||sa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c...
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c...
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(sa(a[0])||sa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c...
c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(L("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(...
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[...
c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(L("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(...
SC.View.runCallback(animation.callback);
if (options.callback) SC.View.runCallback(options.callback);
animate: function(key, value, options) { if (typeof options === SC.T_NUMBER) options = { duration: options }; if (options.timing) { if (SC.typeOf(options.timing) != SC.T_STRING) { options.timing = "cubic-bezier("+options.timing[0]+", "+options.timing[1]+", "+ ...
null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?function(a){va...
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[...
null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?function(a){va...
any: function(iterator, context) { iterator = iterator || Prototype.K; var result = false; this.each(function(value, index) { if (result = !!iterator.call(context, value, index)) throw $break; }); return result; },
Ext.DomHelper=function(){var m=null;var g=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;var b=/^table|tbody|tr|td$/i;var a=function(w){if(typeof w=="string"){return w}var q="";if(Ext.isArray(w)){for(var u=0,r=w.length;u<r;u++){q+=a(w[u])}return q}if(!w.tag){w.tag="div"}q+="<"+w.tag;for(var p ...
any: function(iterator, context) { iterator = iterator || Prototype.K; var result = false; this.each(function(value, index) { if (result = !!iterator.call(context, value, index)) throw $break; }); return result; },
var fileUrl = 'http:
var fileUrl = 'http: + type + '/' + branch + '/' + file.filename;
function appendFile(type, revision, file) { var platform = getPlatform(file); var platformDesc = descriptions[type][platform]; var size = "" + Math.round(file.size/1024.0/1024.0*100.0)/100.0 + " MB"; var fileUrl = 'http://builds.appcelerator.com.s3.amazonaws.com/' + type + '/' + file.filename; var row = $('<tr/>'...
this.items[this.selectedIndex].style.backgroundColor = '#ccf0ff';
addElementClass(this.items[this.selectedIndex], "selected");
appendItems: function(cands){ if(cands.length > this.maxRows){ cands.length = this.maxRows; } this.cands = cands; this.items = cands.map(function(item){ var li = this.createItem(item) this.element.appendChild(li); return li; }, this); this.rowCount = cands.length; this.selecte...
function applyPreprocessors(moduleDef, names, opts) {
function applyPreprocessors(path, moduleDef, names, opts) {
function applyPreprocessors(moduleDef, names, opts) { for (var i = 0, len = names.length; i < len; ++i) { p = getPreprocessor(names[i]); if (p) { moduleDef.src = p(moduleDef.src, opts); } } }
moduleDef.src = p(moduleDef.src, opts);
p(path, moduleDef, opts);
function applyPreprocessors(moduleDef, names, opts) { for (var i = 0, len = names.length; i < len; ++i) { p = getPreprocessor(names[i]); if (p) { moduleDef.src = p(moduleDef.src, opts); } } }
return (b.frequency != a.frequency)?
return (b.frequency !== a.frequency)?
arrangeSuggestions: function(res){ var pops = res.popular || []; var recos = res.recommended || []; var recoTable = recos.reduce(function(memo, i){ memo[i.toLowerCase()] = i; return memo; }, {}); var tags = (res.tags || []).sort(function(a, b){ return (b.frequency != a.frequency)? ...
memo[i.toLowerCase()] = i;
if(i) memo[i.toLowerCase()] = i;
arrangeSuggestions: function(res){ var pops = res.popular || []; var recos = res.recommended || []; var recoTable = recos.reduce(function(memo, i){ memo[i.toLowerCase()] = i; return memo; }, {}); var tags = (res.tags || []).sort(function(a, b){ return (b.frequency !== a.frequency)? ...
doctest._reprTrackRestore(restorer);
doctest.arrayRepr = function (obj, indent, maxLen) { var s = "["; for (var i=0; i<obj.length; i++) { s += doctest.repr(obj[i], indent, maxLen); if (i != obj.length-1) { s += ", "; } } s += "]"; if (s.length > (maxLen + indent.length)) { return doctest.multilineArrayRepr(obj, indent, maxLen); } r...
if( ((typeof notExpected == "object")&&((typeof actual == "object")))&& (this._objPropEq(notExpected, actual)) ){ throw new doh._AssertFailure("assertNotEqual() failed: not expected |"+notExpected+"| but got |"+actual+"|", hint);
if( ((typeof notExpected == "object")&&((typeof actual == "object"))) ){ var isequal = false; try{ isequal = this._objPropEq(notExpected, actual); }catch(e){ if(!(e instanceof doh._AssertFailure)){ throw e; } } if(isequal){ throw new doh._AssertFailure("assertNotEqual() failed: not expected |"+notExpected+"| but got |"...
doh.isNot = doh.assertNotEqual = function(/*Object*/ notExpected, /*Object*/ actual, /*String?*/ hint){ // summary: // are the passed notexpected and actual objects/values deeply // not equivalent? // Compare undefined always with three equal signs, because undefined==null // is true, but undefined===null is false. ...
function AtD_check(form_id, node, callback) {
function AtD_check(id, node, callback) {
function AtD_check(form_id, node, callback) { AtD_ajax_load('show'); AtD.check(form_id, { success: function() { callback(0, form_id, node); }, ready: function(count) { callback(count, form_id, node); }, error: function() { callback(-1, form_id, node); } });}
AtD.check(form_id, { success: function() { callback(0, form_id, node);
jQuery.ajax({ type : "POST", url : AtD.rpc + '?url=/checkDocument&lang=' + AtD.lang, data : 'key=' + AtD.api_key + '&data=' + jQuery('#'+id).val(), format : 'raw', dataType : (jQuery.browser.msie) ? "text" : "xml", error : function(XHR, status, error) { AtD_update_post(id);
function AtD_check(form_id, node, callback) { AtD_ajax_load('show'); AtD.check(form_id, { success: function() { callback(0, form_id, node); }, ready: function(count) { callback(count, form_id, node); }, error: function() { callback(-1, form_id, node); } });}
ready: function(count) { callback(count, form_id, node); }, error: function() { callback(-1, form_id, node);
success : function(data) { var xml; if (typeof data == "string") { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.loadXML(data); } else { xml = data; } AtD_ajax_load('hide'); if (AtD.core.hasErrorMessage(xml)) { AtD_update_post(id); } var results = AtD.core.processXML(xml); if (results.count > 0) {...
function AtD_check(form_id, node, callback) { AtD_ajax_load('show'); AtD.check(form_id, { success: function() { callback(0, form_id, node); }, ready: function(count) { callback(count, form_id, node); }, error: function() { callback(-1, form_id, node); } });}
url : AtD.rpc + '?url=/checkDocument&lang=' + AtD.lang, data : 'key=' + AtD.api_key + '&data=' + jQuery('#'+id).val(),
url : AtD.rpc, data : 'data=' + jQuery('#'+id).val(),
function AtD_check(id, node, callback) { AtD_ajax_load('show'); jQuery.ajax({ type : "POST", url : AtD.rpc + '?url=/checkDocument&lang=' + AtD.lang, data : 'key=' + AtD.api_key + '&data=' + jQuery('#'+id).val(), format : 'raw', dataType : (jQuery.browser.msie) ? "text" : "xml", error : function(XHR, status, er...
AtD.checkTextArea(id, node.attr('id'), jQuery.fn.addProofreader.defaults.edit_text_content);
node.click();
function AtD_check(id, node, callback) { AtD_ajax_load('show'); jQuery.ajax({ type : "POST", url : AtD.rpc + '?url=/checkDocument&lang=' + AtD.lang, data : 'key=' + AtD.api_key + '&data=' + jQuery('#'+id).val(), format : 'raw', dataType : (jQuery.browser.msie) ? "text" : "xml", error : function(XHR, status, er...
atd_show_phrases( jQuery( '#atd_ignored_phrases' ).val().split( /,/g ) );
if(jQuery( '#atd_ignored_phrases' ).val()) atd_show_phrases( jQuery( '#atd_ignored_phrases' ).val().split( /,/g ) );
function atd_ignore_init() { jQuery( '#atd_message' ).hide(); atd_show_phrases( jQuery( '#atd_ignored_phrases' ).val().split( /,/g ) );}
function AtD_update_post( form_id ) { AtD.proofread_click_count = 1; jQuery('#'+form_id).parents('form').submit();
function AtD_update_post( id ) { AtD.proofread_click_count = 2; jQuery('#'+id).parents('form').submit();
function AtD_update_post( form_id ) { AtD.proofread_click_count = 1; /* Just increase the count to prevent a loop */ jQuery('#'+form_id).parents('form').submit();}
if ($('#edit-vertical_tabs_example-enabled', context).attr('checked')) { return Drupal.checkPlain($('#edit-vertical_tabs_example-custom-setting', context).val());
if ($('#edit-vertical-tabs-example-enabled', context).attr('checked')) { return Drupal.checkPlain($('#edit-vertical-tabs-example-custom-setting', context).val());
attach: function (context) { // Use the fieldset class to identify the vertical tab element $('fieldset.vertical_tabs_example-custom-form', context).setSummary(function (context) { // Depending on the checkbox status, the settings will be customized, so // update the summary with the custom setting te...
return Drupal.t('Using default.');
return Drupal.t('Using default');
attach: function (context) { // Use the fieldset class to identify the vertical tab element $('fieldset.vertical_tabs_example-custom-form', context).setSummary(function (context) { // Depending on the checkbox status, the settings will be customized, so // update the summary with the custom setting te...
$('fieldset#edit-path', context).drupalSetSummary(function (context) { var path = $('#edit-path-alias').val(); var automatic = $('#edit-path-pathauto-perform-alias').attr('checked');
$('fieldset.path-form', context).drupalSetSummary(function (context) { var path = $('.form-item-path-alias input').val(); var automatic = $('.form-item-path-pathauto input').attr('checked');
attach: function (context) { $('fieldset#edit-path', context).drupalSetSummary(function (context) { var path = $('#edit-path-alias').val(); var automatic = $('#edit-path-pathauto-perform-alias').attr('checked'); if (automatic) { return Drupal.t('Automatic alias'); } if (path) { ...
-1}else this.value=t}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){...
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!...
-1}else this.value=t}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){...
if (typeof value === "undefined" && typeof key === "string") return jQuery.fn.html.apply(this, arguments);
if (typeof value === "undefined" && typeof key === "string") { if (this.length < 1) return false; var buffer = jQuery.Buffer.bufferForElement(this[0]); return buffer.attr(key); }
attr: function(key, value) { // first, handle the get-case if (typeof value === "undefined" && typeof key === "string") return jQuery.fn.html.apply(this, arguments); // now, buffer the command. var len = this.length, i; for (i = 0; i < len; i++) { var buffer = jQuery.Buffer.bufferForElement(th...
callLater(0.1, Form.resize);
callLater(0.5, Form.resize);
audio: function(){ var ps = this.ps; var title = this.savers['item'] = this.title = new Title(ps); var link = this.savers['itemUrl'] = this.link = new Audio(ps); var tags = this.savers['tags'] = this.tags = new Tags(ps, true); var desc = this.savers['description'] = this.desc = new Desc(ps, true); ...
context.completions = config.autocommands;
context.completions = Iterator(config.autocommands);
completion.autocmdEvent = function autocmdEvent(context) { context.completions = config.autocommands; };
dactyl.trapErrors(function () {
dactyl.trapErrors(function _autocompleteTell() {
this._autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) { dactyl.trapErrors(function () { if (!events.feedingKeys && self._completions && options["autocomplete"].length) { self._completions.complete(true, false); if (self._c...
location.hash = '';
location.hash = '#doctest-testall';
doctest.autoSetup = function (parent) { var tags = doctest.getElementsByTagAndClassName('div', 'test', parent); // First we'll make sure everything has an ID var tagsById = {}; for (var i=0; i<tags.length; i++) { var tagId = tags[i].getAttribute('id'); if (! tagId) { tagId = 'test-' + (++doctest.autoSetu...
this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",k,m=0;g[m];m++){k=g[m];if(k.nodeType===3||k.node...
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0...
this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",k,m=0;g[m];m++){k=g[m];if(k.nodeType===3||k.node...
h){return"\\"+(h-0+1)}))}var B=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){B=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for...
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(...
h){return"\\"+(h-0+1)}))}var B=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){B=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for...
var tokenizePHP=function(){function i(e){return function(c,a){var b=e,d=p(e,c,function(f){b=f});b!=e&&a(i(b));return d}}function p(e,c,a){function b(){c.nextWhileMatches(q);var l=c.get(),m=k.hasOwnProperty(l)&&k.propertyIsEnumerable(l)&&k[l];return m?{type:m.type,style:m.style,content:l}:{type:"t_string",style:"php-t_s...
y+"px"}}}function b(){i.scrollTop=p.scrollTop||m.documentElement.scrollTop||0}function c(h){var o=j.firstChild.offsetHeight;if(o!=0){o=Math.ceil((50+Math.max(p.offsetHeight,Math.max(d.offsetHeight,p.scrollHeight||0)))/o);for(var r=j.childNodes.length;r<=o;r++){var v=document.createElement("DIV");v.appendChild(document....
var tokenizePHP=function(){function i(e){return function(c,a){var b=e,d=p(e,c,function(f){b=f});b!=e&&a(i(b));return d}}function p(e,c,a){function b(){c.nextWhileMatches(q);var l=c.get(),m=k.hasOwnProperty(l)&&k.propertyIsEnumerable(l)&&k[l];return m?{type:m.type,style:m.style,content:l}:{type:"t_string",style:"php-t_s...
document.getElementById(back_id).type = "hidden"; document.getElementById(text_id).type = "hidden";
document.getElementById(back_id).style.visibility = "hidden"; document.getElementById(text_id).style.visibility = "hidden";
function backSelectOpt(select_id, back_id, text_id){ document.getElementById(select_id).style.visibility = "visible"; document.getElementById(back_id).type = "hidden"; document.getElementById(text_id).type = "hidden"; }
var evenOrOdd = (idx % 2 == 0) ? 'even' : 'odd';
var evenOrOdd = (idx % 2 === 0) ? 'even' : 'odd';
function basic(view, sel, disabled) { var cq = view.$(); ok(cq.hasClass('sc-list-item-view'), 'should have sc-list-item-view class'); equals(cq.hasClass('sel'), !!sel, 'expect sel class'); equals(cq.hasClass('disabled'), !!disabled, 'expect disabled class'); var idx = view.get('contentIndex'); var evenOrOdd =...
let popup = document.getElementById("dactyl-visualbell"); let win = config.visualbellWindow; let rect = win.getBoundingClientRect(); let width = rect.right - rect.left; let height = rect.bottom - rect.top;
dactyl.callInMainThread(function () { let popup = document.getElementById("dactyl-visualbell"); let win = config.visualbellWindow; let rect = win.getBoundingClientRect(); let width = rect.right - rect.left; let height = rect.bottom - rect.top;
beep: function () { // FIXME: popups clear the command line if (options["visualbell"]) { // flash the visual bell let popup = document.getElementById("dactyl-visualbell"); let win = config.visualbellWindow; let rect = win.getBoundingClientRect(); ...
popup.openPopup(win, "overlap", 1, 1, false, false); popup.sizeTo(width - 2, height - 2); setTimeout(function () { popup.hidePopup(); }, 20);
popup.openPopup(win, "overlap", 1, 1, false, false); popup.sizeTo(width - 2, height - 2); setTimeout(function () { popup.hidePopup(); }, 20); });
beep: function () { // FIXME: popups clear the command line if (options["visualbell"]) { // flash the visual bell let popup = document.getElementById("dactyl-visualbell"); let win = config.visualbellWindow; let rect = win.getBoundingClientRect(); ...
let bell = document.getElementById("dactyl-bell"); let strut = document.getElementById("dactyl-bell-strut"); if (!bell) { bell = document.documentElement.insertBefore( util.xmlToDom(<hbox xmlns={XUL} style="display: none" highlight="Bell" id="dactyl-bell"/>, document), document.documentElement.firstChild); strut = doc...
let elems = { bell: document.getElementById("dactyl-bell"), strut: document.getElementById("dactyl-bell-strut")
beep: function () { if (options["visualbell"]) { let bell = document.getElementById("dactyl-bell"); let strut = document.getElementById("dactyl-bell-strut"); if (!bell) { bell = document.documentElement.insertBefore( util.xmlToDom(<hbox xmln...
bell.style.height = window.innerHeight + "px"; strut.style.marginBottom = -window.innerHeight + "px"; strut.style.display = bell.style.display = "";
elems.bell.style.height = window.innerHeight + "px"; elems.strut.style.marginBottom = -window.innerHeight + "px"; elems.strut.style.display = elems.bell.style.display = "";
beep: function () { if (options["visualbell"]) { let bell = document.getElementById("dactyl-bell"); let strut = document.getElementById("dactyl-bell-strut"); if (!bell) { bell = document.documentElement.insertBefore( util.xmlToDom(<hbox xmln...
util.timeout(function () { strut.style.display = bell.style.display = "none"; }, 20);
util.timeout(function () { elems.strut.style.display = elems.bell.style.display = "none"; }, 20);
beep: function () { if (options["visualbell"]) { let bell = document.getElementById("dactyl-bell"); let strut = document.getElementById("dactyl-bell-strut"); if (!bell) { bell = document.documentElement.insertBefore( util.xmlToDom(<hbox xmln...
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 5);
beep: function () { if (options["visualbell"]) { // flash the visual bell let panel = document.getElementById("dactyl-deck-bell"); if (panel) { let restore = panel.parentNode.selectedPanel; if (restore !== panel) { panel.parent...
this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){i...
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.ap...
this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){i...
before: function(element, node) { element.parentNode.insertBefore(node, 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(...
before: function(element, node) { element.parentNode.insertBefore(node, element); },
Before: function(element, content) { return Element.insert(element, {before:content}); },
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(...
Before: function(element, content) { return Element.insert(element, {before:content}); },
if(view.get('isEditable')) view.beginEditing();
if(view.get('isEditable') && !view.isTextField) view.beginEditing();
beginEditing: function() { var childViews = this.childViews, i, len = childViews.length, view; for(i = 0; i < len; i++) { view = childViews[i]; if(view.get('isEditable')) view.beginEditing(); } if(this.get('isEditing')) return YES; return this.invokeDelegateMethod(this.get('editor...
canScale: this.get("canScale") && SC.platform.pinchToScale,
canScale: this.get("canScale") && SC.platform.pinchToZoom,
beginTouchTracking: function(touch, starting) { var avg = touch.averagedTouchesForView(this, starting); var verticalScrollOffset = this._scroll_verticalScrollOffset || 0, horizontalScrollOffset = this._scroll_horizontalScrollOffset || 0, startClipOffsetX = horizontalScrollOffset, startC...
var binaryRequest = function(url, opt){
function binaryRequest(url, opt){
var binaryRequest = function(url, opt){ return request(url, update({ charset: 'text/plain; charset=x-user-defined' }, opt)).addCallback(function(res){ res.responseText = res.responseText.replace(/[\u0100-\uffff]/g, function(c){ return String.fromCharCode(c.charCodeAt(0) & 0xff); }); return res; });}...
};
}
function binaryRequest(url, opt){ return request(url, update({ charset: 'text/plain; charset=x-user-defined' }, opt)).addCallback(function(res){ res.responseText = res.responseText.replace(/[\u0100-\uffff]/g, function(c){ return String.fromCharCode(c.charCodeAt(0) & 0xff); }); return res; });};
c = (l + r) / 2;
c = Math.floor((l + r) / 2);
binarySearch: function(list, val, l, r, cmp) { l = l || 0; r = (!r || r <= l) ? list.length : r; while (l < r) { c = (l + r) / 2; if (list[c] == val) return c; if (cmp && cmp(list[c], val) < 0 || list[c] < 0) l = c + 1; e...
if (cmp && cmp(list[c], val) < 0 || list[c] < 0)
if (cmp && cmp(list[c], val) < 0 || list[c] < val)
binarySearch: function(list, val, l, r, cmp) { l = l || 0; r = (!r || r <= l) ? list.length : r; while (l < r) { c = (l + r) / 2; if (list[c] == val) return c; if (cmp && cmp(list[c], val) < 0 || list[c] < 0) l = c + 1; e...
? function() {
? function $$boundMethod() {
exports.bind = function(context, method /*, VARGS*/) { if(arguments.length > 2) { var args = SLICE.call(arguments, 2); return typeof method == 'string' ? function() { if (context[method]) { return context[method].apply(context, args.concat(SLICE.call(arguments, 0))); } else { throw logger.error('No me...
: function() { return method.apply(context, args.concat(SLICE.call(arguments, 0))); }
: function $$boundMethod() { return method.apply(context, args.concat(SLICE.call(arguments, 0))); }
exports.bind = function(context, method /*, VARGS*/) { if(arguments.length > 2) { var args = SLICE.call(arguments, 2); return typeof method == 'string' ? function() { if (context[method]) { return context[method].apply(context, args.concat(SLICE.call(arguments, 0))); } else { throw logger.error('No me...
: function() { return method.apply(context, arguments); }
: function $$boundMethod() { return method.apply(context, arguments); }
exports.bind = function(context, method /*, VARGS*/) { if(arguments.length > 2) { var args = SLICE.call(arguments, 2); return typeof method == 'string' ? function() { if (context[method]) { return context[method].apply(context, args.concat(SLICE.call(arguments, 0))); } else { throw logger.error('No me...
}
};
bind: function(context, method/*, args... */) { var args = Array.prototype.slice.call(arguments, 2); return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } },
bind = function(context, method) { var args = Array.prototype.slice.call(arguments, 2); return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } },
bind: function(context, method) { var args = Array.prototype.slice.call(arguments, 2); return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } },
bind = function(context, method/*, args... */) { var args = Array.prototype.slice.call(arguments, 2); return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } },
? function() { exports.log('crash?', method, context, arguments); return context[method].apply(context, arguments); }
? function() { return context[method].apply(context, arguments); }
exports.bind = function(context, method /*, VARGS*/) { if(arguments.length > 2) { var args = Array.prototype.slice.call(arguments, 2); return typeof method == 'string' ? function() { return context[method].apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } : function() { return method.apply(...
};
},
bind = function(context, method/*, args... */) { var args = Array.prototype.slice.call(arguments, 2); return function(){ method = (typeof method == 'string' ? context[method] : method); return method.apply(context, args.concat(Array.prototype.slice.call(arguments, 0))); } };