You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/11/10 14:44:34 UTC
[jira] [Commented] (TAP5-2339) Ajax exception frame complains about
"Function expected" in IE8
[ https://issues.apache.org/jira/browse/TAP5-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204779#comment-14204779 ]
Jochen Kemnade commented on TAP5-2339:
--------------------------------------
I see a similar error in Firefox and Chromium if exceptions occur during multiple Ajax requests. The first error is properly reported, the second one leads to a console error "require is not a function".
> Ajax exception frame complains about "Function expected" in IE8
> ---------------------------------------------------------------
>
> Key: TAP5-2339
> URL: https://issues.apache.org/jira/browse/TAP5-2339
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.4
> Reporter: Chris Poulsen
>
> It is the following code that fails:
> <script type="text/javascript">require(["t5/core/pageinit"], function(pi) { pi([], ["bootstrap/collapse","t5/core/zone"]); });</script>
> Apparently "require" is the object it is instantiated to be (init config), not the product of require.js being loaded.
> To reproduce create a T5.4 quickstart app and throw a RuntimeException in void onAjax() (Index.java).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)