rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
self._trigger(doSelect ? "selecting" : "unselecting", event, { selecting: selectee.element }); | if (doSelect) { self._trigger("selecting", event, { selecting: selectee.element }); } else { self._trigger("unselecting", event, { unselecting: selectee.element }); } | _mouseStart: function(event) { var self = this; this.opos = [event.pageX, event.pageY]; if (this.options.disabled) return; var options = this.options; this.selectees = $(options.filter, this.element[0]); this._trigger("start", event); $(options.appendTo).append(this.helper); // position helper (lasso) this.... |
_mouseStart: function(event) { return true; }, | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _mouseStart: function(event) { return true; }, |
"z-index": 100, "position": "absolute", | _mouseStart: function(event) { var self = this; this.opos = [event.pageX, event.pageY]; if (this.options.disabled) return; var options = this.options; this.selectees = $(options.filter, this.element[0]); this._trigger("start", event); $(options.appendTo).append(this.helper); // position helper (lasso) this.... | |
this._mouseSliding = false; | _mouseStop: function(event) { this.handles.removeClass("ui-state-active"); this._stop(event, this._handleIndex); this._change(event, this._handleIndex); this._handleIndex = null; this._clickOffset = null; this._animateOff = false; return false; }, | |
_mouseStop: function(event) { this.handles.removeClass("ui-state-active"); this._stop(event, this._handleIndex); this._change(event, this._handleIndex); this._handleIndex = null; this._clickOffset = null; return false; }, | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _mouseStop: function(event) { this.handles.removeClass("ui-state-active"); this._stop(event, this._handleIndex); this._change(event, this._handleIndex); this._handleIndex = null; this._clickOffset = null; return false; }, |
this._preventClickEvent = (event.target == this._mouseDownEvent.target); | if (event.target == this._mouseDownEvent.target) { $.data(event.target, this.widgetName + '.preventClickEvent', true); } | _mouseUp: function(event) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = (event.target == this._mouseDownEvent.target); this._mouseStop(e... |
_mouseUp: function(event) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = (event.target == this._mouseDownEvent.target); this._mouseStop(event); } re... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _mouseUp: function(event) { $(document) .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = (event.target == this._mouseDownEvent.target); this._mouseStop(e... |
this._mouseUpDelegate = function(event) { return self._mouseUp(event); }; | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | this._mouseUpDelegate = function(event) { return self._mouseUp(event); }; |
}, 50); | }, 13); | _mousewheel: function() { var self = this; this.element.bind("mousewheel", function(event, delta) { if (!self._start(event)) { return false; } self._spin((delta > 0 ? 1 : -1) * self.options.step, event); if (self.timeout) { window.clearTimeout(self.timeout); } self.timeout = window.setTimeout(funct... |
console.log("move " + direction + " with event " + event) | _move: function( direction, event ) { console.log("move " + direction + " with event " + event) if ( !this.menu.element.is(":visible") ) { console.log("move, menu not visible") this.search( null, event ); return; } if ( this.menu.first() && /^previous/.test(direction) || this.menu.last() && /^next/.test(d... | |
console.log("move, menu not visible") | _move: function( direction, event ) { console.log("move " + direction + " with event " + event) if ( !this.menu.element.is(":visible") ) { console.log("move, menu not visible") this.search( null, event ); return; } if ( this.menu.first() && /^previous/.test(direction) || this.menu.last() && /^next/.test(d... | |
console.log("move, first or last") | _move: function( direction, event ) { console.log("move " + direction + " with event " + event) if ( !this.menu.element.is(":visible") ) { console.log("move, menu not visible") this.search( null, event ); return; } if ( this.menu.first() && /^previous/.test(direction) || this.menu.last() && /^next/.test(d... | |
if ( !this.menu ) { | if ( !this.menu.element.is(":visible") ) { | _move: function( direction, event ) { if ( !this.menu ) { this.search( null, event ); return; } if ( this.menu.first() && /^previous/.test(direction) || this.menu.last() && /^next/.test(direction) ) { this.element.val( this.term ); this.menu.deactivate(); return; } this.menu[ direction ](); }, |
console.log("move, first or last") | _move: function( direction, event ) { if ( !this.menu.element.is(":visible") ) { this.search( null, event ); return; } if ( this.menu.first() && /^previous/.test(direction) || this.menu.last() && /^next/.test(direction) ) { this.element.val( this.term ); this.menu.deactivate(); return; } this.menu[ d... | |
_hide(document.getElementById(_domelement.id + "_muteButton")); _show(document.getElementById(_domelement.id + "_unmuteButton")); _hide(document.getElementById(_domelement.id + "_volumeSliderProgress")); | _hide(_elements.muteButton); _show(_elements.unmuteButton); _hide(_elements.volumeSliderProgress); | function _muteHandler(event) { if (event.mute) { _hide(document.getElementById(_domelement.id + "_muteButton")); _show(document.getElementById(_domelement.id + "_unmuteButton")); _hide(document.getElementById(_domelement.id + "_volumeSliderProgress")); } else { _show(document.getElementById(_domelemen... |
_show(document.getElementById(_domelement.id + "_muteButton")); _hide(document.getElementById(_domelement.id + "_unmuteButton")); _show(document.getElementById(_domelement.id + "_volumeSliderProgress")); | _show(_elements.muteButton); _hide(_elements.unmuteButton); _show(_elements.volumeSliderProgress); | function _muteHandler(event) { if (event.mute) { _hide(document.getElementById(_domelement.id + "_muteButton")); _show(document.getElementById(_domelement.id + "_unmuteButton")); _hide(document.getElementById(_domelement.id + "_volumeSliderProgress")); } else { _show(document.getElementById(_domelemen... |
_item(Math.floor(Math.random() * _model.playlist.length)); | _item(_getShuffleItem()); | function _next() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item + 1 == _model.playlist.length) { return _item(0); } else { return _item(_model.item + 1); }... |
return _item(0); | _item(0); | function _next() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item + 1 == _model.playlist.length) { return _item(0); } else { return _item(_model.item + 1); }... |
return _item(_model.item + 1); | _item(_model.item + 1); | function _next() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item + 1 == _model.playlist.length) { return _item(0); } else { return _item(_model.item + 1); }... |
_model.item = Math.floor(Math.random() * _model.playlist.length); | _item(Math.floor(Math.random() * _model.playlist.length)); | function _next() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _model.item = Math.floor(Math.random() * _model.playlist.length); } else if (_model.item + 1 == _model.playlist.length) { return _item(0); } else { return _item(_model.item + 1)... |
} if (_model.state != jwplayer.api.events.state.PLAYING && _model.state != jwplayer.api.events.state.BUFFERING) { _play(); | function _next() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _model.item = Math.floor(Math.random() * _model.playlist.length); } else if (_model.item + 1 == _model.playlist.length) { return _item(0); } else { return _item(_model.item + 1)... | |
if ( typeof item == "string" ) { | if ( typeof item === "string" ) { | _normalize: function( items ) { // assume all items have the right format when the first item is complete if ( items.length && items[0].label && items[0].value ) { return items; } return $.map( items, function(item) { if ( typeof item == "string" ) { return { label: item, value: item }; } ret... |
} if ($.isFunction(speed)) { callback = speed; speed = null; | function _normalizeArguments(effect, options, speed, callback) { // shift params for method overloading if (typeof effect == 'object') { callback = options; speed = null; options = effect; effect = options.effect; } if ($.isFunction(options)) { callback = options; speed = null; options = {}; } if (typeof options... | |
} if (typeof options == 'number' || $.fx.speeds[options]) { callback = speed; speed = options; options = {}; | function _normalizeArguments(effect, options, speed, callback) { // shift params for method overloading if (typeof effect == 'object') { callback = options; speed = null; options = effect; effect = options.effect; } if ($.isFunction(options)) { callback = options; speed = null; options = {}; } if ($.isFunction(s... | |
if (typeof options == 'number') { | if (typeof options == 'number' || $.fx.speeds[options]) { | function _normalizeArguments(effect, options, speed, callback) { // shift params for method overloading if (typeof effect == 'object') { callback = options; speed = null; options = effect; effect = options.effect; } if ($.isFunction(options)) { callback = options; speed = null; options = {}; } if (typeof options... |
? speed : $.fx.speeds[speed] || $.fx.speeds._default; | ? speed : speed in $.fx.speeds ? $.fx.speeds[speed] : $.fx.speeds._default; | function _normalizeArguments(effect, options, speed, callback) { // shift params for method overloading if (typeof effect == 'object') { callback = options; speed = null; options = effect; effect = options.effect; } if ($.isFunction(options)) { callback = options; speed = null; options = {}; } if (typeof ... |
if (_model.plugins.config[pluginName].position !== jwplayer.html5.view.positions.OVER) { | if (_hasPosition(_model.plugins.config[pluginName].position)) { | function _normalscreenComponentResizer(pluginName, zIndex) { if (_model.plugins.object[pluginName].getDisplayElement !== undefined) { if (_model.plugins.config[pluginName].position !== jwplayer.html5.view.positions.OVER) { var style = _getComponentPosition(pluginName); style.zIndex = zIndex; return s... |
if (_model.plugins.object[pluginName].getDisplayElement().parentElement === null) { | if (_model.plugins.object[pluginName].getDisplayElement().parentNode === null) { | function _normalscreenComponentResizer(pluginName, zIndex) { if (_model.plugins.object[pluginName].getDisplayElement !== undefined) { if (_hasPosition(_model.plugins.config[pluginName].position)) { if (_model.plugins.object[pluginName].getDisplayElement().parentElement === null) { _wrapper.appendChild(_... |
valueMouse = percentMouse * valueTotal, valueMouseModStep = valueMouse % this.options.step, normValue = this._valueMin() + valueMouse - valueMouseModStep; | valueMouse = percentMouse * valueTotal; | _normValueFromMouse: function(position) { var pixelTotal, pixelMouse; if ('horizontal' == this.orientation) { pixelTotal = this.elementSize.width; pixelMouse = position.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0); } else { pixelTotal = this.elementSize.height; pixelMouse =... |
_normValueFromMouse: function(position) { var pixelTotal, pixelMouse; if ('horizontal' == this.orientation) { pixelTotal = this.elementSize.width; pixelMouse = position.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0); } else { pixelTotal = this.elementSize.height; pixelMouse = position.y... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _normValueFromMouse: function(position) { var pixelTotal, pixelMouse; if ('horizontal' == this.orientation) { pixelTotal = this.elementSize.width; pixelMouse = position.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0); } else { pixelTotal = this.elementSize.height; pixelMouse =... |
console.log((_height - _imageHeight) / 2); | function _onImageLoad(evt){ _imageWidth = _display.display_image.naturalWidth; _imageHeight = _display.display_image.naturalHeight; jwplayer.utils.stretch(_api.jwGetStretching(), _display.display_image, _width, _height, _imageWidth, _imageHeight); _css(_display.display_image, { top: (_height - _imageHeight... | |
jwplayer.utils.stretch(_api.jwGetStretching(), _display.display_image, _width, _height, _imageWidth, _imageHeight); _css(_display.display_image, { top: (_height - _imageHeight) / 2 }); console.log((_height - _imageHeight) / 2); | _stretch(); | function _onImageLoad(evt){ _imageWidth = _display.display_image.naturalWidth; _imageHeight = _display.display_image.naturalHeight; jwplayer.utils.stretch(_api.jwGetStretching(), _display.display_image, _width, _height, _imageWidth, _imageHeight); _css(_display.display_image, { top: (_height - _imageHeight... |
jwplayer.utils.stretch(_api.jwGetStretching(), _display.display_image, _width, _height, _imageWidth, _imageHeight); _css(_display.display_image, { top: (_height - _imageHeight) / 2 }); | _stretch(); | function _onImageLoad(evt){ _imageWidth = _display.display_image.naturalWidth; _imageHeight = _display.display_image.naturalHeight; jwplayer.utils.stretch(_api.jwGetStretching(), _display.display_image, _width, _height, _imageWidth, _imageHeight); _css(_display.display_image, { top: (_height - _imageHeight... |
var date = this._getDateDatepicker(target); | var date = this._getDateDatepicker(target, true); | _optionDatepicker: function(target, name, value) { var inst = this._getInst(target); if (arguments.length == 2 && typeof name == 'string') { return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) : (inst ? (name == 'all' ? $.extend({}, inst.settings) : this._get(inst, name)) : null)); } var sett... |
this._attachments($(target), inst); | _optionDatepicker: function(target, name, value) { var inst = this._getInst(target); if (arguments.length == 2 && typeof name == 'string') { return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) : (inst ? (name == 'all' ? $.extend({}, inst.settings) : this._get(inst, name)) : null)); } var sett... | |
var b = myfaces._impl.core._Runtime.browser; | var b = this._RT.browser; | _outerHTMLCompliant: function(item, markup) { var b = myfaces._impl.core._Runtime.browser; var evalNodes = null; var dummyPlaceHolder = document.createElement("div"); dummyPlaceHolder.innerHTML = markup; evalNodes = dummyPlaceHolder.childNodes; if ('undefined' == typeof eva... |
return this.replaceElements(item, evalNodes) | return this.replaceElements(item, evalNodes); | _outerHTMLCompliant: function(item, markup) { var b = myfaces._impl.core._Runtime.browser; var evalNodes = null; var dummyPlaceHolder = document.createElement("div"); dummyPlaceHolder.innerHTML = markup; evalNodes = dummyPlaceHolder.childNodes; if ('undefined' == typeof eva... |
var itemNodeName = item.nodeName.toLowerCase(); if (itemNodeName == "table" || itemNodeName == "thead" || itemNodeName == "tbody" || itemNodeName == "tfoot" || itemNodeName == "th" || itemNodeName == "tr" || itemNodeName == "td"){ evalNodes = this._outerHTMLGetEvalTableNodes(item, markup); | if (this._isTableElement(item)) { evalNodes = this._buildTableNodes(item, markup); | _outerHTMLCompliant: function(item, markup) { var evalNodes; var itemNodeName = item.nodeName.toLowerCase(); if (itemNodeName == "table" || itemNodeName == "thead" || itemNodeName == "tbody" || itemNodeName == "tfoot" || itemNodeName == "th" || itemNodeName == "tr" |... |
var dummyPlaceHolder = this.getDummyPlaceHolder(); dummyPlaceHolder.innerHTML = markup; evalNodes = dummyPlaceHolder.childNodes; | evalNodes = this._buildNodesCompliant(markup); | _outerHTMLCompliant: function(item, markup) { var evalNodes; var itemNodeName = item.nodeName.toLowerCase(); if (itemNodeName == "table" || itemNodeName == "thead" || itemNodeName == "tbody" || itemNodeName == "tfoot" || itemNodeName == "th" || itemNodeName == "tr" |... |
var dummyPlaceHolder = this._dummyPlaceHolder; | var dummyPlaceHolder = this.getDummyPlaceHolder(); | _outerHTMLCompliant: function(item, markup) { var dummyPlaceHolder = this._dummyPlaceHolder; //document.createElement("div"); dummyPlaceHolder.innerHTML = markup; var evalNodes = dummyPlaceHolder.childNodes; var evalNodeLen = evalNodes.length; if (evalNodeLen == 1) { va... |
var b = this._RT.browser; | _outerHTMLNonCompliant: function(item, markup) { var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies between ie and its simulations in th... | |
while (probe) { probe = probe.childNodes[0]; | var newProbe = probe; while (newProbe) { newProbe = newProbe.childNodes[0]; | _outerHTMLNonCompliant: function(item, markup) { var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies between ie and its simulations in th... |
delete dummyPlaceHolder; | _outerHTMLNonCompliant: function(item, markup) { var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies between ie and its simulations in th... | |
evalNodes = this._Lang.objToArray(evalNodes); if (evalNodes.length == 1) { item.parentNode.replaceChild(evalNodes[0], item); delete item; return evalNodes[0]; } else { return this.replaceElements(item, evalNodes) | try { evalNodes = this._Lang.objToArray(evalNodes); if (evalNodes.length == 1) { var ret = evalNodes[0]; this.replaceElement(item, evalNodes[0]); return ret; } else { return this.replaceElements(item, evalNodes); } } finally { if (b.isIE && b.isIE < 8) { this._removeNode(dummyPlaceHolder, false); } | _outerHTMLNonCompliant: function(item, markup) { var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies between ie and its simulations in th... |
var probe = this.getDummyPlaceHolder(); var isTableContentTag = false; var itemNodeName = item.nodeName.toLowerCase(); if (itemNodeName == "thead" || itemNodeName == "tbody" || itemNodeName == "tfoot" || itemNodeName == "th" || itemNodeName == "tr"){ probe.innerHTML = "<table><"+itemNodeName+"></"+itemNodeName+">"+"... | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... | |
evalNodes = this._Lang.objToArray(evalNodes); | if (this._isTableElement(item)) { evalNodes = this._buildTableNodes(item, markup); } else { evalNodes = this._buildNodesNonCompliant(markup); } | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... |
var probe = this._dummyPlaceHolder; | var probe = this.getDummyPlaceHolder(); | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... |
var dummyPlaceHolder = this._dummyPlaceHolder; | var dummyPlaceHolder = this.getDummyPlaceHolder(); | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... |
dummyPlaceHolder.innerHTML = ""; | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... | |
dummyPlaceHolder.innerHTML = ""; | _outerHTMLNonCompliant: function(item, markup) { var b = this._RT.browser; var evalNodes = null; //now to the non w3c compliant browsers //http://blogs.perl.org/users/clinton_gormley/2010/02/forcing-ie-to-accept-script-tags-in-innerhtml.html //we have to cope with deficiencies bet... | |
if (_model.plugins.object[pluginName].getDisplayElement().parentElement === null) { | if (_model.plugins.object[pluginName].getDisplayElement().parentNode === null) { | function _overlayComponentResizer(pluginName, zIndex) { if (_model.plugins.object[pluginName].getDisplayElement().parentElement === null) { _box.appendChild(_model.plugins.object[pluginName].getDisplayElement()); } return { position: "absolute", //top: getNumber(_box.style.top), //left: getNumber(_b... |
width: (_model.width - getNumber(_box.style.left) - getNumber(_box.style.right)), height: (_model.height - getNumber(_box.style.top) - getNumber(_box.style.bottom)), | width: (_iwidth - parseDimension(_box.style.left) - parseDimension(_box.style.right)), height: (_iheight - parseDimension(_box.style.top) - parseDimension(_box.style.bottom)), | function _overlayComponentResizer(pluginName, zIndex) { if (_model.plugins.object[pluginName].getDisplayElement().parentNode === null) { _box.appendChild(_model.plugins.object[pluginName].getDisplayElement()); } return { position: "absolute", width: (_model.width - getNumber(_box.style.left) - getNumbe... |
val = window.Globalization ? Globalization.parseFloat(val) : +val; | val = window.Globalization && this.options.numberformat ? Globalization.parseFloat(val) : +val; | _parse: function(val) { var input = val; if (typeof val == 'string') { // special case for currency formatting until Globalization handles currencies if (this.options.numberformat == "C" && window.Globalization) { // parseFloat should accept number format, including currency var culture = Globalization.cul... |
switch (_model.state) { case jwplayer.api.events.state.IDLE: _model.setActiveMediaProvider(_model.playlist[_model.item]); _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getMedia().play); if (_model.config.repeat) { _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, func... | if (_itemUpdated || _model.state == jwplayer.api.events.state.IDLE) { _model.setActiveMediaProvider(_model.playlist[_model.item]); _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, function() { | function _play() { try { if (_model.playlist[0].levels[0].file.length > 0) { switch (_model.state) { case jwplayer.api.events.state.IDLE: _model.setActiveMediaProvider(_model.playlist[_model.item]); _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getMedia().pla... |
break; | }); if (_model.config.repeat) { _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, function(evt) { setTimeout(_completeHandler, 25); }); } _model.getMedia().load(_model.playlist[_model.item]); _itemUpdated = false; } else if (_model.state == jwplayer.api.events.state.PAUSED) { _model.getMedia().play()... | function _play() { try { if (_model.playlist[0].levels[0].file.length > 0) { switch (_model.state) { case jwplayer.api.events.state.IDLE: _model.setActiveMediaProvider(_model.playlist[_model.item]); _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getMedia().pla... |
_eventDispatcher.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getMedia().play); | _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, function() { _model.getMedia().play(); }); | function _play() { try { if (_model.playlist[0].levels[0].file.length > 0) { switch (_model.state) { case jwplayer.api.events.state.IDLE: _model.setActiveMediaProvider(_model.playlist[_model.item]); _eventDispatcher.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, _model.getM... |
if (_model.config.repeat) { _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_COMPLETE, function(evt) { setTimeout(_completeHandler, 25); }); } | function _play() { try { if (_model.playlist[0].levels[0].file.length > 0) { switch (_model.state) { case jwplayer.api.events.state.IDLE: if (_itemUpdated) { _model.setActiveMediaProvider(_model.playlist[_model.item]); _model.addEventListener(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER... | |
.position($.extend({ of: window }, position)); | .position(position); | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; if (position) { // deep extending converts arrays to objects in jQuery <= 1.3.2 :-( // if (typeof position == 'string' || $.isArray(position)) { // myAt = $.isArray(position) ? position : position.split(' '); if (typeof position ==... |
this.uiDialog.position({ my: myAt.join(' '), at: myAt.join(' '), offset: offset.join(' '), of: window, collision: 'fit' }); | this.uiDialog .css({ top: 0, left: 0 }) .position({ my: myAt.join(' '), at: myAt.join(' '), offset: offset.join(' '), of: window, collision: 'fit' }); | _position: function(position) { var myAt = [], offset = [0, 0]; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : position.split... |
position = position || $.ui.dialog.prototype.options.position; | if (position) { | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : p... |
if (typeof position === 'string' || (typeof position === 'object' && '0' in position)) { myAt = position.split ? position.split(' ') : [position[0], position[1]]; if (myAt.length === 1) { myAt[1] = myAt[0]; } | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : p... | |
if (typeof position === 'string' || (typeof position === 'object' && '0' in position)) { myAt = position.split ? position.split(' ') : [position[0], position[1]]; if (myAt.length === 1) { myAt[1] = myAt[0]; } $.each(['left', 'top'], function(i, offsetPosition) { if (+myAt[i] === myAt[i]) { offset[i] = myAt[i]; myAt[i]... | $.each(['left', 'top'], function(i, offsetPosition) { if (+myAt[i] === myAt[i]) { offset[i] = myAt[i]; myAt[i] = offsetPosition; } }); position = { my: myAt.join(" "), at: myAt.join(" "), offset: offset.join(" ") }; } position = $.extend({}, $.ui.dialog.prototype.options.position, position); } else { position = $.ui.... | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : p... |
.position({ my: myAt.join(' '), at: myAt.join(' '), offset: offset.join(' '), of: window, collision: 'fit', using: function(pos) { var topOffset = $(this).css(pos).offset().top; if (topOffset < 0) { $(this).css('top', pos.top - topOffset); } } }); | .position(position); | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : p... |
_position: function(pos) { var wnd = $(window), doc = $(document), pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), minTop = pTop; if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) { pos = [ pos == 'right' || pos == 'left' ? pos : 'center', pos == 'top' || pos == 'bottom' ? pos : 'middle' ]; } if (po... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _position: function(pos) { var wnd = $(window), doc = $(document), pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), minTop = pTop; if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) { pos = [ pos == 'right' || pos == 'left' ? pos : 'center', pos == 'top' || pos == 'bottom' ? pos : 'middl... |
collision: 'fit' | collision: 'fit', using: function(pos) { var topOffset = $(this).css(pos).offset().top; if (topOffset < 0) { $(this).css('top', pos.top - topOffset); } } | _position: function(position) { var myAt = [], offset = [0, 0]; position = position || $.ui.dialog.prototype.options.position; // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(// if (typeof position == 'string' || $.isArray(position)) {// myAt = $.isArray(position) ? position : position.split... |
this.uiDialog .css({ top: 0, left: 0 }) .position(position); | this.uiDialog.position(position); | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; if (position) { // deep extending converts arrays to objects in jQuery <= 1.3.2 :-( // if (typeof position == 'string' || $.isArray(position)) { // myAt = $.isArray(position) ? position : position.split(' '); if (typeof position ==... |
.position(position); | .position($.extend({ of: window }, position)); | _position: function(position) { var myAt = [], offset = [0, 0], isVisible; if (position) { // deep extending converts arrays to objects in jQuery <= 1.3.2 :-( // if (typeof position == 'string' || $.isArray(position)) { // myAt = $.isArray(position) ? position : position.split(' '); if (typeof position ==... |
if (_model.duration === 0) { _model.duration = event.target.duration; | if (_model.duration === 0 || isNaN(_model.duration)) { _model.duration = Math.round(event.target.duration * 10) / 10 | function _positionHandler(event) { if (_stopped) { return; } if (event !== undefined && event.target !== undefined) { if (_model.duration === 0) { _model.duration = event.target.duration; } if (!_start && _container.readyState > 0) { _setState(jwplayer.api.events.state.PLAYING); } i... |
_model.duration = Math.round(event.target.duration * 10) / 10 | _model.duration = Math.round(event.target.duration * 10) / 10; | function _positionHandler(event) { if (_stopped) { return; } if (event !== undefined && event.target !== undefined) { if (_model.duration === 0 || isNaN(_model.duration)) { _model.duration = Math.round(event.target.duration * 10) / 10 } if (!_start && _container.readyState > 0) { _setStat... |
if (_model.duration === 0) { _model.duration = event.target.duration; | if (_model.duration === 0 || isNaN(_model.duration)) { _model.duration = Math.round(event.target.duration * 10) / 10 | function _positionHandler(event) { if (_stopped) { return; } if (event !== undefined && event.target !== undefined) { if (_model.duration === 0) { _model.duration = event.target.duration; } if (_state == jwplayer.api.events.state.PLAYING) { if (!_start && _container.readyState > 0) { ... |
if (!_start && _container.readyState > 0) { _setState(jwplayer.api.events.state.PLAYING); } | function _positionHandler(event) { if (_stopped) { return; } if (event !== undefined && event.target !== undefined) { if (_model.duration === 0) { _model.duration = event.target.duration; } if (_state == jwplayer.api.events.state.PLAYING) { if (!_start && _container.readyState > 0) { ... | |
if (!jwplayer.html5.utils.isNull(event.target)) { | if (!(event.target === undefined)) { | function _positionHandler(event) { if (_stopped) { return; } if (!jwplayer.html5.utils.isNull(event.target)) { if (_model.duration === 0) { _model.duration = event.target.duration; } if (_state == jwplayer.api.events.state.PLAYING) { _model.position = Math.round(event.target.currentTime ... |
if (!_start && _container.readyState > 0) { _start = true; _container.currentTime = _model.playlist[_model.item].start; _container.volume = _model.volume / 100; _container.muted = _model.mute; } | function _positionHandler(event) { if (_stopped) { return; } if (!jwplayer.html5.utils.isNull(event.target)) { if (_model.duration === 0) { _model.duration = event.target.duration; } if (_state == jwplayer.api.events.state.PLAYING) { _model.position = Math.round(event.target.currentTime ... | |
_container.currentTime = _model.playlist[_model.item].start; | try { _container.currentTime = _model.playlist[_model.item].start; } catch (err) { } | function _positionHandler(event) { if (_stopped) { return; } if (event !== undefined && event.target !== undefined) { if (_model.duration === 0 || isNaN(_model.duration)) { _model.duration = Math.round(event.target.duration * 10) / 10; } if (!_start && _container.readyState > 0) { _setSta... |
_item(Math.floor(Math.random() * _model.playlist.length)); | _item(_getShuffleItem()); | function _prev() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item === 0) { return _item(_model.playlist.length - 1); } else { return _item(_model.item - 1); } ... |
return _item(_model.playlist.length - 1); | _item(_model.playlist.length - 1); | function _prev() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item === 0) { return _item(_model.playlist.length - 1); } else { return _item(_model.item - 1); } ... |
return _item(_model.item - 1); | _item(_model.item - 1); | function _prev() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _item(Math.floor(Math.random() * _model.playlist.length)); } else if (_model.item === 0) { return _item(_model.playlist.length - 1); } else { return _item(_model.item - 1); } ... |
_model.item = Math.floor(Math.random() * _model.playlist.length); | _item(Math.floor(Math.random() * _model.playlist.length)); | function _prev() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _model.item = Math.floor(Math.random() * _model.playlist.length); } else if (_model.item === 0) { return _item(_model.playlist.length - 1); } else { return _item(_model.item - 1); ... |
} if (_model.state != jwplayer.api.events.state.PLAYING && _model.state != jwplayer.api.events.state.BUFFERING) { _play(); | function _prev() { try { if (_model.playlist[0].levels[0].file.length > 0) { if (_model.config.shuffle) { _model.item = Math.floor(Math.random() * _model.playlist.length); } else if (_model.item === 0) { return _item(_model.playlist.length - 1); } else { return _item(_model.item - 1); ... | |
if (_bufferFull === false) { | if (_bufferFull === false && _state == jwplayer.api.events.state.BUFFERING) { | function _progressHandler(event) { var bufferPercent, bufferTime; if (event !== undefined && event.lengthComputable && event.total) { bufferPercent = event.loaded / event.total * 100; bufferTime = bufferPercent / 100 * (_model.duration - _container.currentTime); } else if ((_container.buffered !== undefin... |
if (50 < bufferPercent && !_bufferingComplete) { clearTimeout(_bufferBackupTimeout); _bufferBackup(); } | function _progressHandler(event) { var bufferPercent, bufferTime; if (event !== undefined && event.lengthComputable && event.total) { bufferPercent = event.loaded / event.total * 100; bufferTime = bufferPercent / 100 * (_model.duration - _container.currentTime); } else if ((_container.buffered !== undefin... | |
if (false) { if (bufferFill < 25 && _state == jwplayer.api.events.state.PLAYING) { _setState(jwplayer.api.events.state.BUFFERING); _bufferFull = false; if (!_container.seeking) { _container.pause(); } } else if (bufferFill > 95 && _state == jwplayer.api.events.state.BUFFERING && _bufferFull === false && bufferTime > 0)... | function _progressHandler(event) { var bufferPercent, bufferTime, bufferFill; if (!isNaN(event.loaded / event.total)) { bufferPercent = event.loaded / event.total * 100; bufferTime = bufferPercent / 100 * (_model.duration - _container.currentTime); } else if ((_container.buffered !== undefined) && (_conta... | |
_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL, {}); | _eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_BUFFER_FULL); | function _progressHandler(event) { var bufferPercent, bufferTime, bufferFill; if (!isNaN(event.loaded / event.total)) { bufferPercent = event.loaded / event.total * 100; bufferTime = bufferPercent / 100 * (_model.duration - _container.currentTime); } else if ((_container.buffered !== undefined) && (_conta... |
if (!jwplayer.html5.utils.isNull(bufferPercent)) { | if (!(bufferPercent === null)) { | function _progressHandler(event) { var bufferPercent, bufferTime, bufferFill; if (!isNaN(event.loaded / event.total)) { bufferPercent = event.loaded / event.total * 100; bufferTime = bufferPercent / 100 * (_model.duration - _container.currentTime); } else if ((_container.buffered !== undefined) && (_conta... |
var isArr = resultNode instanceof Array; | var isArr = 'undefined' != typeof resultNode.length && 'undefined' == typeof resultNode.nodeType; | _pushOperationResult: function(resultNode) { var pushSubnode = this._Lang.hitch(this, function(currNode) { var parentForm = this._Dom.getParent(currNode, "form"); if (null != parentForm) { this._updateForms.push(parentForm); } else ... |
while (this._size > -1 && this.length() > this._size) { | while (null != this._size && 'undefined' != typeof this._size && this._size > -1 && this.length() > this._size) { | _readjust: function() { while (this._size > -1 && this.length() > this._size) { this.dequeue(); } }, |
if (!rootNode.childNodes) { | if (!rootNode.childNodes) { return ret; } var retLen = ret.length; var childLen = rootNode.childNodes.length; for (var cnt = 0; (deepScan || retLen == 0) && cnt < childLen; cnt++) { ret = ret.concat(this._recursionSearchAll(rootNode.childNodes[cnt], filter, deepScan)); } | _recursionSearchAll: function(rootNode, filter, deepScan) { var ret = []; //fix the value to prevent undefined errors if (filter(rootNode)) { ret.push(rootNode); if (!deepScan) return ret; } // if (!rootNode.childNodes) { return ret; ... |
var retLen = ret.length; var childLen = rootNode.childNodes.length; for (var cnt = 0; (deepScan || retLen == 0) && cnt < childLen; cnt++) { ret = ret.concat(this._recursionSearchAll(rootNode.childNodes[cnt], filter, deepScan)); } return ret; } | _recursionSearchAll: function(rootNode, filter, deepScan) { var ret = []; //fix the value to prevent undefined errors if (filter(rootNode)) { ret.push(rootNode); if (!deepScan) return ret; } // if (!rootNode.childNodes) { return ret; ... | |
let url = this.baseURI + "index_" + this._prefs.get("data.version") + ".json?" + | let url = this.dataURL + "index_" + this._prefs.get("data.version") + ".json?" + | _refreshDataWithMetrics: function() { let appInfo = Cc["@mozilla.org/xre/app-info;1"]. getService(Ci.nsIXULAppInfo); let xulRuntime = Cc["@mozilla.org/xre/app-info;1"]. getService(Ci.nsIXULRuntime); // Calculate the amount of time (in hours) since the persona wa... |
let url = this.baseURI + lastTwoDigits.join("/") + "/" + | let url = this.dataURL + lastTwoDigits.join("/") + "/" + | _refreshPersona: function() { // Only refresh the persona if the user selected a specific persona // from the gallery. If the user selected a random persona, we'll change it // the next time we refresh the directory; if the user selected // the default persona, we don't need to refresh it, as it doesn't ... |
.toggleClass( "ui-corner-right", value === this.max ) .width( value + "%" ); | .toggleClass( "ui-corner-right", value === this.options.max ) .width( percentage.toFixed(0) + "%" ); | _refreshValue: function() { var value = this.value(); this.valueDiv .toggleClass( "ui-corner-right", value === this.max ) .width( value + "%" ); this.element.attr( "aria-valuenow", value ); } |
_refreshValue: function(animate) { var oRange = this.options.range, o = this.options, self = this; if (this.options.values && this.options.values.length) { var vp0, vp1; this.handles.each(function(i, j) { var valPercent = (self.values(i) - self._valueMin()) / (self._valueMax() - self._valueMin()) * 100; var _set = {}... | (function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false... | _refreshValue: function(animate) { var oRange = this.options.range, o = this.options, self = this; if (this.options.values && this.options.values.length) { var vp0, vp1; this.handles.each(function(i, j) { var valPercent = (self.values(i) - self._valueMin()) / (self._valueMax() - self._valueMin()) * 100; va... |
var removeHiddenValue = this._Lang.hitch(this, this._removeHiddenValue); for (var key in this._passThrough) { removeHiddenValue(key); | var toDelete = []; var possibleKeys = {}; for(var key in this._passThrough) { possibleKeys[key] = true; | _removeAjaxParams: function(oldTarget) { var _Impl = myfaces._impl.core.Impl; this._sourceForm.target = oldTarget; //some browsers optimize this and loose their scope that way, //I am still not sure why, but probably because the function itself //was called under finally and I ran... |
removeHiddenValue(this.JX_PART_IFRAME); removeHiddenValue(this.MF_PART_IFRAME); | possibleKeys[this.JX_PART_IFRAME] = true; possibleKeys[this.MF_PART_IFRAME] = true; (possibleKeys["javax.faces.ViewState"])? delete possibleKeys["javax.faces.ViewState"]:null; for(var cnt = this._sourceForm.elements.length -1; cnt >= 0; cnt--) { var elem = this._sourceForm.elements[cnt]; if(possibleKeys[elem.name] && ... | _removeAjaxParams: function(oldTarget) { var _Impl = myfaces._impl.core.Impl; this._sourceForm.target = oldTarget; //some browsers optimize this and loose their scope that way, //I am still not sure why, but probably because the function itself //was called under finally and I ran... |
for (var cnt = node.childNodes.length - 1; cnt >= 0; cnt -= 1) { var childNode = node.childNodes[cnt]; if ('undefined' != typeof childNode.childNodes && node.childNodes.length) this._removeChildNodes(childNode); try { var nodeName = (childNode.nodeName) ? childNode.nodeName.toLowerCase() : null; if (!disallowedNod... | for (var cnt = node.childNodes.length - 1; cnt >= 0; cnt -= 1) { var childNode = node.childNodes[cnt]; if ('undefined' != typeof childNode.childNodes && node.childNodes.length) this._removeChildNodes(childNode); try { var nodeName = (childNode.nodeName) ? childNode.nodeName.toLowerCase() : null; if (!disallowedNod... | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... |
if (!b.isIEMobile) { delete childNode; } | } catch (e) { | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... |
} catch (e) { | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... | |
}, | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... | |
if (childNode.hasChildNodes()) | if ('undefined' != typeof childNode.childNodes && node.childNodes.length) | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... |
delete childNode; | if (!b.isIEMobile) { delete childNode; } | _removeChildNodes: function(node, breakEventsOpen) { if (!node) return; //node types which cannot be cleared up by normal means var disallowedNodes = { "thead": true, "tbody": true, "tr": true, "td": true }; //for now we do not enable it... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.