#189 new
jayaprakash kumar

The object does not support this property or method -- if (iterable.toArray)

Reported by jayaprakash kumar | February 7th, 2012 @ 04:27 PM

Hi,

In the below Code Snippet if(iterable.toArray) is NOT working in Windows xp after the recent patches from Microsoft, and we tried both IE 7 and IE8, still it is not working.

The javascript error is "The object does not support this property or method"

We are using Prototype JavaScript framework, version 1.5.1.1, please find the attached screen shot jpg file for reference.

Code Snippet :-
var $A = Array.from = function(iterable) {
if (!iterable) return []; if (iterable.toArray) {

return iterable.toArray();

} else {

var results = [];
for (var i = 0, length = iterable.length; i < length; i++)
  results.push(iterable[i]);
return results;

} }

Thanks in Advance.

Comments and changes to this ticket

  • rafalwrzeszcz

    rafalwrzeszcz February 8th, 2012 @ 10:50 AM

    • Assigned user set to “Samuel Lebeau”

    1.5.1.1 is faaar outdated and I believe it's not supported anymore, so I wouldn't expect it to work nicely with latest versions of browsers and OSes.

  • jayaprakash kumar

    jayaprakash kumar February 8th, 2012 @ 10:57 AM

    so far 1.5.1.1 version worked successfully, recently only we are facing this issue and that to only specific machine, also please suggest which version you would suggested to replace of version 1.5.1.1.

  • rafalwrzeszcz

    rafalwrzeszcz February 8th, 2012 @ 11:44 AM

    Well, latest stable release is 1.7, but of course there can be incomatibility issues.

    If you want to avoid this change, this line looks as follows in 1.7:

    if ('toArray' in Object(iterable)) return iterable.toArray();
    
  • jayaprakash kumar

    jayaprakash kumar February 8th, 2012 @ 01:56 PM

    Only we need to replace the prototype.js of 1.7 new version or any other files or library we need to import.

  • Himanshu mishra

    Himanshu mishra May 23rd, 2019 @ 09:49 AM

    • Tag set to solitaire

    Many many thanks for sharing this knowledgeable article then from here http://solitairetimes.com play solitaire times online with all unlocked level.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages