You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/09/14 17:27:00 UTC

git commit: [flex-asjs] [refs/heads/develop] - IE doesn't like document.contains, only document.body.contains

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 029ee8c1e -> f2b108656


IE doesn't like document.contains, only document.body.contains


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f2b10865
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f2b10865
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f2b10865

Branch: refs/heads/develop
Commit: f2b1086568a52ec1444d77f076ee0db859bf9e96
Parents: 029ee8c
Author: Alex Harui <ah...@apache.org>
Authored: Mon Sep 14 08:27:09 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Sep 14 08:27:09 2015 -0700

----------------------------------------------------------------------
 .../HTML/js/src/org/apache/flex/html/beads/ContainerView.js        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2b10865/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
index 9ffa43d..be440cd 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
@@ -85,7 +85,7 @@ org.apache.flex.html.beads.ContainerView.
          var num = this.contentView.numElements;
          // make sure there are children AND you are in the DOM before laying out.
          // If not in the DOM, you'll get funky numbers
-         if (num > 0 && document.contains(this.host.element)) {
+         if (num > 0 && document.body.contains(this.host.element)) {
            this.performLayout(event);
          }
    }