lemonadejs
Advanced tools
Comparing version 2.1.9 to 2.1.10
/** | ||
* Lemonadejs v2.1.9 | ||
* Lemonadejs v2.1.10 | ||
* | ||
@@ -52,3 +52,4 @@ * Website: https://lemonadejs.net | ||
*/ | ||
var queue = function(e) { | ||
var queue = function(e, el) { | ||
var q = null; | ||
var o = null; | ||
@@ -58,3 +59,2 @@ if (o = e.lemon) { | ||
if (o.queue) { | ||
var q = null; | ||
while (q = o.queue.shift()) { | ||
@@ -70,7 +70,5 @@ R.queue.push(q); | ||
} | ||
} | ||
var unqueue = function(e) { | ||
if (document.body.contains(e) && R.queue.length) { | ||
var q = null; | ||
// Unqueue | ||
if (document.body.contains(el) && R.queue.length) { | ||
while (q = R.queue.shift()) { | ||
@@ -551,7 +549,4 @@ q(); | ||
// Process ready queue | ||
queue(o); | ||
queue(o, el); | ||
// When everything is in the DOM | ||
unqueue(el); | ||
return o; | ||
@@ -635,3 +630,3 @@ } | ||
// Process whatever we have in the queue | ||
queue(el); | ||
queue(el, el); | ||
} | ||
@@ -638,0 +633,0 @@ |
@@ -17,3 +17,3 @@ { | ||
"main": "dist/lemonade.js", | ||
"version": "2.1.9" | ||
"version": "2.1.10" | ||
} |
26140
667