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