You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/10/02 21:59:01 UTC
[5/8] git commit: [flex-asjs] [refs/heads/develop] - add length prop
add length prop
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c812e0d9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c812e0d9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c812e0d9
Branch: refs/heads/develop
Commit: c812e0d9912f00ed1237bc35d08ddd3080ce9500
Parents: d4d2ae9
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 2 12:43:53 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 2 12:58:46 2014 -0700
----------------------------------------------------------------------
.../apache/flex/net/dataConverters/LazyCollection.as | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c812e0d9/frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
index 8a2cb3b..572b2a0 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/net/dataConverters/LazyCollection.as
@@ -216,5 +216,19 @@ package org.apache.flex.net.dataConverters
}
return data[index];
}
+
+ /**
+ * The number of items.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get length():int
+ {
+ return rawData ? rawData.length : 0;
+ }
+
}
}
\ No newline at end of file