This is driving me crazy

I'm trying to copy elements from a wrapped set into an array.

This works:

                // build an array of text on the line
                var rowTextArray = new Array();

                // add text into array
                this.children.each( function() {
                        rowTextArray.push = encodeURIComponent( $(this).text() 
);
                } );


This does not:

                // build an array of text on the line
                this.rowTextArray = new Array();

                // add text into array
                this.children.each( function() {
                        this.rowTextArray.push = encodeURIComponent( 
$(this).text() );
                } );

Here's the error I get:
    Error: this.rowTextArray is undefined

Any help would be greatly appreciated!!

Regards,
Marty

Reply via email to