Permalink
Browse files

Think I narrowed down the rest of the filter-swapping oddness. Not we…

…ll, but, done.
  • Loading branch information...
1 parent 12f3bd6 commit 60b12b6f1685d6ab5cfb24c776a95c36ac22b53c Dave Shea committed Sep 9, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 demo/script/playground.js
@@ -97,10 +97,12 @@ addLoadEvent(function() {
destroyStash(img, true);
// adjust visible control panel
displayControls();
+ updateFilters(img);
}
// initialize the control panel
displayControls();
+ updateFilters(img);
});
@@ -236,7 +238,6 @@ function updateFilters(img) {
processFilters();
img.style.visibility = "visible";
-
}
@@ -263,7 +264,9 @@ function displayControls() {
// if we've got a match, display this current filter's control panel
addClass(img, obj.filterClass);
}
-
+
+ // kinda weird that I need to apply this inside and outside the filter. ideally it'd only happen here.
+ // Haven't quite tracked down why the 2x application is necessary yet.
updateFilters(img);
}

0 comments on commit 60b12b6

Please sign in to comment.