If you encounter the following:
GitHub rate limit reached. To increase the limit use GitHub authentication.
Run jspm endpoint config github to set this up.
Sources :
define(function(require) { | |
var | |
$ = require('jquery'), | |
Command = function() {} | |
; | |
/* This detects if the application runs in iOS standalone mode and | |
/* manually opens clicked links in webapp */ | |
Command.prototype.execute = function() { |
/** | |
* Test if browser supports padding in elements which behave like tables | |
* and are positioned fixed. | |
*/ | |
Modernizr.addTest('positionfixed-tablepadding', function(){ | |
return Modernizr.testStyles('#modernizr', function(elem) { | |
var | |
doc = document, |
/** | |
* Calculate the bounding box of a DOM element. | |
* | |
* @param element is the jQuery element which is the root of the calculation | |
*/ | |
function getBoundingBox(element) { | |
var | |
position = element.offset(), | |
width = element.outerWidth(), | |
height = element.outerHeight(), |
If you encounter the following:
GitHub rate limit reached. To increase the limit use GitHub authentication.
Run jspm endpoint config github to set this up.
Sources :
console.search = console.search || function (obj, key, path = '.') { | |
Object.keys(obj).forEach(function(k) { | |
var o = obj[k]; | |
if (!o) { | |
return; | |
} | |
if (k.toLowerCase() === key.toLowerCase()) { | |
console.log(path + k); | |
} |