You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2014/01/26 21:09:33 UTC

git commit: Fixes TAP5-2272: IE8 Breaks in use of ownerNode in pageinit.js

Updated Branches:
  refs/heads/master fd693291d -> 1a07fad31


Fixes TAP5-2272: IE8 Breaks in use of ownerNode in pageinit.js

Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/1a07fad3
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/1a07fad3
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/1a07fad3

Branch: refs/heads/master
Commit: 1a07fad319d48c32342d15a7460c0eba9cc48577
Parents: fd69329
Author: Thiago H. de Paula Figueiredo <th...@apache.org>
Authored: Sun Jan 26 18:09:08 2014 -0200
Committer: Thiago H. de Paula Figueiredo <th...@apache.org>
Committed: Sun Jan 26 18:09:08 2014 -0200

----------------------------------------------------------------------
 .../main/coffeescript/META-INF/modules/t5/core/pageinit.coffee   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1a07fad3/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee
index ca3f055..f2a4811 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/pageinit.coffee
@@ -54,7 +54,9 @@ define ["underscore", "./console", "./dom", "./events"],
       .without(null)
       .map(rebuildURLOnIE)
 
-      insertionPoint = _.find(document.styleSheets, (ss) -> ss.ownerNode.rel is "stylesheet t-ajax-insertion-point")
+      insertionPoint = _.find(document.styleSheets, (ss) ->
+        parent = ss.ownerNode || ss.owningElement
+        parent.rel is "stylesheet t-ajax-insertion-point")
 
       # Most browsers support document.head, but older IE doesn't:
       head = document.head or document.getElementsByTagName("head")[0]