rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } | this.add = function(name, callback) { if (!this._pool[name]) { this._pool[name] = {} this._counts[name] = 0 } this._counts[name]++ | exports = Class(function(){ this.init = function() { this._pool = {} this._uniqueId = 0 } this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id } this.remove = function(signal, id) { delete this.... |
this._pool[signal][id] = callback | this._pool[name][id] = callback | exports = Class(function(){ this.init = function() { this._pool = {} this._uniqueId = 0 } this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id } this.remove = function(signal, id) { delete this.... |
this.remove = function(signal, id) { delete this._pool[signal][id] | this.remove = function(name, id) { delete this._pool[name][id] if (this._counts[name]-- == 0) { delete this._counts[name] } | exports = Class(function(){ this.init = function() { this._pool = {} this._uniqueId = 0 } this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id } this.remove = function(signal, id) { delete this.... |
this.get = function(signal) { return this._pool[signal] | this.get = function(name) { return this._pool[name] } this.count = function(name) { return this._counts[name] || 0 | exports = Class(function(){ this.init = function() { this._pool = {} this._uniqueId = 0 } this.add = function(signal, callback) { if (!this._pool[signal]) { this._pool[signal] = {} } var id = 'p' + this._uniqueId++ this._pool[signal][id] = callback return id } this.remove = function(signal, id) { delete this.... |
var key = shared.keys.getItemPropertyKey(itemId, propName) | var key = shared.keys.getItemPropertyKey(itemId, propName), value = properties[propName] if (typeof value == 'boolean') { value = value ? 1 : 0 } | fin = Singleton(function(){ // Make sure you have a connection with the server before using fin this.connect = function(callback) { var transport, connectParams = {} switch(jsio.__env.name) { case 'node': transport = 'tcp' connectParams.host = '127.0.0.1' connectParams.port = 5556 connectParams.timeout... |
args.push(properties[propName]) } this.send('FIN_REQUEST_MUTATE_ITEM', { id: itemId, op: 'mset', props: props, args: args }) } | args.push(JSON.stringify(value)) } this._mutate({ id: itemId, op: 'mset', props: props, args: args }) } this._mutate = function(mutation) { this._handleItemMutation(mutation) this.send('FIN_REQUEST_MUTATE_ITEM', mutation) } | fin = Singleton(function(){ // Make sure you have a connection with the server before using fin this.connect = function(callback) { var transport, connectParams = {} switch(jsio.__env.name) { case 'node': transport = 'tcp' connectParams.host = '127.0.0.1' connectParams.port = 5556 connectParams.timeout... |
this.focus = function() { | this.focusLeftmost = function() { | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPanel = new browser.pane... |
this.focusLabelView = function() { | this.focus = function() { | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPanel = new browser.pane... |
this.focus(); | this._labelListPanel.focus(); | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPanel = new browser.pane... |
this.removePanel = function() { if (!this._labelViewPanel) { return; } | this.removePanel = function(panel) { if (!panel || panel != this._labelViewPanel) { return; } | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPanel = new browser.pane... |
this.removePanel(); | this.removePanel(this._labelViewPanel); | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPanel = new browser.pane... |
$j(document).ready(function(){ | $(document).ready(function(){ | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
$j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); | $('[name=filters_open]').find('input').each(function() { var formname = $(this).parent('form').attr('name'); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
if( $j.inArray($j(this).attr('name'),form_fields) == -1 ) { form_fields[i] = $j(this).attr('name'); | if( $.inArray($(this).attr('name'),form_fields) == -1 ) { form_fields[i] = $(this).attr('name'); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
$j.each( form_fields, function (index, value) { serialized_form_fields[value] = $j('[name=filters_open]').find('[name='+value+']').serialize(); | $.each( form_fields, function (index, value) { serialized_form_fields[value] = $('[name=filters_open]').find('[name='+value+']').serialize(); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
begin_form = $j('[name=filters_open]').serialize(); | begin_form = $('[name=filters_open]').serialize(); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
$j('[:input').live("change", function() { filter_highlight_changes($j(this)); | $('[:input').live("change", function() { filter_highlight_changes($(this)); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
$j(':checkbox').live("click", function() { filter_highlight_changes($j(this)); | $(':checkbox').live("click", function() { filter_highlight_changes($(this)); | $j(document).ready(function(){ var i = 0; $j('[name=filters_open]').find('input').each(function() { var formname = $j(this).parent('form').attr('name'); if( formname != 'list_queries_open' && formname != 'open_queries' && formname != 'save_query' ) { // serialize the field and add it to an array if( $j.inArray($j... |
const currentRevision = 2; | const currentRevision = 3; | (function() { const currentRevision = 2; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
getSelectedTabs : function TDU_getSelectedTabs(aEvent) { var b = this.getTabBrowserFromChild(aEvent.target); var w = b.ownerDocument.defaultView; var isMultipleDragEvent = this.isTabsDragging(aEvent); var selectedTabs; var isMultipleDrag = ( ( isMultipleDragEvent && (selectedTabs = this.getDraggedTabs(aEvent)) && sele... | (function() { const currentRevision = 2; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... | |
test_async('should work like regular reduce', function (content, callback) { | test_async('should work like regular reduce', function (context, complete) { | test_async('should work like regular reduce', function (content, callback) { var list = []; //for (var i = 0; i < 400000; i++) { for (var i = 0; i < 1000; i++) { list.push(i); } //var t = new Date(); var expected = list.reduce(function (p, c) { return p + c; }, 0... |
assertEquals(expected, actual, callback); callback(); | assertEquals(expected, actual, complete); end_async_test(complete); | test_async('should work like regular reduce', function (content, callback) { var list = []; //for (var i = 0; i < 400000; i++) { for (var i = 0; i < 1000; i++) { list.push(i); } //var t = new Date(); var expected = list.reduce(function (p, c) { return p + c; }, 0... |
promise.addCallback(function(data) { | fs.readFile(filename, encoding, function (error, data) { if (error) { status = 404; body = '404' sys.puts("Error loading " + filename); return callback(); } | promise.addCallback(function(data) { body = data; headers = [ ['Content-Type', content_type], ['Content-Length', (encoding === 'utf8') ? encodeURIComponent(body).replace(/%../g, 'x').length : body.length ] ... |
$('input[type=checkbox]#use_date_filters').click(function() { if (!$(this).is(':checked')) { $('form[name=filters] select[name=start_year]').attr('disabled', 'disabled'); $('form[name=filters] select[name=start_month]').attr('disabled', 'disabled'); $('form[name=filters] select[name=start_day]').attr('disabled', 'disab... | $(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $('#tag_select').live('change', function() { var selected_tag = $('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $('.collapse-open').show(); $('.collapse-closed').hide(); $('.collapse-link').c... | |
ANNOS_EXPIRE_POLICIES.forEach(function(policy) { params[policy.bind] = policy.type; params[policy.bind + "_time"] = microNow - policy.time; }); | XPCOMUtils.defineLazyGetter(this, "_db", function () { let db = Cc["@mozilla.org/browser/nav-history-service;1"]. getService(Ci.nsPIPlacesDatabase). DBConnection; let stmt = db.createAsyncStatement( "CREATE TEMP TABLE expiration_notify ( " + " id INTEGER PRIMARY KEY " + ", v_id INTEGER " + ", p_id INTEGER " + ", url... | ANNOS_EXPIRE_POLICIES.forEach(function(policy) { params[policy.bind] = policy.type; params[policy.bind + "_time"] = microNow - policy.time; }); |
select.click(function() { | select.change(function() { | (function($) { /** * This plugin shows and hides elements based on the value of a select box. * If there is only one option, the select box will be hidden and * the single element will be shown. * * @param {Object} custom_settings * An object specifying the elements that are pickable */ $.fn.symphonyPickable ... |
}).click(); | }).change(); | (function($) { /** * This plugin shows and hides elements based on the value of a select box. * If there is only one option, the select box will be hidden and * the single element will be shown. * * @param {Object} custom_settings * An object specifying the elements that are pickable */ $.fn.symphonyPickable ... |
$j(document).ready( function() { | $(document).ready( function() { | $j(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-li... |
$j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); | $('#tag_select').live('change', function() { var selected_tag = $('#tag_select option:selected').text(); | $j(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-li... |
$j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-link').click( function(event) { | $('.collapse-open').show(); $('.collapse-closed').hide(); $('.collapse-link').click( function(event) { | $j(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-li... |
var id = $j(this).attr('id'); | var id = $(this).attr('id'); | $j(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-li... |
$('input[type=text].autocomplete').autocomplete({ source: function(request, callback) { var fieldName = $(this).attr('element').attr('id'); var postData = {}; postData['entrypoint']= fieldName + '_get_with_prefix'; postData[fieldName] = request.term; $.getJSON('xmlhttprequest.php', postData, function(data) { var result... | $j(document).ready( function() { /* Global Tag change event added only if #tag_select exists */ $j('#tag_select').live('change', function() { var selected_tag = $j('#tag_select option:selected').text(); tag_string_append( selected_tag ); }); $j('.collapse-open').show(); $j('.collapse-closed').hide(); $j('.collapse-li... | |
var tree = new Tree.TreePanel({ | tree = new Tree.TreePanel({ | Ext.onReady(function(){ // to manage drag & drop var oldPosition = null; var oldNextSibling = null; // shorthand var Tree = Ext.tree; var tree = new Tree.TreePanel({ el:treeCfg.tree_div_id, useArrows:true, autoScroll:true, animate:true, enableDD:treeCfg.enableDD,... |
var filter = template_defaults.filters[c.name]; | var filter = context.filters[c.name]; | var out = this.filter_list.reduce( function (p,c) { var filter = template_defaults.filters[c.name]; var arg; if (c.arg) { arg = c.arg; } else if (c.var_arg) { arg = context.get(c.var_arg); } if ( filter && typeof fil... |
objects = objects.map(function() { var object = $(this); object.find(settings.items).bind('click', function() { | return objects.delegate(settings.items, 'click.tags', function(event) { var item = $(this), object = item.parent(), input = object.parent().find('label input'), value = input.val(), tag = item.attr('class') || item.text(); | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
var input = $(this).parent().prevAll('label').find('input')[0]; var tag = this.className || $(this).text(); | if(object.is('.singular')) { input.val(tag); } | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
if(input === undefined) { input = $(this).parent().prevAll('#error').find('label input')[0] | else if(object.is('.inline')) { var start = input[0].selectionStart, end = input[0].selectionEnd, position = 0; if(start > 0) { input.val(value.substring(0, start) + tag + value.substring(end, value.length)); position = start + tag.length; | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
input.focus(); if (object.hasClass('singular')) { input.value = tag; | else { input.val(value + tag); position = value.length + tag.length; | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
else if (object.hasClass('inline')) { var start = input.selectionStart; var end = input.selectionEnd; | input[0].selectionStart = position; input[0].selectionEnd = position; } | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
if (start >= 0) { input.value = input.value.substring(0, start) + tag + input.value.substring(end, input.value.length); | else { var exp = new RegExp('^' + tag + '$', 'i'), tags = value.split(/,\s*/), removed = false; for(var index in tags) { if(tags[index].match(exp)) { tags.splice(index, 1); removed = true; | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
else { input.value += tag; | else if(tags[index] == '') { tags.splice(index, 1); | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
input.selectionStart = start + tag.length; input.selectionEnd = start + tag.length; | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... | |
else { var exp = new RegExp('^' + tag + '$', 'i'); var tags = input.value.split(/,\s*/); var removed = false; | if(!removed) { tags.push(tag); } | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
for (var index in tags) { if (tags[index].match(exp)) { tags.splice(index, 1); removed = true; } else if (tags[index] == '') { tags.splice(index, 1); } } if (!removed) tags.push(tag); input.value = tags.join(', '); } }); return object; | input.val(tags.join(', ')); } | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... |
return objects; | (function($) { /** * This plugin inserts tags from a list into an input field. It offers three modes: * singular - allowing only one tag at a time * multiple - allowing multiple tags, comma separated * inline - which adds tags at the current cursor position * * @param {Object} custom_settings * An object speci... | |
text.replaceWhitespace = prefs.getBoolPref("extensions.firebug.fireformat.preview.showWhitespace"); text.wrapPosition = prefs.getIntPref("extensions.firebug.fireformatCssFormatter.wrapSize"); text.tabSize = prefs.getIntPref("extensions.firebug.fireformatCssFormatter.tabSize"); | text.replaceWhitespace = showWhitespace.value; text.wrapPosition = prefCache.getPref("wrapSize"); text.tabSize = prefCache.getPref("tabSize"); | (function() { const Cc = Components.classes; const Ci = Components.interfaces; const PrefService = Cc["@mozilla.org/preferences-service;1"]; const prefs = PrefService.getService(Ci.nsIPrefBranch2); const preview = { cssRules: [ { type: CSSRule.CHARSET_RULE, encoding: "encoding" }, { ... |
var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); | var referenceItemId = sourceItem.getProperty(itemReferencePropertyName, true); | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
forEach(this._proxiedCalls, bind(this, function(proxiedCall){ | for (var i=0, proxiedCall; proxiedCall = this._proxiedCalls[i]; i++) { | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
})) | } this._proxiedCalls = []; | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
this.getProperty = function(propertyName) { | this.getProperty = function(propertyName, noDefault) { | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
return 'loading...'; | return propertyName; | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
var self = this; function createProxiedMethod(context, methodName) { | function createProxiedMethod(methodName) { | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
this.subscribe = createProxiedMethod(this, 'subscribe'); | this.subscribe = createProxiedMethod('subscribe'); | exports = Class(common.Publisher, function(supr) { this.init = function(sourceItem, referencedItemType, itemReferencePropertyName) { supr(this, 'init'); this._proxiedCalls = []; this._referencedItemType = referencedItemType; var referenceItemId = sourceItem.getProperty(itemReferencePropertyName); if (referenceIte... |
browser.panelManager.showItem(propertyView.getReferencedItem()); | gPanelManager.showItem(propertyView.getReferencedItem()); | exports = Class(browser.panels.Panel, function(supr) { this.init = function() { supr(this, 'init', arguments); this._listComponent = new browser.ListComponent(bind(this, '_onItemSelected')); } this.createContent = function() { supr(this, 'createContent'); this.addClassName('ItemPanel'); this._itemView = new brow... |
browser.panelManager.showItem(item.getReferencedItem()); | gPanelManager.showItem(item.getReferencedItem()); | exports = Class(browser.panels.Panel, function(supr) { this.init = function() { supr(this, 'init', arguments); this._listComponent = new browser.ListComponent(bind(this, '_onItemSelected')); } this.createContent = function() { supr(this, 'createContent'); this.addClassName('ItemPanel'); this._itemView = new brow... |
if (this._type && this._type != type) { throw new Error("Attempting to set type " + type + "for item that already has type" + this._type); } | exports = Class(Publisher, function(supr) { this.init = function(id, properties) { supr(this, 'init'); this._id = id; this._type = null; this._rev = null; this._properties = properties || {}; this._propertySubscriptions = {}; } this.mutate = function(mutation) { mutation._id = this._id; this._publish('Mutatin... | |
if (JX.Stratcom && JX.Stratcom.ready) { | if (JX['Stratcom'] && JX['Stratcom'].ready) { | (function() { if (window.JX) { return; } window.JX = {}; window['__DEV__'] = window['__DEV__'] || 0; var loaded = false; var onload = []; var master_event_queue = []; JX.__rawEventQueue = function (what) { what = what || window.event; master_event_queue.push(what); if (JX.Stratcom && JX.Stratcom.rea... |
JX.Stratcom.dispatch(evt); | JX['Stratcom'].dispatch(evt); | (function() { if (window.JX) { return; } window.JX = {}; window['__DEV__'] = window['__DEV__'] || 0; var loaded = false; var onload = []; var master_event_queue = []; JX.__rawEventQueue = function (what) { what = what || window.event; master_event_queue.push(what); if (JX.Stratcom && JX.Stratcom.rea... |
const currentRevision = 5; | const currentRevision = 6; | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
window.addEventListener('load', this._delayedInit, false); | window.addEventListener('load', this, false); | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
window.removeEventListener('load', arguments.callee, false); delete tabsDragUtils._delayedInit; | window.removeEventListener('load', this, false); delete this._delayedInit; | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
tabsDragUtils.initTabDNDObserver(TabDNDObserver); | this.initTabDNDObserver(TabDNDObserver); | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
window.removeEventListener('load', this._delayedInit, false); | window.removeEventListener('load', this, false); | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
mozTypesAt : function DOMDTProxy_mozTypesAt() { | mozTypesAt : function DOMDTProxy_mozTypesAt(aIndex) { if (aIndex >= this._tabs.length) return new StringList([]); | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... |
if (aIndex >= this._tabs.length) return null; | (function() { const currentRevision = 5; if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {}; var loadedRevision = 'tabsDragUtils' in window['piro.sakura.ne.jp'] ? window['piro.sakura.ne.jp'].tabsDragUtils.revision : 0 ; if (loadedRevision && loadedRevision > currentRevision) { return; } if (loa... | |
this.unsubscribeFromItemSetMutations = function(itemSetId, subId) { this._itemSetSubscriberPool.remove(itemSetId, subId) } | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new common.ItemFactory(itemStore) this._itemSetFactory = new common.ItemSetFactory(this._itemFactory, itemSetStore) th... | |
browser.panelManager.showItem(itemView.getItem()); | gPanelManager.showItem(itemView.getItem()); | exports = Class(browser.UIComponent, function(supr) { var margin = { top: 10, bottom: 40 }; var padding = 3; var handleWidth = 10; var minHeight = 100; var width = 170; var marginLeft = 10; this.init = function() { supr(this, 'init'); this._itemViewClickCallback = bind(this, '_onItemViewClick'); this._labelListPan... |
+ " div:after {\n" + " content: "test";\n" + " }\n" + " </HTML:style>\n" + " <HTML:style type=\"text/css\">\n" + " <![CDATA[\n" + " div:after {\n" + " content: \"test\";\n" + " }\n" + " ]]>\n" | FBTestFirebug.openNewTab(urlBase + "formatter/htmlFormatter/xhtml_index.xhtml", function(win) { var Format = {}; Components.utils.import("resource://fireformat/formatters.jsm", Format); var doc = win.document; var expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n" + "<... | |
$(document).ready(function() { $('ul.nice-menu').superfish({ hoverClass: 'over', autoArrows: false, dropShadows: false, delay: Drupal.settings.nice_menus_options.delay, speed: Drupal.settings.nice_menus_options.speed }).find('ul').bgIframe({opacity:false}); $('ul.nice-menu ul').css('display', 'none'); }); | (function ($) { $(document).ready(function() { $('ul.nice-menu').superfish({ hoverClass: 'over', autoArrows: false, dropShadows: false, delay: Drupal.settings.nice_menus_options.delay, speed: Drupal.settings.nice_menus_options.speed }).find('ul').bgIframe({opacity:false}); $('ul.nice-menu ul').css('display', 'no... | $(document).ready(function() { $('ul.nice-menu').superfish({ // Apply a generic hover class. hoverClass: 'over', // Disable generation of arrow mark-up. autoArrows: false, // Disable drop shadows. dropShadows: false, // Mouse delay. delay: Drupal.settings.nice_menus_options.delay, // Animati... |
FireformatOptions.updatePreview = function() { | FireformatOptions.updateCssPreview = function() { | (function() { const Cc = Components.classes; const Ci = Components.interfaces; const PrefService = Cc["@mozilla.org/preferences-service;1"]; const prefs = PrefService.getService(Ci.nsIPrefBranch2); const preview = { cssRules: [ { type: CSSRule.CHARSET_RULE, encoding: "encoding" }, { ... |
this.getItemProperty = function(itemId, propName, callback) { var key = shared.keys.getItemPropertyKey(itemId, propName) this._redisClient.get(key, bind(this, function(err, valueBytes) { if (err) { throw logger.error('could not retrieve properties for item', key, err) } callback((valueBytes ? valueBytes.toString() : "... | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... | |
this.getQuerySet = function(queryJSON, callback) { | this._retrieveBytes = function(key, callback) { this._redisClient.get(key, function(err, valueBytes) { if (err) { throw logger.error('could not retrieve BYTES for key', key, err) } callback((valueBytes ? valueBytes.toString() : "null")) }) } this._retrieveSet = function(key, callback) { this._redisClient.smembers(key,... | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
})) this._redisClient.smembers(queryKey, bind(this, function(err, members) { if (err) { throw logger.error('could not retrieve set members', queryKey, err) } callback(members || []) | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... | |
mutation = { id: newItemId, op: 'set', prop: propName, args: [value] } | key = shared.keys.getItemPropertyKey(newItemId, propName), mutation = { id: key, op: 'set', args: [value] } | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
'append': 'lpush' | 'append': 'lpush', 'sadd': 'sadd', 'srem': 'srem' | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
var itemId = mutation.id, propName = mutation.prop, | var key = mutation.id, propName = shared.keys.getKeyInfo(key).property, | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
mutationBytes = connId.length + connId + JSON.stringify(mutation), | mutationBytes = connId.length + connId + JSON.stringify(mutation) | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
args.unshift(shared.keys.getItemPropertyKey(itemId, propName)) | args.unshift(key) | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
var itemPropChannel = shared.keys.getItemPropertyChannel(itemId, propName) | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... | |
this._redisClient.publish(itemPropChannel, mutationBytes) | this._redisClient.publish(key, mutationBytes) | exports = Class(Server, function(supr) { this.init = function(redis, connectionCtor) { supr(this, 'init', [connectionCtor]) this._redis = redis this._uniqueId = 0 this._redisClient = this._createRedisClient() // TODO For now we clear out all the query locks on every start up. // This is because if the query obse... |
this._panelWidth = 500; | this._panelWidth = 400; | exports = Singleton(browser.UIComponent, function(supr) { this.createContent = function() { this.addClassName('PanelManager'); this._focusIndex = 0; this._offset = 0; this._panelsByItem = {}; this._panelsByIndex = []; this._panelWidth = 500; this._panelMargin = 30; this._offset = 0; this._panelAnimation = new... |
container.addEventListener("transitionend", function() { self.alertTransitionOver(); }, true); | Browser.tabs.forEach(function(aTab) { if (aTab.browser.getAttribute("remote") == "true") aTab.resurrect(); }) | container.addEventListener("transitionend", function() { self.alertTransitionOver(); }, true); |
YAHOO.util.Assert.areEqual(initialFlavorValue, ORBEON.xforms.Controls.getCurrentValue(flavorSelect1)); }); | YAHOO.util.Assert.isTrue(inputField.disabled, "input field still disabled when non-relevant"); ORBEON.util.Test.executeCausingAjaxRequest(this, function() { ORBEON.xforms.Document.setValue("relevant", "true"); }, function() { YAHOO.util.Assert.isTrue(inputField.disabled, "input field still disabled when becomes relevan... | }, function() { // Check that the values didn't change YAHOO.util.Assert.areEqual(initialFlavorValue, ORBEON.xforms.Controls.getCurrentValue(flavorSelect1)); }); |
ok.click(function() { box.hide(); var resp = (type == 'prompt')?input.val():true; if(callback) callback(resp); }).focus(); | store.add(result.rows.map(function(row){ return new R(row); })); | ok.click(function() { box.hide(); var resp = (type == 'prompt')?input.val():true; if(callback) callback(resp); }).focus(); |
thiss.openAccordionCase(thiss, '_314466', function() { var table = YAHOO.util.Dom.get('my-accordion$_314466-table$_314466-table-table'); var container = table.parentNode.parentNode; YAHOO.util.Assert.isFalse(YAHOO.util.Dom.hasClass(container, 'fr-dt-initialized'), "The datatable shouldn't be initialized at that point"... | thiss.openAccordionCase(thiss, 'optional-scrollh', function() { var tbody = YAHOO.util.Dom.get('my-accordion$optional-scrollh-table$optional-scrollh-table-tbody'); var bodyContainer = tbody.parentNode.parentNode; thiss.checkHorizontalScrollbar(bodyContainer, false); thiss.closeAccordionCase(thiss, 'optional-scrollh'); | thiss.openAccordionCase(thiss, '_314466', function() { var table = YAHOO.util.Dom.get('my-accordion$_314466-table$_314466-table-table'); var container = table.parentNode.parentNode; YAHOO.util.Assert.isFalse(YAHOO.util.Dom.hasClass(container, 'fr-dt-initialized'), "The datatable... |
}); | thiss.openAccordionCase(thiss, '_314466', function() { var table = YAHOO.util.Dom.get('my-accordion$_314466-table$_314466-table-table'); var container = table.parentNode.parentNode; YAHOO.util.Assert.isFalse(YAHOO.util.Dom.hasClass(container, 'fr-dt-initialized'), "The datatable... | |
y1Input.change( function() { | x2Input.change( function() { | y1Input.change( function() { if (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { this.value = 0.0; } $this.paint.linearGradient.setAttribute('y1', this.value); beginStop.setAttribute('y', MARGINY + SIZEY*this.value - STOP_RADIUS); }); |
this.value = 0.0; | this.value = 1.0; | y1Input.change( function() { if (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { this.value = 0.0; } $this.paint.linearGradient.setAttribute('y1', this.value); beginStop.setAttribute('y', MARGINY + SIZEY*this.value - STOP_RADIUS); }); |
$this.paint.linearGradient.setAttribute('y1', this.value); beginStop.setAttribute('y', MARGINY + SIZEY*this.value - STOP_RADIUS); | $this.paint.linearGradient.setAttribute('x2', this.value); endStop.setAttribute('x', MARGINX + SIZEX*this.value - STOP_RADIUS); | y1Input.change( function() { if (isNaN(parseFloat(this.value)) || this.value < 0.0 || this.value > 1.0) { this.value = 0.0; } $this.paint.linearGradient.setAttribute('y1', this.value); beginStop.setAttribute('y', MARGINY + SIZEY*this.value - STOP_RADIUS); }); |
JX[name].listen = function(type, callback) { if (__DEV__) { if (!(type in this.__events__)) { throw new Error( this.__readable__+'.listen("'+type+'", ...): '+ 'invalid event type. Valid event types are: '+ JX.keys(this.__events__).join(', ')+'.'); } } return JX['Stratcom'].listen( 'obj:'+type, this.__name__, JX.bind(th... | JX.bind(this, function(e) { | JX[name].listen = function(type, callback) { if (__DEV__) { if (!(type in this.__events__)) { throw new Error( this.__readable__+'.listen("'+type+'", ...): '+ 'invalid event type. Valid event types are: '+ JX.keys(this.__events__).joi... |
}; | JX[name].listen = function(type, callback) { if (__DEV__) { if (!(type in this.__events__)) { throw new Error( this.__readable__+'.listen("'+type+'", ...): '+ 'invalid event type. Valid event types are: '+ JX.keys(this.__events__).joi... | |
expression.constant = node_list.evaluate( context ); return expression.resolve(context); | return context.get(first) == context.get(second) ? node_list.evaluate(context) : ''; | return function (context) { expression.constant = node_list.evaluate( context ); return expression.resolve(context); }; |
}, function() { }); | OT.executeCausingAjaxRequest(this, function() { OD.getElementByTagName(OD.get("focus-non-relevant-no-error"), "input").focus(); }, function() { | }, function() { // nop }); |
0, function () { return fillStyle; }, series.xaxis, series.yaxis, octx, series.bars.horizontal, series.bars.lineWidth); | function (s) { return s["clickable"] != false; }); | 0, function () { return fillStyle; }, series.xaxis, series.yaxis, octx, series.bars.horizontal, series.bars.lineWidth); |
YAHOO.util.Assert.isTrue(inputField.disabled, "input field still disabled when non-relevant"); | }, function() { YAHOO.util.Assert.isTrue(inputField.disabled, "input field still disabled when non-relevant"); ORBEON.util.Test.executeCausingAjaxRequest(this, function() { ORBEON.xforms.Document.setValue("relevant", "true"); }, function() { YAHOO.u... | |
this.server.createItem(request.data, this, bind(this, function(itemData) { var response = { _requestId: request._requestId, data: itemData } | this.handleRequest('FIN_REQUEST_EXTEND_LIST', bind(this, function(request) { var key = request.key, from = request.from, to = request.to this.server.getListItems(key, from, to, bind(this, function(items) { var response = { _requestId: request._requestId, data: items } | this.server.createItem(request.data, this, bind(this, function(itemData) { var response = { _requestId: request._requestId, data: itemData } this.sendFrame('FIN_RESPONSE', response) })) |
})) | this.server.createItem(request.data, this, bind(this, function(itemData) { var response = { _requestId: request._requestId, data: itemData } this.sendFrame('FIN_RESPONSE', response) })) | |
this.handleRequest('FIN_REQUEST_ADD_REDUCTION', bind(this, function(args) { var itemSetId = args.id, reductionId = args.reductionId this.server.addItemSetReduction(itemSetId, reductionId, this._itemSetSubs[itemSetId]) | this.handleRequest('FIN_REQUEST_MUTATE_ITEM', bind(this, function(mutation){ if (typeof this._authenticatedUser == 'string') { mutation._user = this._authenticatedUser } this.server.mutateItem(mutation, this._id) | this.handleRequest('FIN_REQUEST_ADD_REDUCTION', bind(this, function(args) { var itemSetId = args.id, reductionId = args.reductionId this.server.addItemSetReduction(itemSetId, reductionId, this._itemSetSubs[itemSetId]) })) |
ORBEON.xforms.Offline.loadFormInIframe(url, function(offlineIframe) { | var formLoadingIntervalID = window.setInterval(function() { if (formLoadingComplete) { window.clearInterval(formLoadingIntervalID); ORBEON.xforms.Offline.loadFormInIframe(url, function(offlineIframe) { | ORBEON.xforms.Offline.loadFormInIframe(url, function(offlineIframe) { // Wait for the form to be marked as offline before we call the listener var takingFormOfflineIntervalID = window.setInterval(function() { if (! offlineIframe.contentWindow.... |
} }, 100); | ORBEON.xforms.Offline.loadFormInIframe(url, function(offlineIframe) { // Wait for the form to be marked as offline before we call the listener var takingFormOfflineIntervalID = window.setInterval(function() { if (! offlineIframe.contentWindow.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.