Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cb({
didTimeout: false,
timeRemaining: function () {
return Math.max(0, 50 - (Date.now() - start))
}
})
}, 1)
}
window.cancelIdleCallback = window.cancelIdleCallback ||
function (id) {
clearTimeout(id)
}
options.afterInstall = function (ele) {
if (ele.constructor.observe) {
oba(ele.data, ele)
}
}
let idleId = null
const updateList = []
function oba(data, ele) {
const o = observable(data)
autorun(() => {
JSON.stringify(o)
if (ele._isInstalled) {
updateList.push(ele)
cancelIdleCallback(idleId)