Permalink
Browse files

add preCompute argument to Element.getLayout

  • Loading branch information...
1 parent e7b9b8f commit 4a487cc2d3c69dafe844a7e0455416af1fdd2028 @RStankov RStankov committed Feb 17, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/dom/layout.js
View
8 src/dom/layout.js
@@ -651,8 +651,8 @@
});
/**
- * Element.getLayout(@element) -> Element.Layout
- *
+ * Element.getLayout(@element, preCompute) -> Element.Layout
+ *
* Returns an instance of [[Element.Layout]] for measuring an element's
* dimensions.
*
@@ -663,8 +663,8 @@
* `Element.getLayout` again only when the values in an existing
* `Element.Layout` object have become outdated.
**/
- function getLayout(element) {
- return new Element.Layout(element);
+ function getLayout(element, preCompute) {
+ return new Element.Layout(element, preCompute);
}
/**

0 comments on commit 4a487cc

Please sign in to comment.