Skip to content
Snippets Groups Projects
Commit dc481a9c authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Checkstyles in lightbox.js

parent 474ee89d
No related merge requests found
...@@ -50,7 +50,8 @@ function closeLightbox() { ...@@ -50,7 +50,8 @@ function closeLightbox() {
function closeLightboxActions() { function closeLightboxActions() {
lightboxShown = false; lightboxShown = false;
// Clean out stack // Clean out stack
while(f = callbackStack.pop()) { while(callbackStack.length > 0) {
var f = callbackStack.pop();
f(); f();
} }
// Abort requests triggered by the lightbox // Abort requests triggered by the lightbox
...@@ -142,7 +143,9 @@ function displayLightboxError(message) { ...@@ -142,7 +143,9 @@ function displayLightboxError(message) {
*/ */
function getLightboxByUrl(url, post, callback, pop) { function getLightboxByUrl(url, post, callback, pop) {
// Pop determines if we execute the callback immediately or later // Pop determines if we execute the callback immediately or later
if(typeof pop === "undefined") pop = true; if(typeof pop === "undefined") {
pop = true;
}
// If we have a callback, push it to the stack // If we have a callback, push it to the stack
if(typeof callback !== "undefined") { if(typeof callback !== "undefined") {
//console.log("Push:",callback); //console.log("Push:",callback);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment