Updated Branches:
  refs/heads/master e03d2d88c -> d6e6a4113

WICKET-5132 Evaluation of returned data (which includes alot of javascript) 
very slow after ajax call in IE10.


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

Branch: refs/heads/master
Commit: d6e6a41135a8ae569cb4e5699f0655d7af615f76
Parents: e03d2d8
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Tue Apr 9 10:06:14 2013 +0300
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Tue Apr 9 10:06:14 2013 +0300

----------------------------------------------------------------------
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d6e6a411/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index cdde950..4db6061 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1046,7 +1046,14 @@
 
                        context.steps.push(function (notify) {
                                // get the javascript body
-                               var text = jQuery(node).text();
+                               var text;
+
+                               try {
+                                       text = node.firstChild.nodeValue;
+                               } catch (e) {
+                                       // TODO remove this fallback in 6.11.0+
+                                       text = jQuery(node).text();
+                               }
 
                                // unescape it if necessary
                                var encoding = node.getAttribute("encoding");

Reply via email to