No new argument for Layer::redraw.

Instead, make _resolution a private property (resolution) which is set to null to make redraw call moveTo with zoomChanged set to true.
This commit is contained in:
ahocevar
2011-12-26 11:09:07 +01:00
parent ff04517232
commit d42eec9775
4 changed files with 21 additions and 15 deletions
+2 -1
View File
@@ -710,7 +710,8 @@
"[a] redraw calls moveTo with zoomChanged false");
log = {};
l1.redraw(true);
l1.resolution = null;
l1.redraw();
t.eq(log.moveTo.zoomChanged, true,
"[b] redraw calls moveTo with zoomChanged true");