42efafc70fb5f193987cbf6045d94801352e2a6d
[ckeditor.git] / _source / core / dom / nodelist.js
1 /*
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
5
6 /**
7 * @class
8 */
9 CKEDITOR.dom.nodeList = function( nativeList )
10 {
11 this.$ = nativeList;
12 };
13
14 CKEDITOR.dom.nodeList.prototype =
15 {
16 count : function()
17 {
18 return this.$.length;
19 },
20
21 getItem : function( index )
22 {
23 var $node = this.$[ index ];
24 return $node ? new CKEDITOR.dom.node( $node ) : null;
25 }
26 };