code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
nativeHandler = function (element, fn, args) { return function (event) { event = fixEvent(event || ((this.ownerDocument || this.document || this).parentWindow || win).event, true) return fn.apply(element, [event].concat(args)) } }
Renders the `template` with the given `view` and `partials` using the default writer.
nativeHandler
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
customHandler = function (element, fn, type, condition, args, isNative) { return function (event) { if (condition ? condition.apply(this, arguments) : W3C_MODEL ? true : event && event.propertyName === '_on' + type || !event) { if (event) event = fixEvent(event || ((this.owne...
Renders the `template` with the given `view` and `partials` using the default writer.
customHandler
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
once = function (rm, element, type, fn, originalFn) { // wrap the handler in a handler that does a remove as well return function () { rm(element, type, originalFn) fn.apply(this, arguments) } }
Renders the `template` with the given `view` and `partials` using the default writer.
once
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
removeListener = function (element, orgType, handler, namespaces) { var i, l, entry , type = (orgType && orgType.replace(nameRegex, '')) , handlers = registry.get(element, type, handler) for (i = 0, l = handlers.length; i < l; i++) { if (handlers[i].inNamespaces(namespaces...
Renders the `template` with the given `view` and `partials` using the default writer.
removeListener
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
addListener = function (element, orgType, fn, originalFn, args) { var entry , type = orgType.replace(nameRegex, '') , namespaces = orgType.replace(namespaceRegex, '').split('.') if (registry.has(element, type, fn)) return element // no dupe if (type === 'unload') ...
Renders the `template` with the given `view` and `partials` using the default writer.
addListener
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
del = function (selector, fn, $) { return function (e) { var target, i, array = typeof selector === 'string' ? $(selector, this) : selector for (target = e.target; target && target !== this; target = target.parentNode) { for (i = array.length; i--;) { if (array[i] =...
Renders the `template` with the given `view` and `partials` using the default writer.
del
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
remove = function (element, typeSpec, fn) { var k, m, type, namespaces, i , rm = removeListener , isString = typeSpec && typeof typeSpec === 'string' if (isString && typeSpec.indexOf(' ') > 0) { // remove(el, 't1 t2 t3', fn) or remove(el, 't1 t2 t3') typeSpec = t...
Renders the `template` with the given `view` and `partials` using the default writer.
remove
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
add = function (element, events, fn, delfn, $) { var type, types, i, args , originalFn = fn , isDel = fn && typeof fn === 'string' if (events && !fn && typeof events === 'object') { for (type in events) { if (events.hasOwnProperty(type)) add.apply...
Renders the `template` with the given `view` and `partials` using the default writer.
add
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
one = function () { return add.apply(ONE, arguments) }
Renders the `template` with the given `view` and `partials` using the default writer.
one
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
fire = function (element, type, args) { var i, j, l, names, handlers , types = type.split(' ') for (i = types.length; i--;) { type = types[i].replace(nameRegex, '') if (names = types[i].replace(namespaceRegex, '')) names = names.split('.') if (!names ...
Renders the `template` with the given `view` and `partials` using the default writer.
fire
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
clone = function (element, from, type) { var i = 0 , handlers = registry.get(from, type) , l = handlers.length for (;i < l; i++) handlers[i].original && add(element, handlers[i].type, handlers[i].original) return element }
Renders the `template` with the given `view` and `partials` using the default writer.
clone
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
cleanup = function () { var i, entries = registry.entries() for (i in entries) { if (entries[i].type && entries[i].type !== 'unload') remove(entries[i].element, entries[i].type) } win[detachEvent]('onunload', cleanup) win.CollectGarbage && win.CollectGarbage() }
Renders the `template` with the given `view` and `partials` using the default writer.
cleanup
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function lookupEntity(name) { name = lcase(name); // TODO: &pi; is different from &Pi; if (ENTITIES.hasOwnProperty(name)) { return ENTITIES[name]; } var m = name.match(decimalEscapeRe); if (m) { return String.fromCharCode(parseInt(m[1], 10)); } else if (!!(m = name.match(hexEscapeRe))) { ...
Decodes an HTML entity. {@updoc $ lookupEntity('lt') # '<' $ lookupEntity('GT') # '>' $ lookupEntity('amp') # '&' $ lookupEntity('nbsp') # '\xA0' $ lookupEntity('apos') # "'" $ lookupEntity('quot') # '"' $ lookupEntity('#xa') # '\n' $ lookupEntity('#10') # '\n' $ lookupEntity('#x0a') # '\n' $ lookupEntity('#010') # '\...
lookupEntity
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function decodeOneEntity(_, name) { return lookupEntity(name); }
Decodes an HTML entity. {@updoc $ lookupEntity('lt') # '<' $ lookupEntity('GT') # '>' $ lookupEntity('amp') # '&' $ lookupEntity('nbsp') # '\xA0' $ lookupEntity('apos') # "'" $ lookupEntity('quot') # '"' $ lookupEntity('#xa') # '\n' $ lookupEntity('#10') # '\n' $ lookupEntity('#x0a') # '\n' $ lookupEntity('#010') # '\...
decodeOneEntity
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function stripNULs(s) { return s.replace(nulRe, ''); }
Decodes an HTML entity. {@updoc $ lookupEntity('lt') # '<' $ lookupEntity('GT') # '>' $ lookupEntity('amp') # '&' $ lookupEntity('nbsp') # '\xA0' $ lookupEntity('apos') # "'" $ lookupEntity('quot') # '"' $ lookupEntity('#xa') # '\n' $ lookupEntity('#10') # '\n' $ lookupEntity('#x0a') # '\n' $ lookupEntity('#010') # '\...
stripNULs
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function unescapeEntities(s) { return s.replace(entityRe, decodeOneEntity); }
The plain text of a chunk of HTML CDATA which possibly containing. {@updoc $ unescapeEntities('') # '' $ unescapeEntities('hello World!') # 'hello World!' $ unescapeEntities('1 &lt; 2 &amp;&AMP; 4 &gt; 3&#10;') # '1 < 2 && 4 > 3\n' $ unescapeEntities('&lt;&lt <- unfinished entity&gt;') # '<&lt <- unfinished entity>' $...
unescapeEntities
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function escapeAttrib(s) { // Escaping '=' defangs many UTF-7 and SGML short-tag attacks. return s.replace(ampRe, '&amp;').replace(ltRe, '&lt;').replace(gtRe, '&gt;') .replace(quotRe, '&#34;').replace(eqRe, '&#61;'); }
Escapes HTML special characters in attribute values as HTML entities. {@updoc $ escapeAttrib('') # '' $ escapeAttrib('"<<&==&>>"') // Do not just escape the first occurrence. # '&#34;&lt;&lt;&amp;&#61;&#61;&amp;&gt;&gt;&#34;' $ escapeAttrib('Hello <World>!') # 'Hello &lt;World&gt;!' }
escapeAttrib
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function normalizeRCData(rcdata) { return rcdata .replace(looseAmpRe, '&amp;$1') .replace(ltRe, '&lt;') .replace(gtRe, '&gt;'); }
Escape entities in RCDATA that can be escaped without changing the meaning. {@updoc $ normalizeRCData('1 < 2 &&amp; 3 > 4 &amp;& 5 &lt; 7&8') # '1 &lt; 2 &amp;&amp; 3 &gt; 4 &amp;&amp; 5 &lt; 7&amp;8' }
normalizeRCData
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function makeSaxParser(handler) { return function parse(htmlText, param) { htmlText = String(htmlText); var htmlLower = null; var inTag = false; // True iff we're currently processing a tag. var attribs = []; // Accumulates attribute names and values. var tagName = void 0; // The n...
Given a SAX-like event handler, produce a function that feeds those events and a parameter to the event handler. The event handler has the form:{@code { // Name is an upper-case HTML tag name. Attribs is an array of // alternating upper-case attribute names, and attribute values. The // attribs array is reused...
makeSaxParser
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function makeHtmlSanitizer(sanitizeAttributes) { var stack; var ignoring; return makeSaxParser({ startDoc: function (_) { stack = []; ignoring = false; }, startTag: function (tagName, attribs, out) { if (ignoring) { return; } if (!html4.ELEMENT...
Returns a function that strips unsafe tags and attributes from html. @param {Function} sanitizeAttributes maps from (tagName, attribs[]) to null or a sanitized attribute array. The attribs array can be arbitrarily modified, but the same array instance is reused, so should not be held. @return {Function} fro...
makeHtmlSanitizer
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function sanitize(htmlText, opt_uriPolicy, opt_nmTokenPolicy) { var out = []; makeHtmlSanitizer( function sanitizeAttribs(tagName, attribs) { for (var i = 0; i < attribs.length; i += 2) { var attribName = attribs[i]; var value = attribs[i + 1]; var atype = null, attri...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
sanitize
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function handleReadyState (r, success, error) { return function () { // use _aborted to mitigate against IE err c00c023f // (can't read props on aborted request objects) if (r._aborted) return error(r.request) if (r.request && r.request[readyState] == 4) { r.request.onreadystatechang...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
handleReadyState
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function setHeaders (http, o) { var headers = o.headers || {} , h headers.Accept = headers.Accept || defaultHeaders.accept[o.type] || defaultHeaders.accept['*'] // breaks cross-origin requests with legacy browsers if (!o.crossOrigin && !headers[requestedWith]) headers[requestedWith] ...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
setHeaders
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function setCredentials (http, o) { if (typeof o.withCredentials !== 'undefined' && typeof http.withCredentials !== 'undefined') { http.withCredentials = !!o.withCredentials } }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
setCredentials
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function generalCallback (data) { lastValue = data }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
generalCallback
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function urlappend (url, s) { return url + (/\?/.test(url) ? '&' : '?') + s }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
urlappend
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function handleJsonp (o, fn, err, url) { var reqId = uniqid++ , cbkey = o.jsonpCallback || 'callback' // the 'callback' key , cbval = o.jsonpCallbackName || reqwest.getcallbackPrefix(reqId) // , cbval = o.jsonpCallbackName || ('reqwest_' + reqId) // the 'callback' value , cbreg = new RegExp(...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
handleJsonp
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function getRequest (fn, err) { var o = this.o , method = (o.method || 'GET').toUpperCase() , url = typeof o === 'string' ? o : o.url // convert non-string objects to query-string form unless o.processData is false , data = (o.processData !== false && o.data && typeof o.data !== 'string') ...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
getRequest
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function Reqwest (o, fn) { this.o = o this.fn = fn init.apply(this, arguments) }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
Reqwest
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function setType (url) { var m = url.match(/\.(json|jsonp|html|xml)(\?|$)/) return m ? m[1] : 'js' }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
setType
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function init (o, fn) { this.url = typeof o == 'string' ? o : o.url this.timeout = null // whether request has been fulfilled for purpose // of tracking the Promises this._fulfilled = false // success handlers this._fulfillmentHandlers = [] // error handlers this._errorHandlers = [...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
init
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function complete (resp) { o.timeout && clearTimeout(self.timeout) self.timeout = null while (self._completeHandlers.length > 0) { self._completeHandlers.shift()(resp) } }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
complete
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function success (resp) { var r = resp.responseText if (r) { switch (type) { case 'json': try { resp = win.JSON ? win.JSON.parse(r) : eval('(' + r + ')') } catch (err) { return error(resp, 'Could not parse JSON in response', err) } ...
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
success
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function error (resp, msg, t) { self._responseArgs.resp = resp self._responseArgs.msg = msg self._responseArgs.t = t self._erred = true while (self._errorHandlers.length > 0) { self._errorHandlers.shift()(resp, msg, t) } complete(resp) }
Strips unsafe tags and attributes from html. @param {string} htmlText to sanitize @param {Function} opt_uriPolicy -- a transform to apply to uri/url attribute values. If no opt_uriPolicy is provided, no uris are allowed ie. the default uriPolicy rewrites all uris to null @param {Function} opt_nmTokenPolicy : s...
error
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function reqwest (o, fn) { return new Reqwest(o, fn) }
`fail` will execute when the request fails
reqwest
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function normalize (s) { return s ? s.replace(/\r?\n/g, '\r\n') : '' }
`fail` will execute when the request fails
normalize
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function serial (el, cb) { var n = el.name , t = el.tagName.toLowerCase() , optCb = function (o) { // IE gives value="" even where there is no value attribute // 'specified' ref: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-862529273 if (o && !o.disabled) ...
`fail` will execute when the request fails
serial
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
optCb = function (o) { // IE gives value="" even where there is no value attribute // 'specified' ref: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-862529273 if (o && !o.disabled) cb(n, normalize(o.attributes.value && o.attributes.value.specified ? o.value : o.text)) ...
`fail` will execute when the request fails
optCb
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function eachFormElement () { var cb = this , e, i , serializeSubtags = function (e, tags) { var i, j, fa for (i = 0; i < tags.length; i++) { fa = e[byTag](tags[i]) for (j = 0; j < fa.length; j++) serial(fa[j], cb) } } for (i = 0; i < ar...
`fail` will execute when the request fails
eachFormElement
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
serializeSubtags = function (e, tags) { var i, j, fa for (i = 0; i < tags.length; i++) { fa = e[byTag](tags[i]) for (j = 0; j < fa.length; j++) serial(fa[j], cb) } }
`fail` will execute when the request fails
serializeSubtags
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function serializeQueryString () { return reqwest.toQueryString(reqwest.serializeArray.apply(null, arguments)) }
`fail` will execute when the request fails
serializeQueryString
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function serializeHash () { var hash = {} eachFormElement.apply(function (name, value) { if (name in hash) { hash[name] && !isArray(hash[name]) && (hash[name] = [hash[name]]) hash[name].push(value) } else hash[name] = value }, arguments) return hash }
`fail` will execute when the request fails
serializeHash
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
push = function (k, v) { qs += enc(k) + '=' + enc(v) + '&' }
`fail` will execute when the request fails
push
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function bwTest() { wax.bw = -1; var im = new Image(); im.src = testImage; var first = true; var timeout = setTimeout(function() { if (first && wax.bw == -1) { detector.bw(0); first = false; } }, threshold); ...
`fail` will execute when the request fails
bwTest
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function resolveCode(key) { if (key >= 93) key--; if (key >= 35) key--; key -= 32; return key; }
`fail` will execute when the request fails
resolveCode
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
gridUrl = function(url) { if (url) { return url.replace(/(\.png|\.jpg|\.jpeg)(\d*)/, '.grid.json'); } }
`fail` will execute when the request fails
gridUrl
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function templatedGridUrl(template) { if (typeof template === 'string') template = [template]; return function templatedGridFinder(url) { if (!url) return; var rx = new RegExp(manager.tileRegexp()) var xyz = rx.exec(url); if (!xyz) return; retu...
`fail` will execute when the request fails
templatedGridUrl
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function getState() { return location.hash.substring(1); }
`fail` will execute when the request fails
getState
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function pushState(state) { var l = window.location; l.replace(l.toString().replace((l.hash || /$/), '#' + state)); }
`fail` will execute when the request fails
pushState
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function parseHash(s) { var args = s.split('/'); for (var i = 0; i < args.length; i++) { args[i] = Number(args[i]); if (isNaN(args[i])) return true; } if (args.length < 3) { // replace bogus hash return true; } else if (args.length ...
`fail` will execute when the request fails
parseHash
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function move() { var s1 = options.getCenterZoom(); if (s0 !== s1) { s0 = s1; // don't recenter the map! pushState(s0); } }
`fail` will execute when the request fails
move
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function stateChange(state) { // ignore spurious hashchange events if (state === s0) return; if (parseHash(s0 = state)) { // replace bogus hash move(); } }
`fail` will execute when the request fails
stateChange
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function getTile(e) { var g = grid(); var regExp = new RegExp(gm.tileRegexp()); for (var i = 0; i < g.length; i++) { if (e) { var isInside = ((g[i][0] <= e.y) && ((g[i][0] + 256) > e.y) && (g[i][1] <= e.x) && ...
`fail` will execute when the request fails
getTile
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function killTimeout() { if (_clickTimeout) { window.clearTimeout(_clickTimeout); _clickTimeout = null; return true; } else { return false; } }
`fail` will execute when the request fails
killTimeout
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function onMove(e) { // If the user is actually dragging the map, exit early // to avoid performance hits. if (_downLock) return; var _e = (e.type !== "MSPointerMove" && e.type !== "pointermove" ? e : e.originalEvent); var pos = wax.u.eventoffset(_e); interaction.screen...
`fail` will execute when the request fails
onMove
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function onDown(e) { // Prevent interaction offset calculations happening while // the user is dragging the map. // // Store this event so that we can compare it to the // up event _downLock = true; var _e = (e.type !== "MSPointerDown" && e.type !== "pointerdown"...
`fail` will execute when the request fails
onDown
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function dragEnd() { _downLock = false; }
`fail` will execute when the request fails
dragEnd
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function touchCancel() { bean.remove(parent(), touchEnds); bean.remove(parent(), mspointerEnds); bean.remove(parent(), pointerEnds); _downLock = false; }
`fail` will execute when the request fails
touchCancel
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function onUp(e) { var evt = {}; var _e = (e.type !== "MSPointerMove" && e.type !== "MSPointerUp" && e.type !== "pointerup" && e.type !== "pointermove" ? e : e.originalEvent); var pos = wax.u.eventoffset(_e); _downLock = false; for (var key in _e) { evt[key] = _e[key];...
`fail` will execute when the request fails
onUp
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function on(o) { if ((o.e.type === 'mousemove' || !o.e.type)) { return; } else { var loc = o.formatter({ format: 'location' }, o.data); if (loc) { window.location.href = loc; } } }
`fail` will execute when the request fails
on
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
calculateOffset = function(el) { if (el === doc_body || el === document.documentElement) return; top += el.offsetTop; left += el.offsetLeft; var style = el.style.transform || el.style.WebkitTransform || el.style.OTransform || ...
`fail` will execute when the request fails
calculateOffset
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function calculateOffsetIE(){ calculateOffset(el); try { while (el = el.offsetParent) { calculateOffset(el); } } catch(e) { // Hello, internet explorer. } }
`fail` will execute when the request fails
calculateOffsetIE
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
throttler = function() { timeout = null; func.apply(context, args); }
`fail` will execute when the request fails
throttler
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function urlX(url) { // Data URIs are subject to a bug in Firefox // https://bugzilla.mozilla.org/show_bug.cgi?id=255107 // which let them be a vector. But WebKit does 'the right thing' // or at least 'something' about this situation, so we'll tolerate // them...
`fail` will execute when the request fails
urlX
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function grid() { // TODO: don't build for tiles outside of viewport // Touch interaction leads to intermediate //var zoomLayer = map.createOrGetLayer(Math.round(map.getZoom())); //?what is this doing? // Calculate a tile grid and cache it, by using the `.tiles` // element on thi...
`fail` will execute when the request fails
grid
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function attach(x) { if (!arguments.length) return map; map = x; var l = ['moveend']; for (var i = 0; i < l.length; i++) { map.on(l[i], setdirty); } }
`fail` will execute when the request fails
attach
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function detach(x) { if (!arguments.length) return map; map = x; var l = ['moveend']; for (var i = 0; i < l.length; i++) { map.off(l[i], setdirty); } }
`fail` will execute when the request fails
detach
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function grid() { // when interaction is enabled there should be grid tiles if (!dirty && _grid && (_grid.length > 0 || !interactionEnabled)) { return _grid; } else { _grid = []; var zoom = map.getZoom(); var mapOffset = wax.u.offset(map.getDiv())...
`fail` will execute when the request fails
grid
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
get = function(mapType) { if (!mapType || !mapType.interactive) return; interactionEnabled = true; for (var key in mapType.cache) { if (key.split('/')[0] != zoom) continue; var tileOffset = wax.u.offset(mapType.cache[key]); ...
`fail` will execute when the request fails
get
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function attach(x) { if (!arguments.length) return map; map = x; tileloadListener = google.maps.event.addListener(map, 'tileloaded', setdirty); idleListener = google.maps.event.addListener(map, 'idle', setdirty); }
`fail` will execute when the request fails
attach
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function detach(x) { if(tileloadListener) google.maps.event.removeListener(tileloadListener); if(idleListener) google.maps.event.removeListener(idleListener); }
`fail` will execute when the request fails
detach
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
GeoJSON = function( geojson, options ){ var _geometryToGoogleMaps = function( geojsonGeometry, opts, geojsonProperties ){ var googleObj; switch ( geojsonGeometry.type ){ case "Point": opts.position = new google.maps.LatLng(geojsonGeometry.coordinates[1], geojsonGeometry.coordinates[0]); ...
`fail` will execute when the request fails
GeoJSON
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
_geometryToGoogleMaps = function( geojsonGeometry, opts, geojsonProperties ){ var googleObj; switch ( geojsonGeometry.type ){ case "Point": opts.position = new google.maps.LatLng(geojsonGeometry.coordinates[1], geojsonGeometry.coordinates[0]); googleObj = new google.maps.Marker(opts); ...
`fail` will execute when the request fails
_geometryToGoogleMaps
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
_error = function( message ){ return { type: "Error", message: message }; }
`fail` will execute when the request fails
_error
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
_ccw = function( path ){ var isCCW; var a = 0; for (var i = 0; i < path.length-2; i++){ a += ((path[i+1].lat() - path[i].lat()) * (path[i+2].lng() - path[i].lng()) - (path[i+2].lat() - path[i].lat()) * (path[i+1].lng() - path[i].lng())); } if(a > 0){ isCCW = true; } else{ i...
`fail` will execute when the request fails
_ccw
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function JScrollPane(elem, s) { var settings, jsp = this, pane, paneWidth, paneHeight, container, contentWidth, contentHeight, percentInViewH, percentInViewV, isScrollableV, isScrollableH, verticalDrag, dragMaxY, verticalDragPosition, horizontalDrag, dragMaxX, horizontalDragPosition, v...
`fail` will execute when the request fails
JScrollPane
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function initialise(s) { var /*firstChild, lastChild, */isMaintainingPositon, lastContentX, lastContentY, hasContainingSpaceChanged, originalScrollTop, originalScrollLeft, maintainAtBottom = false, maintainAtRight = false; settings = s; if (pane === undefined) { ...
`fail` will execute when the request fails
initialise
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function initialiseVerticalScroll() { if (isScrollableV) { container.append( $('<div class="jspVerticalBar" />').append( $('<div class="jspCap jspCapTop" />'), $('<div class="jspTrack" />').append( $('<div class="jspDrag" />').append( ...
`fail` will execute when the request fails
initialiseVerticalScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function sizeVerticalScrollbar() { verticalTrack.height(verticalTrackHeight + 'px'); verticalDragPosition = 0; scrollbarWidth = settings.verticalGutter + verticalTrack.outerWidth(); // Make the pane thinner to allow for the vertical scrollbar pane.width(paneWidth - scrollb...
`fail` will execute when the request fails
sizeVerticalScrollbar
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function initialiseHorizontalScroll() { if (isScrollableH) { container.append( $('<div class="jspHorizontalBar" />').append( $('<div class="jspCap jspCapLeft" />'), $('<div class="jspTrack" />').append( $('<div class="jspDrag" />').append(...
`fail` will execute when the request fails
initialiseHorizontalScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function sizeHorizontalScrollbar() { container.find('>.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow').each( function() { horizontalTrackWidth -= $(this).outerWidth(); } ); horizontalTrack.width(horizontalTrackWidth + 'px'); ...
`fail` will execute when the request fails
sizeHorizontalScrollbar
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function resizeScrollbars() { if (isScrollableH && isScrollableV) { var horizontalTrackHeight = horizontalTrack.outerHeight(), verticalTrackWidth = verticalTrack.outerWidth(); verticalTrackHeight -= horizontalTrackHeight; $(horizontalBar).find('>.jspCap:visible,>....
`fail` will execute when the request fails
resizeScrollbars
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function appendArrows(ele, p, a1, a2) { var p1 = "before", p2 = "after", aTemp; // Sniff for mac... Is there a better way to determine whether the arrows would naturally appear // at the top or the bottom of the bar? if (p == "os") { p = /Mac/.test(navigator.plat...
`fail` will execute when the request fails
appendArrows
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function getArrowScroll(dirX, dirY, ele) { return function() { arrowScroll(dirX, dirY, this, ele); this.blur(); return false; }; }
`fail` will execute when the request fails
getArrowScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function arrowScroll(dirX, dirY, arrow, ele) { arrow = $(arrow).addClass('jspActive'); var eve, scrollTimeout, isFirst = true, doScroll = function() { if (dirX !== 0) { jsp.scrollByX(dirX * settings.arrowButtonSpeed); }...
`fail` will execute when the request fails
arrowScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
doScroll = function() { if (dirX !== 0) { jsp.scrollByX(dirX * settings.arrowButtonSpeed); } if (dirY !== 0) { jsp.scrollByY(dirY * settings.arrowButtonSpeed); } scrollTimeout = setTimeout(doScroll, isFirst ? settings.init...
`fail` will execute when the request fails
doScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function initClickOnTrack() { removeClickOnTrack(); if (isScrollableV) { verticalTrack.bind( 'mousedown.jsp', function(e) { if (e.originalTarget === undefined || e.originalTarget == e.currentTarget) { var clickedTrack = $(...
`fail` will execute when the request fails
initClickOnTrack
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
doScroll = function() { var offset = clickedTrack.offset(), pos = e.pageY - offset.top - verticalDragHeight / 2, contentDragY = paneHeight * settings.scrollPagePercent, dragY = dragMaxY * contentDragY / (contentHeigh...
`fail` will execute when the request fails
doScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
cancelClick = function() { scrollTimeout && clearTimeout(scrollTimeout); scrollTimeout = null; $(document).unbind('mouseup.jsp', cancelClick); }
`fail` will execute when the request fails
cancelClick
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
doScroll = function() { var offset = clickedTrack.offset(), pos = e.pageX - offset.left - horizontalDragWidth / 2, contentDragX = paneWidth * settings.scrollPagePercent, dragX = dragMaxX * contentDragX / (contentWidt...
`fail` will execute when the request fails
doScroll
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
cancelClick = function() { scrollTimeout && clearTimeout(scrollTimeout); scrollTimeout = null; $(document).unbind('mouseup.jsp', cancelClick); }
`fail` will execute when the request fails
cancelClick
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function removeClickOnTrack() { if (horizontalTrack) { horizontalTrack.unbind('mousedown.jsp'); } if (verticalTrack) { verticalTrack.unbind('mousedown.jsp'); } }
`fail` will execute when the request fails
removeClickOnTrack
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function cancelDrag() { $('html').unbind('dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp'); if (verticalDrag) { verticalDrag.removeClass('jspActive'); } if (horizontalDrag) { horizontalDrag.removeClass('jspActive'); } }
`fail` will execute when the request fails
cancelDrag
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function positionDragY(destY, animate) { if (!isScrollableV) { return; } if (destY < 0) { destY = 0; } else if (destY > dragMaxY) { destY = dragMaxY; } // can't just check if(animate) because false is a valid value that could be passed...
`fail` will execute when the request fails
positionDragY
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function _positionDragY(destY) { if (destY === undefined) { destY = verticalDrag.position().top; } container.scrollTop(0); verticalDragPosition = destY; var isAtTop = verticalDragPosition === 0, isAtBottom = verticalDragPosition == dragMaxY, ...
`fail` will execute when the request fails
_positionDragY
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function positionDragX(destX, animate) { if (!isScrollableH) { return; } if (destX < 0) { destX = 0; } else if (destX > dragMaxX) { destX = dragMaxX; } if (animate === undefined) { animate = settings.animateScroll; } ...
`fail` will execute when the request fails
positionDragX
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function _positionDragX(destX) { if (destX === undefined) { destX = horizontalDrag.position().left; } container.scrollTop(0); horizontalDragPosition = destX; var isAtLeft = horizontalDragPosition === 0, isAtRight = horizontalDragPosition == dragMaxX, ...
`fail` will execute when the request fails
_positionDragX
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function updateVerticalArrows(isAtTop, isAtBottom) { if (settings.showArrows) { arrowUp[isAtTop ? 'addClass' : 'removeClass']('jspDisabled'); arrowDown[isAtBottom ? 'addClass' : 'removeClass']('jspDisabled'); } }
`fail` will execute when the request fails
updateVerticalArrows
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function updateHorizontalArrows(isAtLeft, isAtRight) { if (settings.showArrows) { arrowLeft[isAtLeft ? 'addClass' : 'removeClass']('jspDisabled'); arrowRight[isAtRight ? 'addClass' : 'removeClass']('jspDisabled'); } }
`fail` will execute when the request fails
updateHorizontalArrows
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause
function scrollToY(destY, animate) { var percentScrolled = destY / (contentHeight - paneHeight); positionDragY(percentScrolled * dragMaxY, animate); }
`fail` will execute when the request fails
scrollToY
javascript
CartoDB/cartodb
vendor/assets/javascripts/cartodb.uncompressed.js
https://github.com/CartoDB/cartodb/blob/master/vendor/assets/javascripts/cartodb.uncompressed.js
BSD-3-Clause