rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (cached.content_type == 'text/plain') { | if (cached.type == 'text/plain') { | function mangle_deb_bugnumbers(cached, vs) { if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/) && !cached.uri.match(/changelog\.Debian/)) return true; var num_re = /([0-9]+)/g; var rewrite_closes_fn = function (str) { return str.replace(num_re, '<a href="http://bugs.debian.org/$1... |
Sortable._marker.style.zIndex = 'absolute'; | mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; Sortable._marker.style.zIndex = 'absolute'; doc... | |
Sortable._marker = document.createElement('DIV'); | Sortable._marker = $('dropmarker') || document.createElement('DIV'); | mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("body").item(0).append... |
Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; | mark: function(dropon, position) { // mark on ghosting only var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return; if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.ad... | |
Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') if(sortable.overlap == 'horizontal') Sortable._marker.style.left = (offsets[0]+dropon.clientWidth) + 'px'; else Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; | mark: function(dropon, position) { // mark on ghosting only var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return; if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.ad... | |
var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return; | mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("bo... | |
this.getEntry(this.index).scrollIntoView(false); | markNext: function() { if(this.index < this.entryCount-1) this.index++ else this.index = 0; }, | |
else this.index = this.entryCcount-1; | else this.index = this.entryCount-1; | markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; }, |
this.getEntry(this.index).scrollIntoView(true); | markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCount-1; }, | |
return mtchstr.match(final_mask); | return mtchstr.toUpperCase().match(final_mask.toUpperCase()); | function match_irc_mask(mtchstr,mask) { final_mask="^"; mask=mask.replace(/[.]/g,"\\\."); mask=mask.replace(/[?]/g,"."); mask=mask.replace(/[*]/g,".*?"); final_mask=final_mask + mask + "$"; return mtchstr.match(final_mask);} |
return elements.select(selector.match.bind(selector)); | return elements.select(selector.match.bind(selector)).collect(Element.extend); | matchElements: function(elements, expression) { var selector = new Selector(expression); return elements.select(selector.match.bind(selector)); }, |
PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual); }; | this.matches = function(actual) { return this.regexp.test(actual); }; | PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual);}; |
if (value >= (result || value)) | if (result == undefined || value >= result) | max: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; }); return result; }, |
return(this.isVertical() ? this.track.offsetHeight - this.alignY : this.track.offsetWidth - this.alignX); | return(this.isVertical() ? (this.track.offsetHeight != 0 ? this.track.offsetHeight : this.track.style.height.replace(/px$/,"")) - this.alignY : (this.track.offsetWidth != 0 ? this.track.offsetWidth : this.track.style.width.replace(/px$/,"")) - this.alignY); | maximumOffset: function(){ return(this.isVertical() ? this.track.offsetHeight - this.alignY : this.track.offsetWidth - this.alignX); }, |
menu.style.position = 'absolute'; menu.style.zIndex = 1000; | menu.style.position = is_gecko ? 'fixed' : 'absolute'; menu.style.zIndex = 1; | function menu_init(object_name){ var menu = document.getElementById(object_name + '_menu'); var object = document.getElementById(object_name); if (menu == null|| object == null) { return; } object.onclick = function() { /* Open or close the menu */ if (menu.style.display == 'none') { menu_show(object_name); } ... |
if (!is_gecko) { var window_offset = (window.pageYOffset) ? window.pageYOffset : (document.body.scrollTop) ? document.body.scrollTop : document.documentElement.scrollTop; object_offsets['top'] = Number(window_offset) + object_offsets['top']; } | function menu_show(object_name){ var menu = document.getElementById(object_name + '_menu'); var object = document.getElementById(object_name); if (menu == null|| object == null) { return; } // If a menu is open, lets close it if (active_menu) { menu_hide(active_menu); } active_menu = object_name; // best to do this... | |
function menuOut() { document.onclick = eventHideMenu; if (document.all) event.cancelBubble=true } | function menuOut() { document.onclick = eventHideMenu; if (window.event != null) window.event.cancelBubble=true; } | function menuOut() { document.onclick = eventHideMenu; if (document.all) event.cancelBubble=true } |
function menuOver() { document.onclick = null; if (document.all) event.cancelBubble=true } | function menuOver() { document.onclick = null; if (window.event != null) window.event.cancelBubble=true; } | function menuOver() { document.onclick = null; if (document.all) event.cancelBubble=true } |
if (!AutoValidator.validate(formObj)) { alert(tinyMCE.getLang('lang_invalid_data')); return false; } | function mergeCells() { var args = new Array(); var formObj = document.forms[0]; args["numcols"] = formObj.numcols.value; args["numrows"] = formObj.numrows.value; tinyMCEPopup.execCommand("mceTableMergeCells", false, args); tinyMCEPopup.close();} | |
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; | this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P'); | function Messagemenu(){ var width=31; if(width<8+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name.length) width=8+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name.length this.items=new Array(); this.xpos=7; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\... |
if (value <= (result || value)) | if (result == undefined || value < result) | min: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; }); return result; }, |
return new Color(rgb); | return new Color(rgb, 'rgb'); | mix: function(){ var colors = $A(arguments); var alpha = ($type(colors[colors.length-1]) == 'number') ? colors.pop() : 50; var rgb = this.copy(); colors.each(function(color){ color = new Color(color); for (var i = 0; i < 3; i++) rgb[i] = Math.round((rgb[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); }... |
if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; | if ($type(colors[colors.length-1]) == 'number') alpha = colors.pop(); var mixed = this.copy(); | mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100... |
var rgb = []; | mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100... | |
for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); | for (var i = 0; i < 3; i++) mixed[i] = Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); | mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100... |
cocoon.sendStatus(201); | sendStatus(201); | function mkcol() { var status = executeUsecase("webdav.mkcol"); if(status) cocoon.sendStatus(201); else sendStatus(403);} |
var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval; | var doc_location = document.location.toString(); var end_of_base_ref = doc_location.indexOf('TestRunner.html') var base_ref = doc_location.substring(0,end_of_base_ref) var fullURL = base_ref + "TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval... | function modifyWindowToRecordPopUpDialogs(window, browserBot) { // we will call the previous version of this method from within our own interception oldShowModalDialog = window.showModalDialog; window.showModalDialog = function(url, args, features) { var fullURL = "/TestRunner.html?s... |
onStateChange: Class.empty | evalResponse: false, method: 'post' | moreOptions: function(){ return { postBody: null, update: null, evalScripts: false, onStateChange: Class.empty }; }, |
"setup bg input " + value( 'mosaic_bg_input' ) + "\n"; | "setup bg input " + sanitize_input( value( 'mosaic_bg_input' ) ) + "\n"; | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset your VLM configuration\n"+"del all\n"+"... |
"setup " + s + " input " + streams[s] + "\n"+ | "setup " + s + " input " + sanitize_input( streams[s] ) + "\n"+ | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset your VLM configuration\n"+"del all\n"+"... |
"# Comment the following line if you don't want to reset you VLM configuration\n"+ | "# Comment the following line if you don't want to reset your VLM configuration\n"+ | function mosaic_code_update(){ var code = document.getElementById( 'mosaic_code' ); code.value ="##################################\n"+"## HTTP interface mosaic wizard ##\n"+"##################################\n"+"\n"+"# Comment the following line if you don't want to reset you VLM configuration\n"+"del all\n"+"\... |
document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; | document.getElementById( 'sout_transcode_extra' ).value = ",sfilter=mosaic"; | function mosaic_init(){ document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; mosaic_size_change();} |
document.getElementById( 'sout_vcodec_s' ).checked = 'checked'; disable( 'sout_vcodec_s' ); update_sout(); | function mosaic_init(){ document.getElementById( 'sout_extra' ).value = ",sfilter=mosaic"; mosaic_size_change();} | |
mdt.setAttribute( 'class', 'mosaic_tbl' ); | setclass( mdt, 'mosaic_tbl' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... |
mcell.setAttribute( 'class', 'mosaic_itm' ); | setclass( mcell, 'mosaic_itm' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... |
var melt = document.createElement( 'input' ); melt.setAttribute( 'type', 'button' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... | |
melt.setAttribute( 'onclick', 'mosaic_elt_choose(\''+id+'\');' ); if( cells[id] ) melt.setAttribute( 'value', cells[id] ); else melt.setAttribute( 'value', '?' ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... | |
mtable.appendChild( mrow ); | mtbody.appendChild( mrow ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... |
mtable.appendChild( mtbody ); | function mosaic_size_change(){ var x,y; var bg_width = check_and_replace_int( "bg_width", "400" ); var bg_height = check_and_replace_int( "bg_height", "300" ); mosaic_height = check_and_replace_int( "mosaic_height", "100" ); mosaic_width = check_and_replace_int( "mosaic_width", "100" ); mosa... | |
HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | windowObject.HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } | HTMLImageElement.prototype.mousedown = function() { var evt = this.ownerDocument.createEvent('MouseEvents'); evt.initMouseEvent('mousedown', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(ev... |
while (target != div && target != document.documentElement) { | while (target != div && target != null) { | OpenLayers.Util.mouseLeft = function (evt, div) { // start with the element to which the mouse has moved var target = (evt.relatedTarget) ? evt.relatedTarget : evt.toElement; // walk up the DOM tree. while (target != div && target != document.documentElement) { target = target.parentNode; } // ... |
if( e == undefined ) e = window.event; | var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_vpaned_mousemove( e, paned ); }; | |
var w = w0 + (x0 - hop_mouse_y( event )); | var w = w0 + (x0 - hop_event_mouse_y( event )); | mousemove = function( event ) { var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); } |
hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | hop_style_set( win.el_main, "height", h0 + (hop_event_mouse_y( event ) - y0) ); | mousemove = function( event ) { var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); } |
if( e == undefined ) e = window.event; | var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; | |
var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); | var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } |
sourcesDocument.body.style.cursor = "default"; | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { files[currentFile].breakpoints[parseInt(event.target.title)] = 0; draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scroll... | |
if (hasStyleClass(event.target.parentNode, "breakpoint")) { | if (event.target.parentNode.hasStyleClass("breakpoint")) { | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scrollY; draggingBreakpoint.dragLastX = event.clientX + window.scrollX; ... |
files[currentFile].breakpoints[parseInt(event.target.title)] = 0; | function moveBreakPoint(event){ if (hasStyleClass(event.target.parentNode, "breakpoint")) { files[currentFile].breakpoints[parseInt(event.target.title)] = 0; draggingBreakpoint = event.target; draggingBreakpoint.started = false; draggingBreakpoint.dragLastY = event.clientY + window.scroll... | |
function moveHandler(e) {if (!e) e = window.event; | function moveHandler(scwEvt) { if (!scwEvt) scwEvt = window.event; | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.... |
elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; | elementToDrag.style.left = (scwEvt.clientX - deltaX) + 'px'; elementToDrag.style.top = (scwEvt.clientY - deltaY) + 'px'; | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.... |
if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.left = (e.clientX - deltaX) + 'px'; document.getElementById('scwIframe').style.top = (e.clientY - deltaY) + 'px'; } | if (scwID('scwIframe')) { scwID('scwIframe').style.left = (scwEvt.clientX - deltaX) + 'px'; scwID('scwIframe').style.top = (scwEvt.clientY - deltaY) + 'px'; } | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.... |
scwStopPropagation(e); } | scwStopPropagation(scwEvt); } | function moveHandler(e) {if (!e) e = window.event; elementToDrag.style.left = (e.clientX - deltaX) + 'px'; elementToDrag.style.top = (e.clientY - deltaY) + 'px'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.... |
} else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { | } else if ( bounds.top < gridBounds.bottom || bounds.left > gridBounds.right || bounds.right < gridBounds.left || bounds.bottom > gridBounds.top ) { console.log("else if"); | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || ... |
while (this.getGridBounds().bottom > bounds.bottom) { | while (gridBounds.bottom > bounds.bottom) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || ... |
while (this.getGridBounds().left > bounds.left) { | while (gridBounds.left > bounds.left) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || ... |
while (this.getGridBounds().top < bounds.top) { | while (gridBounds.top < bounds.top) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || ... |
while (this.getGridBounds().right < bounds.right) { | while (gridBounds.right < bounds.right) { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else if ( bounds.top > this.getGridBounds().bottom || ... |
if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) { | if (tlViewPort.x > -this.tileSize.w * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.... |
} else if (tlViewPort.x < -this.tileSize.w * this.buffer) { | } else if (tlViewPort.x < -this.tileSize.w * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.... |
} else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.... |
} else if (tlViewPort.y < -this.tileSize.h * this.buffer) { | } else if (tlViewPort.y < -this.tileSize.h * buffer) { | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.... |
} }; if (this.buffer == 0) { for (var r=0, rl=this.grid.length; r<rl; r++) { var row = this.grid[r]; for (var c=0, cl=row.length; c<cl; c++) { var tile = row[c]; if (!tile.drawn && tile.bounds.intersectsBounds(bounds, false)) { tile.draw(); } } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this, arguments); if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.grid.length || zoomChanged || !this.... | |
} else { | } else if ( bounds.top > this.getGridBounds().bottom || bounds.left > this.getGridBounds().right || bounds.right < this.getGridBounds().left || bounds.bottom < this.getGridBounds().top ) { this._initTiles(); } else { | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } else { var i = 0; while (this.getGri... |
var gCenter = this.getYMapCenter(); | var yCenter = this.getYMapCenter(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); i... |
var gZoom = this.ymap.getZoomLevel(); | var yZoom = this.ymap.getZoomLevel(); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); i... |
if ((!olCenter.equals(yCenter)) || ((olZoom +1) != yZoom)) { | if ((!olCenter.equals(yCenter)) || (( 16 - olZoom) != yZoom)) { | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); i... |
olZoom + 1); | 16 - olZoom); | moveTo:function(bounds,zoomChanged) { if ((this.ymap != null) && (!this.dragging)) { var olCenter = this.map.getCenter(); var gCenter = this.getYMapCenter(); var olZoom = this.map.getZoom(); var gZoom = this.ymap.getZoomLevel(); i... |
OpenLayers.Util.clearArray(this); | this.clear(); | moveTo: function (bounds, position, redraw) { if (redraw == null) { redraw = true; } OpenLayers.Util.clearArray(this); this.bounds = bounds.clone(); this.position = position.clone(); if (redraw) { this.draw(); } }, |
} var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(false); | } else { var i = 0; while (this.getGridBounds().bottom > bounds.bottom) { this.insertRow(false); } while (this.getGridBounds().left > bounds.left) { this.insertColumn(true); } while (this.getGridBounds().top < bounds.top) { this.insertRow(true); } while (this.getGridBounds().right < bounds.right) { this.insertColumn(fa... | moveTo:function(bounds,zoomChanged) { if (!this.getVisibility()) { if (zoomChanged) { this.grid = null; } return; } if (!this.grid || zoomChanged) { this._initTiles(); } var i = 0; while (this.getGridBounds().botto... |
new OpenLayers.Bounds(center.lon - bounds.getWidth(), center.lat - bounds.getHeight(), center.lon + bounds.getWidth(), center.lat + bounds.getHeight()); | new OpenLayers.Bounds(center.lon - (tileWidth / 2), center.lat - (tileHeight / 2), center.lon + (tileWidth / 2), center.lat + (tileHeight / 2)); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move ... |
tileSize.w = tileSize.w * 2; tileSize.h = tileSize.h * 2; | tileSize.w = tileSize.w * this.ratio; tileSize.h = tileSize.h * this.ratio; | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move ... |
OpenLayers.Util.clearArray(this.tile); | this.tile.clear(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move ... |
} else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) { | } else if (tlViewPort.y > -this.tileSize.h * (this.buffer - 1)) { | moveTo:function(bounds, zoomChanged, dragging) { if (bounds == null) { bounds = this.map.getExtent(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { this.clearGrid(); } } else if (!this.gr... |
if (this.type != null) { this.vemap.SetMapStyle(this.type); this.type = null; } | moveTo:function(bounds, zoomChanged, minor) { if (this.vemap != null) { var olCenter = this.map.getCenter(); var veCenter = this.getVELatLongFromOLLonLat(olCenter); if (zoomChanged) { var olZoom = this.map.getZoom(); var veZoom = this.getVEZo... | |
if (this.type != null) { this.gmap.setMapType(this.type); this.type = null; } this.dontListen = false; | moveTo:function(bounds, zoomChanged, minor) { if ((this.gmap != null) && (!this.dragging)) { var newCenter = this.map.getCenter(); var newZoom = this.map.getZoom(); if (newCenter != null) { var gCenter = this.gmap.getCenter(); var gZoom = this.gm... | |
bounds = this.map.getBounds(); | bounds = this.map.getExtent(); | moveTo:function(bounds, zoomChanged, minor) { if (bounds == null) { bounds = this.map.getBounds(); } if (bounds != null) { if (!this.getVisibility()) { if (zoomChanged) { //now clear out the old grid and start a new one ... |
if(this.tile) { this.tile.destroy(); this.tile = null; } var tileBounds = this.extent.clone(); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); ... | |
var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top); var pos = this.map.getLayerPxFromLonLat(ul); | var ul = new OpenLayers.LonLat(this.extent.left, this.extent.top); var ulPx = this.map.getLayerPxFromLonLat(ul); | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); ... |
this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds, this.url, tileSize); | if(firstRendering) { this.tile = new OpenLayers.Tile.Image(this, ulPx, this.extent, this.url, tileSize); } else { this.tile.size = tileSize.clone(); this.tile.position = ulPx.clone(); } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.prototype.moveTo.apply(this, arguments); var firstRendering = (this.tile == null); if(zoomChanged || firstRendering) { //clear out the old tile if(this.tile) { this.tile.destroy(); ... |
if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); | if (this.imageDiv != null) { if (this.px == null) { this.display(false); } else { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); this.display(true); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } ... |
var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { //if no px passed in, use stored location if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } ... | |
if ( this.tile && !this.tile.size.equals(tileSize)) { this.tile.destroy(); this.tile = null; } | moveTo:function(bounds, zoomChanged, dragging) { OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments); if (bounds == null) { bounds = this.map.getExtent(); } var firstRendering = (this.tile == null); //does the new bounds to which we need to move ... | |
if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" | if (px != null) { this.px = px; } if ((this.px != null) && (this.imageDiv != null)) { if (this.calculateOffset) { this.offset = this.calculateOffset(this.size); } var offsetPx = this.px.offset(this.offset); OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv, null, offsetPx); | moveTo: function (px) { if ((px != null) && (this.image != null)) { offsetPx = px.offset(this.offset); this.image.style.left = offsetPx.x + "px"; this.image.style.top = offsetPx.y + "px" } }, |
var rng, nl, i; | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... | |
sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.endOffset); | sel.setBaseAndExtent(bookmark.rng.startContainer, bookmark.rng.startOffset, bookmark.rng.endContainer, bookmark.rng.endOffset); | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
if (tinyMCE.isMSIE) { | if (tinyMCE.isRealIE) { | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
bookmark.rng.select(); | try { bookmark.rng.select(); } catch (ex) { } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
rng = inst.getBody().createControlRange(); | rng = b.createControlRange(); | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
nl = doc.getElementsByTagName(bookmark.tag); | nl = b.getElementsByTagName(bookmark.tag); | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); | try { if (bookmark.start < 0) return true; rng = inst.getSel().createRange(); rng.moveToElementText(inst.getBody()); rng.collapse(true); rng.moveStart('character', bookmark.start); rng.moveEnd('character', bookmark.length); } catch (ex) { return true; } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
if (tinyMCE.isGecko && bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); win.scrollTo(bookmark.scrollX, bookmark.scrollY); return true; } | if (tinyMCE.isGecko || tinyMCE.isOpera) { if (bookmark.rng) { sel.removeAllRanges(); sel.addRange(bookmark.rng); } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
if (tinyMCE.isGecko) { rng = doc.createRange(); | if (bookmark.start != -1 && bookmark.end != -1) { try { sd = this._getTextPos(b, bookmark.start, bookmark.end); rng = doc.createRange(); rng.setStart(sd.startNode, sd.startOffset); rng.setEnd(sd.endNode, sd.endOffset); sel.removeAllRanges(); sel.addRange(rng); win.focus(); } catch (ex) { } } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
nl = doc.getElementsByTagName(bookmark.startTag); if (nl.length > bookmark.start) rng.setStart(nl[bookmark.start].childNodes[bookmark.startIndex], bookmark.startOffset); | /* if (typeof(bookmark.index) != 'undefined') { tinyMCE.selectElements(b, 'IMG', function (n) { if (bookmark.index-- == 0) { } | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
nl = doc.getElementsByTagName(bookmark.endTag); if (nl.length > bookmark.end) rng.setEnd(nl[bookmark.end].childNodes[bookmark.endIndex], bookmark.endOffset); sel.removeAllRanges(); sel.addRange(rng); | return false; }); } */ | moveToBookmark : function(bookmark) { var rng, nl, i; var inst = this.instance; var doc = inst.getDoc(); var win = inst.getWin(); var sel = this.getSel(); if (!bookmark) return false; if (tinyMCE.isSafari) { sel.setBaseAndExtent(bookmark.startContainer, bookmark.startOffset, bookmark.endContainer, bookmark.... |
if (zoomChanged) { | if (zoomChanged != null) { | moveToNewExtent: function (zoomChanged) { if (zoomChanged) { // reset the layerContainerDiv's location this.layerContainerDiv.style.left = "0px"; this.layerContainerDiv.style.top = "0px"; } var bounds = this.getExtent(); for (var i = 0; i < this.layers.length; i++)... |
this.layers[i].moveTo(bounds, zoomChanged); | this.layers[i].moveTo(bounds, (zoomChanged != null)); | moveToNewExtent: function (zoomChanged) { if (zoomChanged) { // reset the layerContainerDiv's location this.layerContainerDiv.style.left = "0px"; this.layerContainerDiv.style.top = "0px"; } var bounds = this.getExtent(); for (var i = 0; i < this.layers.length; i++)... |
if (zoomChanged) this.events.triggerEvent("zoomend"); | if (zoomChanged != null) this.events.triggerEvent("zoomend", {oldZoom: zoomChanged, newZoom: this.zoom}); | moveToNewExtent: function (zoomChanged) { if (zoomChanged) { // reset the layerContainerDiv's location this.layerContainerDiv.style.left = "0px"; this.layerContainerDiv.style.top = "0px"; } var bounds = this.getExtent(); for (var i = 0; i < this.layers.length; i++)... |
MozillaPageBot = function(pageWindow) { | var MozillaPageBot = function(pageWindow) { | MozillaPageBot = function(pageWindow) { PageBot.call(this, pageWindow);}; |
var type = $type(returns); if (type != 'element') elements = false; | if ($type(returns) != 'element') elements = false; | Elements.Multi = function(property){ return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); var type = $type(returns); if (type != 'element') elements = false; items.push(returns); }); if (elements) items = $$(ite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.