rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this._listComponent = new browser.ListComponent(bind(this, '_onItemSelected')); | this._listComponent = new browser.ListComponent(); | 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... |
forEach(this._itemView.getPropertyViews(), bind(this, function(propertyView) { this._listComponent.addItem(propertyView); if (propertyView instanceof browser.ItemReferenceView) { propertyView.subscribe('Click', bind(this, function() { gPanelManager.showItem(propertyView.getReferencedItem()); })); } else { propertyView.... | var views = this._itemView.getPropertyViews(); forEach(views, bind(this._listComponent, 'addItem')); | 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... |
} this._makeEditable = function(view) { browser.editable.setValue(this._item.getProperty(view.getPropertyName())); browser.editable.showAt(view, bind(this, '_onMutation', view), bind(this, '_onEditableHide')); } this._onMutation = function(view, mutation, value) { view.setValue(value); mutation.property = view.getPro... | 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... | |
this._onItemSelected = function(item) { if (item instanceof common.ItemReference || item instanceof browser.ItemReferenceView) { gPanelManager.showItem(item.getReferencedItem()); } else { var valueView = this._listComponent.getFocusedItem(); this._makeEditable(valueView); } } | 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... | |
Mission.runScreen(config, function () {}); | mission.runScreen({ titleKey: "oolite_material_test_title", message: message }, function () {}); | Mission.runScreen(config, function () {}); |
(function(){var Q=YAHOO.util.Event,S=YAHOO.util.Dom,aj=YAHOO.lang,E=YAHOO.env.ua,d=YAHOO.widget.Panel,G=YAHOO.widget.Tooltip,f=YAHOO.widget.Module.prototype,ah=f.initDefaultConfig,W=f._initResizeMonitor,g=YAHOO.widget.Overlay.prototype,J=g.showIframe,Y,a,M=false,x,P,b=false,Z={},ab={},t="aria-",ai="role",U="presentatio... | (function(){var S=YAHOO.util.Event,U=YAHOO.util.Dom,al=YAHOO.lang,G=YAHOO.env.ua,e=YAHOO.widget.Panel,I=YAHOO.widget.Tooltip,an=YAHOO.widget.SimpleDialog,g=YAHOO.widget.Module.prototype,aj=g.initDefaultConfig,Y=g._initResizeMonitor,h=YAHOO.widget.Overlay.prototype,L=h.showIframe,aa,a,l,c,O=false,z,R,b=false,ab={},ad={}... | (function(){var Q=YAHOO.util.Event,S=YAHOO.util.Dom,aj=YAHOO.lang,E=YAHOO.env.ua,d=YAHOO.widget.Panel,G=YAHOO.widget.Tooltip,f=YAHOO.widget.Module.prototype,ah=f.initDefaultConfig,W=f._initResizeMonitor,g=YAHOO.widget.Overlay.prototype,J=g.showIframe,Y,a,M=false,x,P,b=false,Z={},ab={},t="aria-",ai="role",U="presentatio... |
})(jQuery); | }(jQuery)); | (function ($) { $.extend($.fn, { textAlign: function (string) { var items = $(this), maxLeft = 0, maxRight = 0; if (string === 'start' || string === 'end' || string === 'left' || string === 'right' || string === 'justify' || string === 'center') { return items.css({textAlign: string}); } else if (string... |
dim.width += focusPadding * 2; dim.height += focusPadding * 2; dim.left -= focusPadding; dim.top -= focusPadding; | exports = Singleton(browser.UIComponent, function() { var borderWidth = 7; this.createContent = function() { this._resizeHandler = bind(this, '_resize'); this.addClassName('ItemFocus'); this._top = dom.create({ parent: this._element, className: 'piece top' }); this._left = dom.create({ parent: this._element, cl... | |
this.setValue('loading...'); | this.setValue('loading ' + this._propertyName + '...'); | exports = Class(browser.UIComponent, function(supr){ this._domType = 'span'; this.init = function(item, propertyName, viewElement) { supr(this, 'init'); this._item = item; this._propertyName = propertyName; this._viewElement = viewElement; } this.getPropertyName = function() { return this._propertyName; } this.... |
treeState.contextMenu.on({ hide:{scope:treeState, fn:function() { treeState.clickedNode = null; }} ,show:{scope:treeState, fn:function() { var node = treeState.clickedNode; var text = node.text; var len = text.length; var xx = this.contextMenu.items.get('static'); xx.el.update(text.substr(0,len-'( )'.length)); xx = th... | 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,... | |
object.find(settings.items).live('click', function() { | object.find(settings.items).bind('click', function() { | (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... |
this.init = function(itemReference, itemType) { supr(this, 'init'); this._itemReference = itemReference; this._itemType = itemType; | this.initializeView = function(sourceItem, args) { var referencedItemType = args[0]; var itemReferencePropertyName = args[1]; this._itemReference = new common.ItemReference(sourceItem, referencedItemType, itemReferencePropertyName); | exports = Class(browser.UIComponent, function(supr){ this.init = function(itemReference, itemType) { supr(this, 'init'); this._itemReference = itemReference; this._itemType = itemType; } this.createContent = function() { this._itemReference.subscribe('ReferenceChanged', bind(this, '_renderView')); this._renderVi... |
var itemView = new window.__gItemViewClass(this._itemReference, this._itemType, 'reference'); | var itemView = new window.__gItemViewClass(this._itemReference, this._itemReference.getType(), 'reference'); | exports = Class(browser.UIComponent, function(supr){ this.init = function(itemReference, itemType) { supr(this, 'init'); this._itemReference = itemReference; this._itemType = itemType; } this.createContent = function() { this._itemReference.subscribe('ReferenceChanged', bind(this, '_renderView')); this._renderVi... |
this.handleSelected = function(listComponent) { if (!this._itemReference.getReferencedItem()) { return; } gPanelManager.showItem(this.getReferencedItem()); } | exports = Class(browser.UIComponent, function(supr){ this.init = function(itemReference, itemType) { supr(this, 'init'); this._itemReference = itemReference; this._itemType = itemType; } this.createContent = function() { this._itemReference.subscribe('ReferenceChanged', bind(this, '_renderView')); this._renderVi... | |
this.getItem = function(itemId) { return this._itemFactory.getItem(itemId) | this.create = function(data, callback) { var requestId = this._scheduleCallback(callback) this._client.sendFrame('FIN_REQUEST_CREATE_ITEM', { _requestId: requestId, data: data }) | 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.getView = function(viewName ) { var args = Array.prototype.slice.call(arguments, 1) return this._viewFactory.getView(viewName, args) | this._subIdToChannel = {} this._subriptionPool = new shared.SubscriptionPool() this.subscribe = function(itemId, propName, callback) { var channel = shared.keys.getItemPropertyChannel(itemId, propName) subId = this._subriptionPool.add(channel, callback) if (this._subriptionPool.count(channel) == 1) { this._client.send... | 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.getListView = function(viewName ) { return this._viewFactory.getView(viewName, args) | this.query = function() { throw logger.error("Unimplemented method query") } this.monitorProperty = function() { throw logger.error("Unimplemented method monitorProperty") } this.release = function(subId) { var channel = this._subIdToChannel[subId] this._subriptionPool.remove(channel) if (this._subriptionPool.coun... | 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.applyTemplate = function(templateString, itemIds) { return this._templateFactory.applyTemplate(templateString, itemIds) } this.handleEvent = function(eventName, callback) { this._client.registerEventHandler(eventName, callback) } this.getSessionId = function() { if (this._client.transport._conn && this._client.... | this.mutate = function(itemId, operation, propName) { var key = shared.keys.getItemPropertyKey(itemId, propName), operationArgs = Array.prototype.slice.call(arguments, 3) | 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... |
return itemSet } this.registerView = function(viewName, viewConstructor) { this._viewFactory.registerView(viewName, viewConstructor) } this.exists = function(itemId, callback) { var requestId = this._scheduleCallback(callback) this._client.sendFrame('FIN_REQUEST_ITEM_EXISTS', { _requestId: requestId, _id: itemId }) }... | operationArgs.unshift(key) this._client.sendFrame('FIN_REQUEST_MUTATE_ITEM', { op: operation, args: operationArgs }) | 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... |
var localItemStore = new client.ItemLocalStore() this._itemFactory = new shared.ItemFactory(localItemStore) var localItemSetStore = new client.ItemSetLocalStore() this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, localItemSetStore) this._viewFactory = new client.ViewFactory(this) this._templateFacto... | this._client.registerEventHandler('FIN_RESPONSE', bind(this, function(response) { this._executeCallback(response._requestId, response.data) | 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._itemSetFactory.subscribe('ReductionAdded', bind(this, function(itemSetId, reductionId) { this._client.sendFrame('FIN_REQUEST_ADD_REDUCTION', { id: itemSetId, reductionId: reductionId }) })) this.handleEvent('FIN_RESPONSE_ITEM_EXISTS', bind(this, function(response) { this._executeCallback(response._requestId, res... | this._client.registerEventHandler('FIN_EVENT_ITEM_MUTATED', bind(this, function(mutationJSON) { var mutation = JSON.parse(mutationJSON), keyInfo = shared.keys.getKeyInfo(mutation.args[0]) channel = shared.keys.getItemPropertyChannel(keyInfo.id, keyInfo.prop) subs = this._subriptionPool.get(channel) for (var subId in s... | 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... |
var begin_form='';var form_fields=new Array();var serialized_form_fields=new Array();$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'){if($j.i... | var begin_form='';var form_fields=new Array();var serialized_form_fields=new Array();$(document).ready(function(){var i=0;$('[name=filters_open]').find('input').each(function(){var formname=$(this).parent('form').attr('name');if(formname!='list_queries_open'&&formname!='open_queries'&&formname!='save_query'){if($.inArr... | var begin_form='';var form_fields=new Array();var serialized_form_fields=new Array();$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'){if($j.i... |
if ($('#override-title-checkbox', context).size()) { | if ($('.menu-block-menu-tree-configure-form', context).size()) { | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#override-title-checkbox', context).change( function() { if ($('#override-title-checkbox:checked').length) { $('#edit-title-link-wrapper').slideUp('fast'); | $('.menu-block-override-title', context).change( function() { if ($('.menu-block-override-title:checked').length) { $('.menu-block-title-link').slideUp('fast'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-title-link-wrapper').slideDown('fast'); | $('.menu-block-title-link').slideDown('fast'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
if ($('#override-title-checkbox:checked').length) { $('#edit-title-link-wrapper').css('display', 'none'); | if ($('.menu-block-override-title:checked').length) { $('.menu-block-title-link').css('display', 'none'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
else { | else if ($('.menu-block-configure-form', context).size()) { | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-title', context).change( function() { if ($('#edit-title').val()) { $('#edit-title-link-wrapper').slideUp('fast'); | $('input[name="title"]', context).change( function() { if ($('input[name="title"]').val()) { $('.menu-block-title-link').slideUp('fast'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
if ($('#edit-title', context).val()) { $('#edit-title-link-wrapper').css('display', 'none'); | if ($('input[name="title"]', context).val()) { $('.menu-block-title-link').css('display', 'none'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-parent', context) | $('.menu-block-parent', context) | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-parent-menu', context).change( function() { $('#edit-parent') .html(Drupal.settings.menu_block.parent_options[$('#edit-parent-menu').val()]) | $('.menu-block-parent-menu', context).change( function() { $('.menu-block-parent') .html(Drupal.settings.menu_block.parent_options[$('.menu-block-parent-menu').val()]) | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-follow', context).change( function() { if ($('#edit-follow:checked').length) { $('#edit-follow-parent-wrapper').slideDown('fast'); | $('.menu-block-follow', context).change( function() { if ($('.menu-block-follow:checked').length) { $('.menu-block-follow-parent').slideDown('fast'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
$('#edit-follow-parent-wrapper').slideUp('fast'); | $('.menu-block-follow-parent').slideUp('fast'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
if (!$('#edit-follow:checked', context).length) { $('#edit-follow-parent-wrapper', context).css('display', 'none'); | if (!$('.menu-block-follow:checked', context).length) { $('.menu-block-follow-parent', context).css('display', 'none'); | (function ($) {Drupal.behaviors.menu_block = { attach: function (context, settings) { // This behavior attaches by ID, so is only valid once on a page. if ($('#menu-block-settings.menu-block-processed').size()) { return; } $('#menu-block-settings', context).addClass('menu-block-processed'); // Proc... |
window.console = new function() { | (function() { var ns = { svg: 'http: if(!window.console) { window.console = new function() { | window.console = new function() { this.log = function(str) {}; this.dir = function(str) {}; }; |
} $.jGraduate = { Paint: function(opt) { var options = opt || {}; this.alpha = isNaN(options.alpha) ? 100 : options.alpha; if (options.copy) { this.type = options.copy.type; this.alpha = options.copy.alpha; this.solidColor = null; this.linearGradient = null; this.radialGradient = null; switch(this.type) { case "none... | window.console = new function() { this.log = function(str) {}; this.dir = function(str) {}; }; | |
setTimeout(function () {jsMath.Autoload.Script.xmlLoad(url)},1); | FCK.DTD = (function() { var X = FCKTools.Merge ; var H,I,J,K,C,L,M,A,B,D,E,G,N,F ; A = {ins:1, del:1, script:1} ; B = {hr:1, ul:1, div:1, blockquote:1, noscript:1, table:1, address:1, pre:1, p:1, h5:1, dl:1, h4:1, ol:1, h6:1, h1:1, h3:1, h2:1} ; C = X({fieldset:1}, B) ; D = X({sub:1, bdo:1, 'var':1, sup:1, br:1, kbd:1... | setTimeout(function () {jsMath.Autoload.Script.xmlLoad(url)},1); |
(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.4",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];... | (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.6",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93... | (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.4",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];... |
cache[name] = parse_function(s); | cache[name] = template_system.parse(s); | fs.readFile(template_path + '/' + name, function (error, s) { if (error) { callback(error); } cache[name] = parse_function(s); callback(false, cache[name]); }); |
object.find(settings.items).each(function() { var item = $(this); var handle = item.find(settings.handles); handle.unbind('mousedown.orderable', start); handle.bind('mousedown.orderable', start); }); | object.delegate(settings.items + ' ' + settings.handles, 'mousedown.orderable', start); | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... |
['^/template$', function (req, res) { dj.serveFile(req, res, 'template-demo/template.html'); | ['^/$', function(req, res) { dj.respond(res, '<h1>djangode template demo</h1> \ <ul> \ <li><a href="/template">The raw template</a></li> \ <li><a href="/context">The test context</a></li> \ <li><a href="/text">The template rendered as text</a></li> \ <li><a href="/html">The template rendered as html</a></li> \ </ul> \ ... | ['^/template$', function (req, res) { dj.serveFile(req, res, 'template-demo/template.html'); }], |
if ( browserInfo.IsSafari ) browserInfo.IsSafari3 = ( parseFloat( s.match( / applewebkit\/(\d+)/ )[1] ) < 526 ) ; | (function( browserInfo ){ browserInfo.IsGecko = ( navigator.product == 'Gecko' ) && !browserInfo.IsSafari && !browserInfo.IsOpera ; browserInfo.IsGeckoLike = ( browserInfo.IsGecko || browserInfo.IsSafari || browserInfo.IsOpera ) ; if ( browserInfo.IsGecko ) { var geckoMatch = s.match( /rv:(\d+\.\d+)/ ) ; var geckoVer... | |
if ((evt.ctrlKey || evt.metaKey) && evt.shiftKey && evt.keyCode === 86) { if (!hasBeenValidated) { validate(); | if ((evt.ctrlKey || evt.metaKey) && evt.shiftKey) { if (evt.keyCode === 86) { validate("new-tab"); | $(document).keydown(function (evt) { if ((evt.ctrlKey || evt.metaKey) && evt.shiftKey && evt.keyCode === 86) { if (!hasBeenValidated) { validate(); } else { hideResultsPresentation(); } } else if (evt.keyCode === 27) { hideResultsPresentation(); } }); |
else { hideResultsPresentation(); | else if (evt.keyCode === 65) { receiveRequest({ results : { "message" : "validate-local-html" } }); | $(document).keydown(function (evt) { if ((evt.ctrlKey || evt.metaKey) && evt.shiftKey && evt.keyCode === 86) { if (!hasBeenValidated) { validate(); } else { hideResultsPresentation(); } } else if (evt.keyCode === 27) { hideResultsPresentation(); } }); |
Assert.areEqual(text, OD.getStringValue(body), "unexpected message in dialog"); | var span = OD.getChildElementByIndex(body, 0); Assert.areEqual(text, OD.getStringValue(span), "unexpected message in dialog"); | (function() { var Assert = YAHOO.util.Assert; var Test = ORBEON.util.Test; var OD = ORBEON.util.Dom; var YD = YAHOO.util.Dom; YAHOO.tool.TestRunner.add(new YAHOO.tool.TestCase({ name: "Message action", /** * Checks the specified message is display, and close the message box. ... |
jsio('import browser.panelManager'); | exports = Singleton(function(){ this.init = function() { events.add(window, 'keypress', bind(this, '_onKeyPress')); events.add(window, 'keydown', bind(this, '_onKeyDown')); } this.requestFocus = function(handler, muteGlobals) { this._keystrokeHandler = handler; this._muteGlobals = muteGlobals; return this._keyst... | |
browser.panelManager.focus(); | gPanelManager.focus(); | exports = Singleton(function(){ this.init = function() { events.add(window, 'keypress', bind(this, '_onKeyPress')); events.add(window, 'keydown', bind(this, '_onKeyDown')); } this.requestFocus = function(handler, muteGlobals) { this._keystrokeHandler = handler; this._muteGlobals = muteGlobals; return this._keyst... |
if (!browser.panelManager.hasPanels()) { | if (!gPanelManager.hasPanels()) { | exports = Singleton(function(){ this.init = function() { events.add(window, 'keypress', bind(this, '_onKeyPress')); events.add(window, 'keydown', bind(this, '_onKeyDown')); } this.requestFocus = function(handler, muteGlobals) { this._keystrokeHandler = handler; this._muteGlobals = muteGlobals; return this._keyst... |
posix.cat(template_path + '/' + name).addCallback(function(s) { | fs.readfile(template_path + '/' + name, function (error, s) { if (error) { callback(error); } | posix.cat(template_path + '/' + name).addCallback(function(s) { cache[name] = parse_function(s); callback(cache[name]); }); |
callback(cache[name]); | callback(false, cache[name]); | posix.cat(template_path + '/' + name).addCallback(function(s) { cache[name] = parse_function(s); callback(cache[name]); }); |
_redisCommandClient.setnx(lockKey, 1, function(err, iGotTheLock) { if (err) { throw logger.error('Could not attempt to grab a query lock', lockKey, err) } if (!iGotTheLock) { logger.log('I did not get the lock') return } logger.log('I got the lock - create query object and start monitoring for query changes', queryJSON... | _redisRequestClient.stream.addListener('connect', function() { _redisRequestClient.subscribeTo(shared.keys.queryRequestChannel, function(channel, queryJSONBytes) { _monitorQuery(bytesToString(queryJSONBytes)) }) | _redisCommandClient.setnx(lockKey, 1, function(err, iGotTheLock) { if (err) { throw logger.error('Could not attempt to grab a query lock', lockKey, err) } if (!iGotTheLock) { logger.log('I did not get the lock') return } logger.log('I got the lock - create query object and start monitoring for query changes'... |
logger.log('recv', id, name, JSON.stringify(args)) | logger.debug('recv', id, name, JSON.stringify(args)) | exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this.init = function() { supr(this, 'init') this._isConnected = false this._eventHandlers = {} } /* Connection ************/ this.connect = function(transport, connectParams, onConnectedCallback) { net.connect(this, transport, connectParams) if (th... |
logger.log('send', name, JSON.stringify(args)) | logger.debug('send', name, JSON.stringify(args)) | exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this.init = function() { supr(this, 'init') this._isConnected = false this._eventHandlers = {} } /* Connection ************/ this.connect = function(transport, connectParams, onConnectedCallback) { net.connect(this, transport, connectParams) if (th... |
var start = function() { | var start = function(item) { | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... |
item: $(this).parents(settings.items), | item: item, | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... |
return false; | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... | |
$(document).unbind('mousemove.orderable', change); $(document).unbind('mouseup.orderable', stop); | $(document).unbind('.orderable'); | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... |
object.delegate(settings.items + ' ' + settings.handles, 'mousedown.orderable', start); | object.delegate(settings.items + ' ' + settings.handles, 'mousedown.orderable', function(event) { var target = $(event.target), item = $(this).parents(settings.items); if(!target.is('input, textarea, select')) { start(item); return false; } }); | (function($) { /** * This plugin makes items orderable. * * @param {Object} custom_settings * An object specifying the item to be ordered, their handles and * a initialization delay */ $.fn.symphonyOrderable = function(custom_settings) { var objects = this; var settings = { items: 'li', handles: '*'... |
this.addClassName('itemView ' + this._itemType + '-item ' + this._viewType + '-view'); | this.addClassName('itemView fml-' + this._itemType + '-item ' + this._viewType + '-view'); | exports = Class(browser.UIComponent, function(supr) { this.init = function(item, itemType, viewType) { supr(this, 'init'); this._item = item; this._itemType = itemType; this._viewType = viewType; this._valueViews = {}; this._referenceViews = {}; this._propertyViews = []; } this.createContent = function() { th... |
$('.bug-jump').find('[name=bug_id]').focus( function() { var bug_label = $('.bug-jump-form').find('[name=bug_label]').val(); if( $(this).val() == bug_label ) { $(this).val(''); $(this).removeClass('field-default'); } }); $('.bug-jump').find('[name=bug_id]').blur( function() { var bug_label = $('.bug-jump-form').find('[... | $(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... | |
this.init = function(itemStore, itemSetStore) { | this.init = function(redis, subscriptionStore) { | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) th... |
this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) this._databaseScheduledWrites = {} this._itemSubscriberPool = new shared.SubscriptionPool() this._itemSetSubscriberPool = new shared.SubscriptionPool() | this._redisClient = this._createRedisClient() | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) th... |
this.exists = function(itemId, callback) { this._itemStore.exists(itemId, callback) | this._createRedisClient = function() { var client = this._redis.createClient() client.stream.setTimeout(0) return client } var connectionId = 0 this.buildProtocol = function() { return new this._protocolClass('c' + connectionId++, this._createRedisClient()); } this.data = function(op, key, callback) { this._redisCli... | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) th... |
this._itemStore.storeItemData(itemData, bind(this, function(err, result) { if (err) { throw err } itemData._id = result.id itemData._rev = result.rev var item = this._itemFactory.getItem(itemData) callback(item) })); | this._redisClient.incr('__uniqueFinId', bind(this, function(err, newItemId) { var blockedCallback = blockCallback(bind(this, callback, newItemId)) for (var property in itemData) { var releaseBlockFn = blockedCallback.addBlock(), itemPropKey = shared.keys.getItemPropertyKey(newItemId, property) this._redisClient.set(i... | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) th... |
this.subscribeToItemMutations = function(itemId, subCallback, snapshotCallback) { var subId = this._itemSubscriberPool.add(itemId, subCallback) this._getItemSnapshot(itemId, snapshotCallback) return subId } this.subscribeToItemSet = function(id, callback) { var isNew = !this._itemSetFactory.hasItemSet(id) var itemSet ... | this.mutateItem = function(mutation, originConnectionId) { var key = mutation.args[0], keyInfo = shared.keys.getKeyInfo(key), operation = mutation.op, args = mutation.args, itemChannel = shared.keys.getItemPropertyChannel(keyInfo.id, keyInfo.prop), propertyChannel = shared.keys.getPropertyChannel(keyInfo.prop), mutatio... | exports = Class(Server, function(supr) { this.init = function(itemStore, itemSetStore) { supr(this, 'init', [server.Connection]) this._uniqueId = 0 this._itemStore = itemStore this._itemFactory = new shared.ItemFactory(itemStore) this._itemSetFactory = new shared.ItemSetFactory(this._itemFactory, itemSetStore) th... |
this.init = function(database) { | this.init = function(database, itemSetStore) { | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
this._mutationSubscriptions = {}; | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... | |
this.subscribeToItemMutations = function(item, callback) { var itemId = item.getId(); if (!this._mutationSubscriptions[itemId]) { this._mutationSubscriptions[itemId] = {}; } var subId = 'sub' + this._uniqueId++; this._mutationSubscriptions[itemId][subId] = callback; return subId; | this.subscribeToItemMutations = function(itemId, subCallback, snapshotCallback) { var subId = this._itemSubscriberPool.add(itemId, subCallback) this._getItemSnapshot(itemId, snapshotCallback) return subId } this.subscribeToItemSetMutations = function(id, subCallback, snapshotCallback) { var shouldSubscribe = !this._it... | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
var id = mutation._id, item = common.itemFactory.getItem(id); logger.log('handleMutation', id, JSON.stringify(mutation)); item.applyMutation(mutation, true); var subs = this._mutationSubscriptions[id]; | common.itemFactory.handleMutation(mutation) var subs = this._itemSubscriberPool.get(mutation._id) this._executeMutationSubs(subs, mutation) this._scheduledItemWrite(mutation._id) } this._executeMutationSubs = function(subs, mutation) { | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
} this._scheduledItemWrite = function(id) { var item = common.itemFactory.getItem(id) | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... | |
logger.log('store item in database', id, JSON.stringify(item._properties)); | logger.log('store item in database', id); logger.debug('item data into database', JSON.stringify(item._properties)); | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
delete this._mutationSubscriptions[itemId][subId]; | this._itemSubscriberPool.remove(itemId, subId) | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
this._handleItemRevision = function(item, response, error) { if (error) { logger.warn('could not store item', item.getId(), JSON.stringify(error)); | this._handleItemRevision = function(item, err, response) { if (err) { logger.warn('could not store item', item.getId(), JSON.stringify(err)); | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
logger.log('stored item and got new revision', response.id, response.rev); | logger.debug('stored item and got new revision', response.id, response.rev); | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
this.getItem = function(id, callback) { | this._getItemSnapshot = function(id, callback) { | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
logger.log('get item from memory', id, JSON.stringify(item._properties)); callback(item); | logger.log('get item from memory', id); logger.debug('item data from memory', JSON.stringify(item.getProperties())) callback(item.getProperties()); | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
logger.log('retrieved item from database', JSON.stringify(data)); | logger.log('retrieved item from database'); logger.debug('item data from database', JSON.stringify(data)) | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
callback(item); | callback(item.getProperties()); | exports = Class(Server, function(supr) { this.init = function(database) { supr(this, 'init', [server.Connection]); this._mutationSubscriptions = {}; this._uniqueId = 0; this._database = database; this._databaseScheduledWrites = {} } // this.authenticate = function(email, password, callback) { // this._database.g... |
var keys = keysBytes.toString().split(',') logger.log("Clearing out query lock keys", keys) | var keys = keysBytes.toString().substr(1).split(',L') logger.log("Clear out query lock keys", keys) | 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.del(key) | this._redisClient.del('L' + key, function(err) { if (err) { throw logger.error("Could not clear out 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.removeFromSet = function(setId, itemId, callback) { | this.removeFromSet = function(setId, itemIds, callback) { | exports = Class(function() { this.init = function() { this._itemSets = {} } this.getItems = function(setId, callback) { var items = [] for (var itemId in this._itemSets[setId]) { items.push(itemId) } setTimeout(function() { callback(null, items) }) } this.isInSet = function(setId, itemId, callback) { var isI... |
ORBEON.util.Test.executeCausingAjaxRequest(this, function() { button.click(); }, function() { | (function() { var OD = ORBEON.util.Dom; var OT = ORBEON.util.Test; var YA = YAHOO.util.Assert; var YD = YAHOO.util.Dom; YAHOO.tool.TestRunner.add(new YAHOO.tool.TestCase({ name: "Full update", testGroupAroundTr: function() { var groupBegin = document.getElementById("group-begin-group-update-full" + XFORMS_SEPARATOR... | ORBEON.util.Test.executeCausingAjaxRequest(this, function() { button.click(); }, function() { |
if (itemView instanceof browser.ItemReferenceView) { | if (itemView instanceof browser.views.ItemReferenceView) { | exports = Singleton(browser.UIComponent, function() { var borderWidth = 7; this.createContent = function() { this._layoutHandler = bind(this, 'layout'); this._top = dom.create({ parent: this._element, className: 'piece top' }); this._left = dom.create({ parent: this._element, className: 'piece left' }); this._b... |
} else if (itemView instanceof browser.ItemValueView) { | } else if (itemView instanceof browser.views.ItemValueView) { | exports = Singleton(browser.UIComponent, function() { var borderWidth = 7; this.createContent = function() { this._layoutHandler = bind(this, 'layout'); this._top = dom.create({ parent: this._element, className: 'piece top' }); this._left = dom.create({ parent: this._element, className: 'piece left' }); this._b... |
this._redisClient.sismember(setId, itemId, callback) | this._redisClient.sismember(setId, itemId, function(err, isInSet) { callback(err, Boolean(isInSet)); }) | exports = Class(function() { this.init = function(redisClient) { this._redisClient = redisClient } this.getItems = function(setId, callback) { this._redisClient.smembers(setId, callback) } this.isInSet = function(setId, itemId, callback) { this._redisClient.sismember(setId, itemId, callback) } this.addToSet = fu... |
this.removeFromSet = function(setId, itemId, callback) { | this.removeFromSet = function(setId, itemIds, callback) { | exports = Class(function() { this.init = function(redisClient) { this._redisClient = redisClient } this.getItems = function(setId, callback) { this._redisClient.smembers(setId, callback) } this.isInSet = function(setId, itemId, callback) { this._redisClient.sismember(setId, itemId, callback) } this.addToSet = fu... |
this._redisClient.sadd(setId, itemId, onItemRemoved) | this._redisClient.srem(setId, itemId, onItemRemoved) | exports = Class(function() { this.init = function(redisClient) { this._redisClient = redisClient } this.getItems = function(setId, callback) { this._redisClient.smembers(setId, callback) } this.isInSet = function(setId, itemId, callback) { this._redisClient.sismember(setId, itemId, callback) } this.addToSet = fu... |
logger.log('store item data', JSON.stringify(itemData)) | logger.debug('store item data', JSON.stringify(itemData)) | exports = Class(function() { this.init = function(db) { this._db = db } this.ensureExists = function() { this._db.exists(bind(this, function(exists){ if (!exists) { this._db.create() } })) } // this.createUser = function(username, hashedPassword, callback) { // var userProperties = { password: hashedPassword, e... |
text.replaceWhitespace = prefs.getBoolPref("extensions.firebug.fireformat.preview.showWhitespace"); text.wrapPosition = prefs.getIntPref("extensions.firebug.fireformatHtmlFormatter.wrapSize"); text.tabSize = prefs.getIntPref("extensions.firebug.fireformatHtmlFormatter.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); var formatter = Fireformat.Formatters.getFormatter("com.incaseofstairs.fireformatHTMLFormatter"); function getTestBo... |
var g_collapse_clear=1;var a=navigator.userAgent.indexOf("MSIE");var style_display;if(a!=-1){style_display='block'}else{style_display='table-row'}style_display='block';$j(document).ready(function(){$j('#tag_select').live('change',function(){var selected_tag=$j('#tag_select option:selected').text();tag_string_append(sel... | var g_collapse_clear=1;var a=navigator.userAgent.indexOf("MSIE");var style_display;if(a!=-1){style_display="block"}else{style_display="table-row"}style_display="block";$(document).ready(function(){$("#tag_select").live("change",function(){var b=$("#tag_select option:selected").text();tag_string_append(b)});$(".collapse... | var g_collapse_clear=1;var a=navigator.userAgent.indexOf("MSIE");var style_display;if(a!=-1){style_display='block'}else{style_display='table-row'}style_display='block';$j(document).ready(function(){$j('#tag_select').live('change',function(){var selected_tag=$j('#tag_select option:selected').text();tag_string_append(sel... |
if (!this._items[itemId]) { this._items[itemId] = {} } | if (!this._items[itemId]) { this._items[itemId] = { _id: itemId } } | exports = Class(function() { this.init = function() { this._items = {} } this.ensureExists = function() {} this.getAllItems = function(callback) { var items = [] for (var itemId in this._items) { items.push(this._items[itemId]) } callback(null, items) } this.getItemData = function(itemId, callback) { if (!th... |
var templateProperties = browser.templateFactory.getPropertyMatches(this._itemType, this._viewType); | var templateViews = browser.templateFactory.findViewsInTemplate(this._itemType, this._viewType); | exports = Class(browser.UIComponent, function(supr) { this.init = function(item, itemType, viewType) { supr(this, 'init'); this._item = item; this._itemType = itemType; this._viewType = viewType; this._valueViews = {}; this._referenceViews = {}; this._propertyViews = []; } this.createContent = function() { th... |
for (var i=0, property; property = templateProperties[i]; i++) { var placeholderClassName = browser.templateFactory.getPlaceholderClassName(property.name); var placeholders = this._element.getElementsByClassName(placeholderClassName); | for (var i=0, viewProperties; viewProperties = templateViews[i]; i++) { var viewClassName = browser.templateFactory.getViewClassName(viewProperties.name); var placeholders = this._element.getElementsByClassName(viewClassName); | exports = Class(browser.UIComponent, function(supr) { this.init = function(item, itemType, viewType) { supr(this, 'init'); this._item = item; this._itemType = itemType; this._viewType = viewType; this._valueViews = {}; this._referenceViews = {}; this._propertyViews = []; } this.createContent = function() { th... |
this._createView(property, placeholder); | this._createView(viewProperties, placeholder); | exports = Class(browser.UIComponent, function(supr) { this.init = function(item, itemType, viewType) { supr(this, 'init'); this._item = item; this._itemType = itemType; this._viewType = viewType; this._valueViews = {}; this._referenceViews = {}; this._propertyViews = []; } this.createContent = function() { th... |
this._createView = function(property, placeholderElement) { var view; if (property.type) { var itemReference = new common.ItemReference(this._item, property.type, property.name); view = new browser.ItemReferenceView(itemReference, property.type); } else { view = new browser.ItemValueView(this._item, property.name); } | this._createView = function(viewProperties, placeholderElement) { var view = browser.views.viewFactory.getView(this._item, viewProperties.name, viewProperties.args); | exports = Class(browser.UIComponent, function(supr) { this.init = function(item, itemType, viewType) { supr(this, 'init'); this._item = item; this._itemType = itemType; this._viewType = viewType; this._valueViews = {}; this._referenceViews = {}; this._propertyViews = []; } this.createContent = function() { th... |
(function(){var S=YAHOO.util.Event,U=YAHOO.util.Dom,al=YAHOO.lang,G=YAHOO.env.ua,e=YAHOO.widget.Panel,I=YAHOO.widget.Tooltip,an=YAHOO.widget.SimpleDialog,g=YAHOO.widget.Module.prototype,aj=g.initDefaultConfig,Y=g._initResizeMonitor,h=YAHOO.widget.Overlay.prototype,L=h.showIframe,aa,a,l,c,O=false,z,R,b=false,ab={},ad={}... | (function(){var S=YAHOO.util.Event,U=YAHOO.util.Dom,al=YAHOO.lang,G=YAHOO.env.ua,e=YAHOO.widget.Panel,I=YAHOO.widget.Tooltip,an=YAHOO.widget.SimpleDialog,g=YAHOO.widget.Module.prototype,aj=g.initDefaultConfig,Y=g._initResizeMonitor,h=YAHOO.widget.Overlay.prototype,L=h.showIframe,aa,a,l,c,O=false,z,R,b=false,ab={},ad={}... | (function(){var S=YAHOO.util.Event,U=YAHOO.util.Dom,al=YAHOO.lang,G=YAHOO.env.ua,e=YAHOO.widget.Panel,I=YAHOO.widget.Tooltip,an=YAHOO.widget.SimpleDialog,g=YAHOO.widget.Module.prototype,aj=g.initDefaultConfig,Y=g._initResizeMonitor,h=YAHOO.widget.Overlay.prototype,L=h.showIframe,aa,a,l,c,O=false,z,R,b=false,ab={},ad={}... |
if (!query || !callback) { logger.error("query requires two arguments", query, callback); debugger } | if (!query || !callback) { logger.error("query requires two arguments", query, callback); } | 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._queryChannelHandler = bind(this, function(channelBytes, messageBytes) { var message = messageBytes.toString() if (!this._clientConnected) { logger.warn("Received query mutation event even though redis client is closed", message) return; } this.sendFrame('FIN_EVENT_QUERY_MUTATED', message) }) this._itemChannelHan... | this._itemChannelHandler = bind(this, function(key, mutationBytes) { | exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this.init = function(id, redisClient) { supr(this, 'init') this._id = id this._redisClient = redisClient this._requestHandlers = {} this._setupHandlers() } this.connectionMade = function() { supr(this, 'connectionMade', arguments) this._clientC... |
this.sendFrame('FIN_EVENT_ITEM_MUTATED', mutationInfo.json) | this.sendFrame('FIN_EVENT_MUTATION', mutationInfo.json) | exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this.init = function(id, redisClient) { supr(this, 'init') this._id = id this._redisClient = redisClient this._requestHandlers = {} this._setupHandlers() } this.connectionMade = function() { supr(this, 'connectionMade', arguments) this._clientC... |
var itemId = args.id, propName = args.prop, channel = shared.keys.getItemPropertyChannel(itemId, propName) | var type = args.type, key = args.key | exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this.init = function(id, redisClient) { supr(this, 'init') this._id = id this._redisClient = redisClient this._requestHandlers = {} this._setupHandlers() } this.connectionMade = function() { supr(this, 'connectionMade', arguments) this._clientC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.