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 2013/11/05 00:14:48 UTC

git commit: TAP5-2161: Remove the t5/core/grid module

Updated Branches:
  refs/heads/master cf0485ec6 -> 0f340f67e


TAP5-2161: Remove the t5/core/grid module


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

Branch: refs/heads/master
Commit: 0f340f67e88d1e4dbbc8b216d34d94b2abd08766
Parents: cf0485e
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Nov 4 15:14:43 2013 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Nov 4 15:14:43 2013 -0800

----------------------------------------------------------------------
 .../META-INF/modules/t5/core/grid.coffee        | 38 --------------------
 .../tapestry5/corelib/components/Grid.java      |  3 +-
 2 files changed, 1 insertion(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/0f340f67/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/grid.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/grid.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/grid.coffee
deleted file mode 100644
index 9a4c845..0000000
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/grid.coffee
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 2012 The Apache Software Foundation
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http:#www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# ## t5/core/grid
-#
-# Adds support for in-place updates of the Grid component.  The Grid renders a
-# div[data-zone] around the table, and code here intercepts clicks on links that
-# are inside a div[data-inplace-grid-links].
-#
-define ["./dom", "./events", "./console"],
-
-  (dom, events, console) ->
-
-    dom.onDocument "[data-inplace-grid-links] a", ->
-
-      zone = @findParent "[data-container-type=zone]"
-
-      unless zone
-        console.error "Unable to find containing zone for live update of grid."
-        return false
-
-      zone.trigger events.zone.refresh, url: @attribute "href"
-
-      return false
-
-    return null

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/0f340f67/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
index e972057..cde54c7 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
@@ -198,7 +198,7 @@ public class Grid implements GridModel, ClientElement
      * The name of the pseudo-zone that encloses the Grid. Starting in 5.4, this is always either
      * null or "^" and is not really used the way it was in 5.3; instead it triggers the addition
      * of a {@code data-inplace-grid-links} attribute in a div surrounding any links related to
-     * sorting or pagination. The rest is sorted out on the client. See module {@code core/grid}.
+     * sorting or pagination. The rest is sorted out on the client. See module {@code t5/core/zone}.
      */
     @Property(write = false)
     private String zone;
@@ -483,7 +483,6 @@ public class Grid implements GridModel, ClientElement
         if (inPlace && zone == null)
         {
             javaScriptSupport.require("t5/core/zone");
-            javaScriptSupport.require("t5/core/grid");
 
             writer.element("div", "data-container-type", "zone");