JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / core / dom / nodelist.js
1 /*\r
2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 CKEDITOR.dom.nodeList = function( nativeList )\r
7 {\r
8         this.$ = nativeList;\r
9 };\r
10 \r
11 CKEDITOR.dom.nodeList.prototype =\r
12 {\r
13         count : function()\r
14         {\r
15                 return this.$.length;\r
16         },\r
17 \r
18         getItem : function( index )\r
19         {\r
20                 var $node = this.$[ index ];\r
21                 return $node ? new CKEDITOR.dom.node( $node ) : null;\r
22         }\r
23 };\r