rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | jQuery.each( jQuery.cache, function() { if ( this.events && this.events[type] ) { jQuery.event.trigger( event, data, this.handle.elem ); } }); | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... |
jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; | jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = jwplayer.html5.utils.getAbsolutePath(skinPath); | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; | function _load() { if (_skinPath === undefined) { _loadSkin(jwplayer.html5.defaultSkin().xml); } else { jwplayer.utils.ajax(_skinPath, function(xmlrequest) { _loadSkin(xmlrequest.responseXML); }, function(path) { _loadSkin(jwplayer.html5.defaultSkin().xml); }); } } | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.getSkinElement = function(component, element) { if (_loaded) { try { return _components[component].elements[element]; } catch (err) { jwplayer.html5.utils.log("No such skin component / element: ", [component, element]); | function _loadSkin(xml) { var components = xml.getElementsByTagName('component'); if (components.length === 0) { return; } for (var componentIndex = 0; componentIndex < components.length; componentIndex++) { var componentName = components[componentIndex].getAttribute("name"); var component = { settings: {}, elements: {... | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
return null; }; | if (_loading === false) { clearInterval(_completeInterval); _completeHandler(_skin); } } | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.getComponentSettings = function(component) { if (_loaded) { return _components[component].settings; } return null; }; this.getComponentLayout = function(component) { if (_loaded) { return _components[component].layout; } return null; }; | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... | |
function _completeImageLoad(img, element, component) { _skin[component].elements[element].height = img.height; _skin[component].elements[element].width = img.width; _skin[component].elements[element].src = img.src; _skin[component].elements[element].ready = true; _resetCompleteIntervalTest(); } _load(); | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... | |
return this.pushStack( jQuery.map(this, function(elem, i){ return callback.call( elem, i, elem ); })); | (function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context)},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=/^... | return this.pushStack( jQuery.map(this, function(elem, i){ return callback.call( elem, i, elem ); })); |
$.fn.jwplayerUtils.log("Skin loading complete", player); | $.fn.jwplayerSkinner(player, function() { $.fn.jwplayerUtils.log("Skin loading complete", player); setupJWPlayer(player, step + 1); }); | |
(function(jwplayer) { jwplayer.html5.playlistitemlevel = function(config) { for (var property in this) { if (config[property] !== undefined) { this[property] = config[property]; } } return this; }; jwplayer.html5.playlistitemlevel.prototype = { file: "", streamer: "", bitrate: 0, width: 0 }; })(jwplayer); | new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); | (function(jwplayer) { jwplayer.html5.playlistitemlevel = function(config) { for (var property in this) { if (config[property] !== undefined) { this[property] = config[property]; } } return this; }; jwplayer.html5.playlistitemlevel.prototype = { file: "", streamer: "", bitrate: 0, width: 0 };})(jwplayer); |
_model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_TIME, function(evt) { if (evt.position >= _model.playlist[_model.item].start && _oldstart >= 0) { _model.playlist[_model.item].start = _oldstart; _oldstart = -1; } | _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, function() { _model.getMedia().play(); | _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_TIME, function(evt) { if (evt.position >= _model.playlist[_model.item].start && _oldstart >= 0) { _model.playlist[_model.item].start = _oldstart; _oldstart = -1; } }); |
(function(jwplayer) { jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = skinPath; function _load() { if (_skinPath === undefined || _skinPath == "") { _loadSkin(jwplayer.html5.defaultSk... | new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); | (function(jwplayer) { /** Constructor **/ jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = skinPath; /** Load the skin **/ function _load() { if (_skinPath === undefined || _sk... |
return _playlistitemlevel; | if (_playlistitem.levels.length === 0) { _playlistitem.levels[0] = new jwplayer.html5.playlistitemlevel(_playlistitem); } return _playlistitem; | (function(jwplayer) { jwplayer.html5.playlistitemlevel = function(config) { var _playlistitemlevel = { file: "", streamer: "", bitrate: 0, width: 0 }; for (var property in _playlistitemlevel) { if (config[property] !== undefined) { _playlistitemlevel[property] = config[property]; } } return _playl... |
re.events.afterRender.addListener(function () { jqUnit.notVisible("Confiration dialog is now invisible", re.confirmation.dlg); jqUnit.assertEquals("User Name should now be", "Megan Forbes", adminUsers.locate("userName").val()); start(); }); | adminUsersTest.test("Confirmation delete", function () { var adminUsers; testOpts.userListEditor.options.details.options.confirmation.options.listeners = { afterFetchTemplate: function () { var re = adminUsers.userListEditor.details; re.events.afterRender.addListener(function () { re.events.afterRender.removeListener("... | re.events.afterRender.addListener(function () { jqUnit.notVisible("Confiration dialog is now invisible", re.confirmation.dlg); jqUnit.assertEquals("User Name should now be", "Megan Forbes", adminUsers.locate("userName").val()); sta... |
var dialog = el.closest('.ui-dialog'); | var dialog = el.dialog('widget'); | test("position, right bottom at right bottom via ui.position args", function() { var el = $('<div></div>').dialog({ position: { my: "right bottom", at: "right bottom" } }); var dialog = el.closest('.ui-dialog'); var offset = dialog.offset(); same(offset.left, $(window).width() - dialog.outerWidth()); same(offset.... |
same(offset.left, $(window).width() - dialog.outerWidth()); | same(offset.left, $(window).width() - dialog.outerWidth() + $(window).scrollLeft()); | test("position, right bottom at right bottom via ui.position args", function() { var el = $('<div></div>').dialog({ position: { my: "right bottom", at: "right bottom" } }); var dialog = el.closest('.ui-dialog'); var offset = dialog.offset(); same(offset.left, $(window).width() - dialog.outerWidth()); same(offset.... |
addEventListener(player, $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE, arg); | addEventListener(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_BUFFER, arg); | return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE, arg); break; default: return $.fn.jwplayerController.mediaInfo(player).state; } return jwplayer(player); }; |
return $.fn.jwplayerController.mediaInfo(player).state; | return $.fn.jwplayerController.mediaInfo(player).buffer; | return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_PLAYER_STATE, arg); break; default: return $.fn.jwplayerController.mediaInfo(player).state; } return jwplayer(player); }; |
return selectRegion().addCallback(function(region){ return capture(win, region.position, region.dimensions); }); | ].map(function(re){ return RegExp(re); }), | return selectRegion().addCallback(function(region){ return capture(win, region.position, region.dimensions); }); |
function (event) { return guard(event); }); | $(control).blur(function () { blurPending = true; setTimeout(function () { if (blurPending) { handler(control); } }, 150); }); | function (event) { return guard(event); }); |
(function($){ $.fn.bgIframe = $.fn.bgiframe = function(s) { if ( $.browser.msie && parseInt($.browser.version) <= 6 ) { s = $.extend({ top : 'auto', left : 'auto', width : 'auto', height : 'auto', opacity : true, src : 'javascript:false;' }, s || {}); var prop = function(n){return n&&n.constructor==Num... | that.events.afterFinishEdit.addListener(function () {isEditing = false; }); | (function($){/** * The bgiframe is chainable and applies the iframe hack to get * around zIndex issues in IE6. It will only apply itself in IE * and adds a class to the iframe called 'bgiframe'. The iframe * is appeneded as the first child of the matched element(s) * with a tabIndex and zIndex of -1. * * By default... |
that.events.onBeginEdit.addListener(function () {isEditing = true; }); | setTimeout(function () { if (blurPending) { handler(control); } }, 150); | that.events.onBeginEdit.addListener(function () {isEditing = true; }); |
return this.each(function() { if ( $('> iframe.bgiframe', this).length == 0 ) this.insertBefore( document.createElement(html), this.firstChild ); }); | return function () {return isEditing; }; | return this.each(function() { if ( $('> iframe.bgiframe', this).length == 0 ) this.insertBefore( document.createElement(html), this.firstChild ); }); |
if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; | if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; | function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; refreshView(that); ... |
that.locate("redoControl").focus(); | that.locate("undoControl").focus(); | function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; refreshView(that); ... |
function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; refreshView(that); that.locate("redoControl").focus(); } return false; } | fluid.each(expanded, function(entry) {entry.ID = repeatID;}); | function () { if (that.state !== STATE_REVERTED) { fluid.model.copyModel(that.extremalModel, that.component.model); that.component.updateModel(that.initialModel, that); that.state = STATE_REVERTED; refreshView(that); ... |
that.events.afterFinishEdit.addListener(function () {isEditing = false; }); | setTimeout(function() { that.editView.value(that.model.value)}, 1); | that.events.afterFinishEdit.addListener(function () {isEditing = false; }); |
function () { if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; refreshView(that); that.locate("undoControl").focus(); | (function ($, fluid) { function sendKey(control, event, virtualCode, charCode) { var kE = document.createEvent("KeyEvents"); kE.initKeyEvent(event, 1, 1, null, 0, 0, 0, 0, virtualCode, charCode); control.dispatchEvent(kE); } fluid.setCaretToEnd = function (control, value) { var pos = value? value.length : 0; try { ... | function () { if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; refreshView(that); that.locate("undoControl").focus(); } return fal... |
return false; } | } else if (control.createTextRange) { var range = control.createTextRange(); range.move("character", pos); range.select(); } } catch (e) {} }; fluid.deadMansBlur = function (control, exclusions, handler) { var blurPending = false; $(control).blur(function () { blurPending = true; setTimeout(function () { if (blurPend... | function () { if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; refreshView(that); that.locate("undoControl").focus(); } return fal... |
function () { if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; refreshView(that); that.locate("undoControl").focus(); } return false; } | return fluid.find(entry, function (value, key) { return key === "decorators"; }) !== false; | function () { if (that.state !== STATE_CHANGED) { that.component.updateModel(that.extremalModel, that); that.state = STATE_CHANGED; refreshView(that); that.locate("undoControl").focus(); } ... |
return function () {return isEditing; }; | setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); | return function () {return isEditing; }; |
link.bind("click.fluid.pager", function () {events.initiatePageChange.fire(eventArg); }); | (function ($, fluid) { fluid.inlineEdit.makeViewAccessor = function (editorGetFn, setValueFn, getValueFn) { return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } return ""; } if (newValue) { setValueFn(edi... | link.bind("click.fluid.pager", function () {events.initiatePageChange.fire(eventArg); }); |
fluid.each(expanded, function(el) {target[target.length] = el;}); | fluid.each(expanders, function (expander) { var expanded = fluid.invokeGlobalFunction(expander.type, [expander, proto, key, expandConfig]); fluid.each(expanded, function(el) {target[target.length] = el;}); }); | fluid.each(expanded, function(el) {target[target.length] = el;}); |
editables.each(function (idx, editable) { editors.push(fluid.inlineEdit($(editable), options)); }); | return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; } edit(that); return true; }; | editables.each(function (idx, editable) { editors.push(fluid.inlineEdit($(editable), options)); }); |
return function (editField) { | (function ($, fluid) { fluid.inlineEdit.makeViewAccessor = function (editorGetFn, setValueFn, getValueFn) { return function (editField) { | return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } ... |
}; var configureInlineEdit = function (configurationName, container, options) { var defaults = fluid.defaults(configurationName); var assembleOptions = fluid.merge(defaults? defaults.mergePolicy: null, {}, defaults, options); return fluid.inlineEdit(container, assembleOptions); }; fluid.inlineEdit.normalizeHTML = fun... | return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } ... | |
function (newModel, oldModel) { updateStyles(that, newModel, oldModel); } | return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } return ""; } if (newValue) { setValueFn(editField, editor, newValue); } else { return getValueFn(editor); } } }; }; | function (newModel, oldModel) { updateStyles(that, newModel, oldModel); } |
$(control).blur(function () { blurPending = true; setTimeout(function () { | setTimeout(function () { | $(control).blur(function () { blurPending = true; setTimeout(function () { if (blurPending) { handler(control); } }, 150); }); |
}); | $(control).blur(function () { blurPending = true; setTimeout(function () { if (blurPending) { handler(control); } }, 150); }); | |
setTimeout(function () { that.editView.value(that.model.value); }, 1); | (function($) { var increments = 0; $.widget("ui.tooltip", { options: { items: "[title]", content: function() { return $(this).attr("title"); }, position: { my: "left center", at: "right center", offset: "15 0" } }, _create: function() { var self = this; this.tooltip = $("<div></div>") .attr("id", "ui-tooltip-" + incr... | setTimeout(function () { that.editView.value(that.model.value); }, 1); |
(function($) { var increments = 0; $.widget("ui.tooltip", { options: { items: "[title]", content: function() { return $(this).attr("title"); }, position: { my: "left center", at: "right center", offset: "15 0" } }, _create: function() { var self = this; this.tooltip = $("<div></div>") .attr("id", "ui-tooltip-" + incr... | fluid.each(expanded, function(el) {target[target.length] = el;}); | (function($) {var increments = 0;$.widget("ui.tooltip", { options: { items: "[title]", content: function() { return $(this).attr("title"); }, position: { my: "left center", at: "right center", offset: "15 0" } }, _create: function() { var self = this; this.tooltip = $("<div></div>") .attr("id", "ui-too... |
return function (count, first, mid) { var togo = []; var j = 0; var lastSkip = false; for (var i = 0; i < count; ++ i) { if (i < locality || (count - i - 1) < locality || (i >= mid - midLocality && i <= mid + midLocality)) { togo[j++] = i; lastSkip = false; } else if (!lastSkip) { togo[j++] = -1; lastSkip = true; } } r... | togo = togo.replace(/\<(\S+)[^\>\s]*\>/g, function(match) { return match.toLowerCase(); }); | return function (count, first, mid) { var togo = []; var j = 0; var lastSkip = false; for (var i = 0; i < count; ++ i) { if (i < locality || (count - i - 1) < locality || (i >= mid - midLocality && i <= mid + midLocality)) { togo[j++]... |
setTimeout(function () { if (blurPending) { handler(control); } }, 150); | setTimeout(function() { that.editView.value(that.model.value)}, 1); | setTimeout(function () { if (blurPending) { handler(control); } }, 150); |
setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); | .bind("focus.tooltip mouseover.tooltip", function(event) { self.open( event ); }) | setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); |
.bind("focus.tooltip mouseover.tooltip", function(event) { | (function($) { var increments = 0; $.widget("ui.tooltip", { options: { items: "[title]", content: function() { return $(this).attr("title"); }, position: { my: "left center", at: "right center", offset: "15 0" } }, _create: function() { var self = this; this.tooltip = $("<div></div>") .attr("id", "ui-tooltip-" + incr... | .bind("focus.tooltip mouseover.tooltip", function(event) { self.open( event ); }) |
.bind("blur.tooltip mouseout.tooltip", function(event) { self.close( event ); }); }, enable: function() { this.options.disabled = false; }, disable: function() { this.options.disabled = true; }, destroy: function() { this.tooltip.remove(); $.Widget.prototype.destroy.apply(this, arguments); }, widget: function() { r... | .bind("focus.tooltip mouseover.tooltip", function(event) { self.open( event ); }) | |
return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } return ""; } if (newValue) { setValueFn(editField, editor, newValue); } else { return getValueFn(editor); } } }; }; | var outer = fluid.findAncestor(event.target, function (elem) { if (/input|select|textarea|button|a/i.test(elem.nodeName) || elem === viewEl) {return true; } }); | return function (editField) { return { value: function (newValue) { var editor = editorGetFn(editField); if (!editor) { if (newValue) { $(editField).val(newValue); } ... |
return function (page) { return page === -1? { ID: "page-link:skip" } : { ID: page === current? "page-link:link": "page-link:link", localID: page + 1, value: page + 1, pageIndex: page, decorators: [ {type: "jQuery", func: "click", args: function () {events.initiatePageChange.fire({pageIndex: page}); } }, {type: page ==... | setTimeout(function () { tinyMCE.execCommand('mceFocus', false, that.editField[0].id); if ($.browser.mozilla && $.browser.version.substring(0, 3) === "1.8") { return; } editor.selection.select(editor.getBody(), 1); editor.selection.collapse(0); }, 10); | return function (page) { return page === -1? { ID: "page-link:skip" } : { ID: page === current? "page-link:link": "page-link:link", localID: page + 1, value: page + 1, ... |
setTimeout(function() { that.editView.value(that.model.value)}, 1); | setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); | setTimeout(function() { that.editView.value(that.model.value)}, 1); |
that.events.onBeginEdit.addListener(function () { isEditing = true; }); | .bind("blur.tooltip mouseout.tooltip", function(event) { self.close( event ); }); | that.events.onBeginEdit.addListener(function () { isEditing = true; }); |
.bind("blur.tooltip mouseout.tooltip", function(event) { self.close( event ); }); | .bind("focus.tooltip mouseover.tooltip", function(event) { self.open( event ); }) | .bind("blur.tooltip mouseout.tooltip", function(event) { self.close( event ); }); |
togo = togo.replace(/\<(\S+)[^\>\s]*\>/g, function(match) { return match.toLowerCase(); | function (event) { return guard(event); | togo = togo.replace(/\<(\S+)[^\>\s]*\>/g, function(match) { return match.toLowerCase(); }); |
function (newModel, oldModel) { var pages = that.options.pageStrategy(newModel.pageCount, 0, newModel.pageIndex); var pageTree = fluid.transform(pages, pageToComponent(newModel.pageIndex)); pageTree[pageTree.length - 1].value = pageTree[pageTree.length - 1].value + strings.last; events.onRenderPageLinks.fire(pageTree, ... | that.events.afterInitEdit.addListener(function (editor) { focusEditor(editor); var editorBody = editor.getBody(); fluid.deadMansBlur(that.editField, $(editorBody), function () { that.cancel(); }); }); | function (newModel, oldModel) { var pages = that.options.pageStrategy(newModel.pageCount, 0, newModel.pageIndex); var pageTree = fluid.transform(pages, pageToComponent(newModel.pageIndex)); pageTree[pageTree.length - 1].value = pageTree[pageTree.length - 1].value... |
setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); | return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; | setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); |
}, 0); | edit(that); return true; }; | setTimeout(function () { that.editField.focus(); fluid.setCaretToEnd(that.editField[0], that.editView.value()); if (that.options.selectOnEdit) { that.editField[0].select(); } }, 0); |
that.events.afterFinishEdit.addListener(function () { isEditing = false; }); | var content = this.options.content.call(target[0], function(response) { setTimeout(function() { if (self.current == target) self._show(event, target, response); }, 13); }); | that.events.afterFinishEdit.addListener(function () { isEditing = false; }); |
var content = this.options.content.call(target[0], function(response) { setTimeout(function() { if (self.current == target) self._show(event, target, response); }, 13); }); | .bind("blur.tooltip mouseout.tooltip", function(event) { self.close( event ); }); | var content = this.options.content.call(target[0], function(response) { // IE may instantly serve a cached response, need to give it a chance to finish with _show before that setTimeout(function() { // ignore async responses that come in after the tooltip is already hidden if (self.current == target) se... |
setTimeout(function () { tinyMCE.execCommand('mceFocus', false, that.editField[0].id); if ($.browser.mozilla && $.browser.version.substring(0, 3) === "1.8") { return; } editor.selection.select(editor.getBody(), 1); editor.selection.collapse(0); }, 10); | that.events.onBeginEdit.addListener(function () {isEditing = true; }); | setTimeout(function () { tinyMCE.execCommand('mceFocus', false, that.editField[0].id); if ($.browser.mozilla && $.browser.version.substring(0, 3) === "1.8") { // Have not yet found any way to make this work on FF2.x - best to do nothing, //... |
function (newModel, oldModel, overallThat) { updatePreviousNext(that, options, newModel); } | fluid.deadMansBlur(that.editField, $(editorBody), function () { that.cancel(); }); | function (newModel, oldModel, overallThat) { updatePreviousNext(that, options, newModel); } |
return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { | return function (event) { var outer = fluid.findAncestor(event.target, function (elem) { if (/input|select|textarea|button|a/i.test(elem.nodeName) || elem === viewEl) {return true; } }); if (outer === viewEl) { that.edit(); | return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; } edit(that); return true; }; |
edit(that); return true; | return function () { var prevent = that.events.onBeginEdit.fire(); if (prevent === false) { return false; } edit(that); return true; }; | |
return function () { return isEditing; }; | setTimeout(function() { if (self.current == target) self._show(event, target, response); }, 13); | return function () { return isEditing; }; |
setTimeout(function() { | var content = this.options.content.call(target[0], function(response) { setTimeout(function() { | setTimeout(function() { // ignore async responses that come in after the tooltip is already hidden if (self.current == target) self._show(event, target, response); }, 13); |
}); | setTimeout(function() { // ignore async responses that come in after the tooltip is already hidden if (self.current == target) self._show(event, target, response); }, 13); | |
that.events.afterInitEdit.addListener(function (editor) { focusEditor(editor); var editorBody = editor.getBody(); fluid.deadMansBlur(that.editField, $(editorBody), function () { that.cancel(); }); }); | that.events.afterFinishEdit.addListener(function () {isEditing = false; }); | that.events.afterInitEdit.addListener(function (editor) { focusEditor(editor); var editorBody = editor.getBody(); // NB - this section has no effect - on most browsers no focus events // are delivered to the actual body fluid.deadMansBlur(that.editField, $(... |
var columnDef = $.grep(columnDefs, function (def) { return def.key === key; })[0]; | that.events.afterBeginEdit.addListener(function () { var editor = tinyMCE.get(that.editField[0].id); if (editor) { focusEditor(editor); } }); | var columnDef = $.grep(columnDefs, function (def) { return def.key === key; })[0]; |
return function (event) { var outer = fluid.findAncestor(event.target, function (elem) { | var outer = fluid.findAncestor(event.target, function (elem) { | return function (event) { // FLUID-2017 - avoid triggering edit mode when operating standard HTML controls. Ultimately this // might need to be extensible, in more complex authouring scenarios. var outer = fluid.findAncestor(event.target, function (elem) { ... |
if (outer === viewEl) { that.edit(); return false; } }; | return function (event) { // FLUID-2017 - avoid triggering edit mode when operating standard HTML controls. Ultimately this // might need to be extensible, in more complex authouring scenarios. var outer = fluid.findAncestor(event.target, function (elem) { ... | |
function( elem, type, handle ) { elem.removeEventListener( type, handle, false ); } : | jQuery.each( jQuery.data(this, "events").live || [], function() { if ( type === this.origType.replace(rnamespaces, "") ) { remove = false; return false; } }); | function( elem, type, handle ) { elem.removeEventListener( type, handle, false ); } : |
print("TS for " + slave + " is " + ts + " and latest is " + latest); | print("TS for " + slave + " is " + ts.t + " and latest is " + latest.t); | function() { var synced = true; for(var i=0; i<this.liveNodes.slaves.length; i++) { var slave = this.liveNodes.slaves[i]; // Continue if we're connected to an arbiter if(res = slave.getDB("admin").runCommand({replSetGetStatus: 1})) { if(res.... |
re.events.afterRender.addListener(function () { re.events.afterRender.removeListener("initialSelect"); re.remove(); jqUnit.assertEquals("Confirmation Text Should Say", "Delete this record?", re.confirmation.locate("message:", re.confirmation.dlg).text()); jqUnit.isVisible("Delete button should be visible", re.confirmat... | return function () { re.events.afterRender.removeListener("initialSelect"); adminUsers.locate("userName").val("New Name").change(); jQuery(jQuery(adminUsers.userListEditor.list.options.selectors.row)[1]).click(); re.events.afterRender.addListener(function () { jqUnit.notVisible("Confiration dialog is now invisible", re... | re.events.afterRender.addListener(function () { re.events.afterRender.removeListener("initialSelect"); re.remove(); jqUnit.assertEquals("Confirmation Text Should Say", "Delete this record?", re.confirmation.locate("message:", re.confirmation.dlg).... |
}, "initialSelect"); | }); re.confirmation.locate("proceed", re.confirmation.dlg).click(); }; | re.events.afterRender.addListener(function () { re.events.afterRender.removeListener("initialSelect"); re.remove(); jqUnit.assertEquals("Confirmation Text Should Say", "Delete this record?", re.confirmation.locate("message:", re.confirmation.dlg).... |
test("position, at another element", function() { var parent = $('<div></div>').css({ position: 'absolute', top: 400, left: 600, height: 10, width: 10 }).appendTo('body'); | test("position, right bottom at right bottom via ui.position args", function() { | test("position, at another element", function() { var parent = $('<div></div>').css({ position: 'absolute', top: 400, left: 600, height: 10, width: 10 }).appendTo('body'); var el = $('<div></div>').dialog({ position: { my: "left top", at: "left top", of: parent } }); var dialog = el.dialog('widget'); var o... |
my: "left top", at: "left top", of: parent | my: "right bottom", at: "right bottom" | test("position, at another element", function() { var parent = $('<div></div>').css({ position: 'absolute', top: 400, left: 600, height: 10, width: 10 }).appendTo('body'); var el = $('<div></div>').dialog({ position: { my: "left top", at: "left top", of: parent } }); var dialog = el.dialog('widget'); var o... |
same(offset.left, 600); same(offset.top, 400); el.dialog('option', 'position', { my: "left top", at: "right bottom", of: parent }); var offset = dialog.offset(); same(offset.left, 610); same(offset.top, 410); | same(offset.left, $(window).width() - dialog.outerWidth() + $(window).scrollLeft()); same(offset.top, $(window).height() - dialog.outerHeight() + $(window).scrollTop()); | test("position, at another element", function() { var parent = $('<div></div>').css({ position: 'absolute', top: 400, left: 600, height: 10, width: 10 }).appendTo('body'); var el = $('<div></div>').dialog({ position: { my: "left top", at: "left top", of: parent } }); var dialog = el.dialog('widget'); var o... |
parent.remove(); | test("position, at another element", function() { var parent = $('<div></div>').css({ position: 'absolute', top: 400, left: 600, height: 10, width: 10 }).appendTo('body'); var el = $('<div></div>').dialog({ position: { my: "left top", at: "left top", of: parent } }); var dialog = el.dialog('widget'); var o... | |
test( "auto-destroy - .remove() on child", function() { | test( "auto-destroy - .remove() on parent", function() { expect( 1 ); | test( "auto-destroy - .remove() on child", function() { $.widget( "ui.testWidget", { _create: function() {}, destroy: function() { ok( false, "destroyed from .remove() on child" ); } }); $( "#widget" ).testWidget().children().remove(); // http://github.com/jquery/qunit/pull/34 $.ui.testWidget.prototype.destroy = $... |
ok( false, "destroyed from .remove() on child" ); | ok( true, "destroyed from .remove() on parent" ); | test( "auto-destroy - .remove() on child", function() { $.widget( "ui.testWidget", { _create: function() {}, destroy: function() { ok( false, "destroyed from .remove() on child" ); } }); $( "#widget" ).testWidget().children().remove(); // http://github.com/jquery/qunit/pull/34 $.ui.testWidget.prototype.destroy = $... |
$( "#widget" ).testWidget().children().remove(); $.ui.testWidget.prototype.destroy = $.noop; | $( "#widget" ).testWidget().parent().remove(); | test( "auto-destroy - .remove() on child", function() { $.widget( "ui.testWidget", { _create: function() {}, destroy: function() { ok( false, "destroyed from .remove() on child" ); } }); $( "#widget" ).testWidget().children().remove(); // http://github.com/jquery/qunit/pull/34 $.ui.testWidget.prototype.destroy = $... |
$(document).ready(function() { $("video.jwplayer").jwplayer(); }); | return function() { $.fn.jwplayerController.play(player); return jwplayer(player); }; | $(document).ready(function() { $("video.jwplayer").jwplayer(); }); |
return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_TIME, arg); break; default: return $.fn.jwplayerController.mediaInfo(player).time; } return jwplayer(player.id); }; | player.complete(function() { player.play(); }); | return function(arg) { switch ($.fn.jwplayerUtils.typeOf(arg)) { case "function": addEventListener(player, $.fn.jwplayer.events.JWPLAYER_MEDIA_TIME, arg); break; default: return $.fn.jwplayerController.mediaInfo(player).time; } return jwplayer(player.id); }; |
removeEventListener(player, type, listener); | addEventListener(player, type, listener); | return function(type, listener) { removeEventListener(player, type, listener); }; |
return function () { re.events.afterRender.removeListener("initialSelect"); adminUsers.locate("userName").val("New Name").change(); jQuery(jQuery(adminUsers.userListEditor.list.options.selectors.row)[1]).click(); re.events.afterRender.addListener(function () { jqUnit.notVisible("Confiration dialog is now invisible", re... | adminUsersTest.test("Confirmation delete", function () { setupConfirmation(function (re) { re.events.afterRender.removeListener("initialSelect"); re.remove(); jqUnit.assertEquals("Confirmation Text Should Say", "Delete this record?", re.confirmation.locate("message:", re.confirmation.dlg).text()); jqUnit.isVisible("Del... | return function () { re.events.afterRender.removeListener("initialSelect"); adminUsers.locate("userName").val("New Name").change(); jQuery(jQuery(adminUsers.userListEditor.list.options.selectors.row)[1]).click(); re.events.after... |
print("TS for " + slave + " is " + ts.t + " and latest is " + latest.t); | print("TS for " + slave + " is " + ts.t+":"+ts.i + " and latest is " + latest.t+":"+latest.i); | function() { var synced = true; for(var i=0; i<this.liveNodes.slaves.length; i++) { var slave = this.liveNodes.slaves[i]; // Continue if we're connected to an arbiter if(res = slave.getDB("admin").runCommand({replSetGetStatus: 1})) { if(res.... |
new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); | jwplayer.utils.ajax(_skinPath, function(xmlrequest) { _loadSkin(xmlrequest.responseXML); }, function(path) { | new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); |
jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; | jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; | skinPath = jwplayer.html5.utils.getAbsolutePath(skinPath); | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.getSkinElement = function(component, element) { if (_loaded) { try { return _components[component].elements[element]; } catch (err) { jwplayer.html5.utils.log("No such skin component / element: ", [component, element]); | function _load() { if (skinPath === undefined) { _loadSkin(jwplayer.html5.defaultSkin().xml); } else { jwplayer.utils.ajax(skinPath, function(xmlrequest) { _loadSkin(xmlrequest.responseXML); }, function(path) { _loadSkin(jwplayer.html5.defaultSkin().xml); }); } } function _loadSkin(xml) { var components = xml.getEle... | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
return null; }; | if (_loading === false) { clearInterval(_completeInterval); _completeHandler(_skin); } } | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... |
this.getComponentSettings = function(component) { if (_loaded) { return _components[component].settings; } return null; }; | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... | |
function _completeImageLoad(img, element, component) { _skin[component].elements[element].height = img.height; _skin[component].elements[element].width = img.width; _skin[component].elements[element].src = img.src; _skin[component].elements[element].ready = true; _resetCompleteIntervalTest(); } _load(); | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); }; this.getSkinElement = function(component, element) ... | |
_model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, function(evt) { setTimeout(_completeHandler, 25); }); | _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_TIME, function(evt) { if (evt.position >= _model.playlist[_model.item].start && _oldstart >= 0) { _model.playlist[_model.item].start = _oldstart; _oldstart = -1; } }); | _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, function(evt) { setTimeout(_completeHandler, 25); }); |
jwplayer.utils.ajax(jwplayer.html5.utils.getAbsolutePath(_skinPath), function(xmlrequest) { | (function(jwplayer) { jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = skinPath; function _load() { if (_skinPath === undefined || _skinPath === "") { _loadSkin(jwplayer.html5.defaultS... | jwplayer.utils.ajax(jwplayer.html5.utils.getAbsolutePath(_skinPath), function(xmlrequest) { _loadSkin(xmlrequest.responseXML); }, function(path) { |
_loadSkin(jwplayer.html5.defaultSkin().xml); }); } } function _loadSkin(xml) { var components = xml.getElementsByTagName('component'); if (components.length === 0) { return; } for (var componentIndex = 0; componentIndex < components.length; componentIndex++) { var componentName = components[componentIndex].getAttrib... | jwplayer.utils.ajax(jwplayer.html5.utils.getAbsolutePath(_skinPath), function(xmlrequest) { _loadSkin(xmlrequest.responseXML); }, function(path) { | |
jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }, function() { new jwplayer.html5.skinloader("", function(skin) { _loaded = true; _components = skin... | jwplayer.html5.playlistitemlevel = function(config) { var _playlistitemlevel = { file: "", streamer: "", bitrate: 0, width: 0 | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }, function() { new jwplayer.html5.skinloader("", function(... |
this.getSkinElement = function(component, element) { if (_loaded) { try { return _components[component].elements[element]; } catch (err) { jwplayer.html5.utils.log("No such skin component / element: ", [component, element]); } | for (var property in _playlistitemlevel) { if (config[property] !== undefined) { _playlistitemlevel[property] = config[property]; | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }, function() { new jwplayer.html5.skinloader("", function(... |
return null; }; this.getComponentSettings = function(component) { if (_loaded) { return _components[component].settings; } return null; }; this.getComponentLayout = function(component) { if (_loaded) { return _components[component].layout; } return null; }; | } return _playlistitemlevel; | (function(jwplayer) { jwplayer.html5.skin = function() { var _components = {}; var _loaded = false; this.load = function(path, callback) { new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }, function() { new jwplayer.html5.skinloader("", function(... |
(function(jwplayer) { jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = skinPath; function _load() { if (_skinPath === undefined || _skinPath === "") { _loadSkin(jwplayer.html5.defaultS... | new jwplayer.html5.skinloader(path, function(skin) { _loaded = true; _components = skin; callback(); }); | (function(jwplayer) { /** Constructor **/ jwplayer.html5.skinloader = function(skinPath, completeHandler) { var _skin = {}; var _completeHandler = completeHandler; var _loading = true; var _completeInterval; var _skinPath = skinPath; /** Load the skin **/ function _load() { if (_skinPath === undefined || _sk... |
adminUsersTest.test("Confirmation delete", function () { var adminUsers; testOpts.userListEditor.options.details.options.confirmation.options.listeners = { afterFetchTemplate: function () { var re = adminUsers.userListEditor.details; re.events.afterRender.addListener(function () { | re.events.afterRender.addListener(function () { | adminUsersTest.test("Confirmation delete", function () { var adminUsers; testOpts.userListEditor.options.details.options.confirmation.options.listeners = { afterFetchTemplate: function () { var re = adminUsers.userListEditor.details; re.events.afterRender.addLi... |
jQuery(jQuery(adminUsers.userListEditor.list.options.selectors.row)[2]).click(); } }; adminUsers = cspace.adminUsers(".csc-users-userAdmin", testOpts); stop(); }); | adminUsersTest.test("Confirmation delete", function () { var adminUsers; testOpts.userListEditor.options.details.options.confirmation.options.listeners = { afterFetchTemplate: function () { var re = adminUsers.userListEditor.details; re.events.afterRender.addLi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.