You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/08/14 03:33:15 UTC
[6/11] git commit: Adjust initialization for this being the matched
element's ElementWrapper
Adjust initialization for this being the matched element's ElementWrapper
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/85978b3b
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/85978b3b
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/85978b3b
Branch: refs/heads/5.4-js-rewrite
Commit: 85978b3b54429193c07a3506d6091d88b97cf807
Parents: f93bf63
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Aug 13 15:34:39 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Aug 13 15:34:39 2012 -0700
----------------------------------------------------------------------
.../coffeescript/META-INF/modules/core/zone.coffee | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/85978b3b/tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
index 85137a4..7ed64c5 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/core/zone.coffee
@@ -20,17 +20,16 @@ define ["core/spi", "core/events"],
(spi, events) ->
spi.domReady ->
spi.body().on events.zone.update, (event) ->
- zone = spi.wrap this
- zone.trigger events.zone.willUpdate
+ this.trigger events.zone.willUpdate
# TODO: purge existing children?
- zone.update event.memo
+ this.update event.memo
- zone.show() unless zone.visible()
+ this.show() unless this.visible()
- zone.trigger events.zone.didUpdate
+ this.trigger events.zone.didUpdate
# No meaningful value is returned.
- true
\ No newline at end of file
+ return
\ No newline at end of file