Skip to content

Commit

Permalink
efficiency fix: pay attenton to cache so refreshSizeDataFull() doesn'…
Browse files Browse the repository at this point in the history
…t have to run unless things change
  • Loading branch information
dound committed Dec 7, 2008
1 parent 0419397 commit d9768d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jtoolbar.js
Expand Up @@ -554,6 +554,8 @@ var JTB = function() {
if(this.cached_isVert===isVert && this.cached_isFloat===isFloat) {
return;
}
this.cached_isVert = isVert;
this.cached_isFloat = isFloat;

/* get the predetermined height and width values (if any) */
var w=0, h=0;
Expand Down

0 comments on commit d9768d0

Please sign in to comment.