Repository: flex-asjs Updated Branches: refs/heads/svg-rename 5df857feb -> bc0469227
Added clear method (but kept removeAllElements for consistency) Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bc046922 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bc046922 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bc046922 Branch: refs/heads/svg-rename Commit: bc0469227028527c8c933983ed5d03bde26b9512 Parents: 5df857f Author: Harbs <[email protected]> Authored: Fri Jul 22 09:29:20 2016 +0300 Committer: Harbs <[email protected]> Committed: Fri Jul 22 09:29:20 2016 +0300 ---------------------------------------------------------------------- .../flex/org/apache/flex/svg/GraphicsContainer.as | 15 ++++++++++++++- .../org/apache/flex/html/beads/DataGridLinesBead.as | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bc046922/frameworks/projects/Graphics/src/main/flex/org/apache/flex/svg/GraphicsContainer.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Graphics/src/main/flex/org/apache/flex/svg/GraphicsContainer.as b/frameworks/projects/Graphics/src/main/flex/org/apache/flex/svg/GraphicsContainer.as index 97c60d0..09db263 100644 --- a/frameworks/projects/Graphics/src/main/flex/org/apache/flex/svg/GraphicsContainer.as +++ b/frameworks/projects/Graphics/src/main/flex/org/apache/flex/svg/GraphicsContainer.as @@ -54,6 +54,19 @@ package org.apache.flex.svg */ public function removeAllElements():void { + clear(); + } + + /** + * Clears all of the drawn path data. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.7.0 + */ + public function clear():void + { COMPILE::SWF { graphics.clear(); @@ -65,7 +78,7 @@ package org.apache.flex.svg svg.removeChild(svg.lastChild); } } - } + } /** * Draw the rectangle. http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bc046922/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataGridLinesBead.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataGridLinesBead.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataGridLinesBead.as index 16649de..897a2f7 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataGridLinesBead.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DataGridLinesBead.as @@ -179,7 +179,7 @@ package org.apache.flex.html.beads columnWidth = (columns[0] as DataGridColumn).columnWidth; var xpos:Number = isNaN(columnWidth) ? _area.width / columns.length : columnWidth; - _overlay.removeAllElements(); + _overlay.clear(); // draw the verticals for (var i:int=1; i < columns.length; i++) {
