You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2014/02/04 18:32:09 UTC
[2/2] git commit: Clarify logic about which element is the event
source in an AjaxFormLoop update
Clarify logic about which element is the event source in an AjaxFormLoop update
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e26d6e31
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e26d6e31
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e26d6e31
Branch: refs/heads/master
Commit: e26d6e312cf6062f82e62b39df127fb9cc059d77
Parents: b1bd74d
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Tue Feb 4 12:31:55 2014 -0500
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Tue Feb 4 12:31:55 2014 -0500
----------------------------------------------------------------------
.../coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e26d6e31/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee
index 4818266..649dd6d 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/ajaxformloop.coffee
@@ -72,11 +72,11 @@ define ["./dom", "./events", "./console", "./ajax"],
</#{insertionPoint.element.tagName}>
"""
- newElement = insertionPoint.insertBefore newElement
+ insertionPoint.insertBefore newElement
# Trigger this event, to inform the world that the zone-like new element has been updated
# with content.
- newElement.trigger events.zone.didUpdate
+ insertionPoint.trigger events.zone.didUpdate
return false