Skip to content

Commit

Permalink
add preCompute argument to Element.getLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
RStankov committed Feb 17, 2010
1 parent e7b9b8f commit 4a487cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dom/layout.js
Expand Up @@ -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.
*
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 4a487cc

Please sign in to comment.