JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[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 /**\r
7  * @class\r
8  */\r
9 CKEDITOR.dom.nodeList = function( nativeList )\r
10 {\r
11         this.$ = nativeList;\r
12 };\r
13 \r
14 CKEDITOR.dom.nodeList.prototype =\r
15 {\r
16         count : function()\r
17         {\r
18                 return this.$.length;\r
19         },\r
20 \r
21         getItem : function( index )\r
22         {\r
23                 var $node = this.$[ index ];\r
24                 return $node ? new CKEDITOR.dom.node( $node ) : null;\r
25         }\r
26 };\r