This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sourceMap.sources.forEach((sourceFile, i) => { | |
// Get the source code for the current source file. | |
const source = sourceMap.sourcesContent[i]; | |
// Keep track of the number of blank lines that have been encountered. | |
let currentBlankLineCount = 0; | |
// Split the source into lines so we can adjust the line numbers. For each line, we'll | |
// need count the number of "blank" lines that preceded it. | |
const sourceFileLineDetails = source.split('\n').map((line) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
if (typeof clear !== 'undefined') { | |
var oldClear = clear; | |
Object.defineProperty(window, 'clear', { | |
get: function() { | |
oldClear(); | |
return oldClear; | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.some-els').bind('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something! | |
$(this).removeClass('animation-class'); | |
}) | |
.addClass('animation-class'); | |
// One works, too | |
$('.some-els').one('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something once! | |
console.log('this would show once'); |