Bug Tracker

Modify

Ticket #5622 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by kabomi

Found in Firefox 3.5.5

comment:2 Changed 3 years ago by kabomi

Fount in Opera 10.10 & IE6 too

comment:3 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.