Bug Tracker

Opened 11 years ago

Closed 11 years ago

#5622 closed bug (worksforme)

this.toArray is not a function in get

Reported by: kabomi Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.4a1
Keywords: get toArray Cc:
Blocked by: Blocking:

Description

Value of this var

this [ length=0 fields=[6]]

fields ["id", "name", "sel", 3 more... 0=id 1=name 2=sel 3=desc 4=groups 5=lic]

length 0

Bug found! MessageError: this.toArray is not a function

jQuery JavaScript Library v1.4a1 development

172 get: function( num ) {

173 return num == null ?

175 Return a 'clean' array

176 this.toArray() :

178 Return just the object

179 ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );

180 },

In stable version works good!

jQuery JavaScript Library v1.3.2 development

109 get: function( num ) {

110 return num === undefined ?

112 Return a 'clean' array

113 Array.prototype.slice.call( this ) :

115 Return just the object

116 this[ num ];

117 },

Change History (3)

comment:1 Changed 11 years ago by kabomi

Found in Firefox 3.5.5

comment:2 Changed 11 years ago by kabomi

Fount in Opera 10.10 & IE6 too

comment:3 Changed 11 years ago by john

Resolution: worksforme
Status: newclosed

I can't duplicate this - can you provide a test page?

Note: See TracTickets for help on using tickets.