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($){ | |
$(function(){ | |
$.support.fixedPosition = (function(){ | |
var container = document.body; | |
if (document.createElement && container && container.appendChild && container.removeChild) { | |
var el = document.createElement('div'); | |
if (!el.getBoundingClientRect) return null; |
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
console.log('start') | |
var array = [1,2,3]; | |
array.reduce((acc, current)=>{ | |
return acc.then(() => wait(current)) | |
}, Promise.resolve()) | |
function wait (x) { | |
return new Promise((resolve) => { |