h3 / jquery-utils

Automatically exported from code.google.com/p/jquery-utils
MIT License
0 stars 0 forks source link

isArray function down work in IE7 #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I write this code "$.tpl('option', ['<option
value="{id:s}">{name:s}</option>']);"

What is the expected output? What do you see instead?
IE say "erorr in 94 string. 'constructor.prototype' -  is null or not object"

What version of the product are you using? On what operating system?
I use WinXP, IE7, jquery-1.3.2, jquery-utils-0.8.0

Please provide any additional information below.
On this page
http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=916
describe alternative function isArray

Original issue reported on code.google.com by AZevakin@gmail.com on 8 Apr 2009 at 12:08

GoogleCodeExporter commented 9 years ago
The proposed alternative is what I already use;

http://code.google.com/p/jquery-utils/source/browse/trunk/src/jquery.utils.js#12
8

I don't know why I used "array.constructor.prototype" instead of "array" as 
input,
it's now fixed, thanks.

Original comment by hainea...@gmail.com on 8 Apr 2009 at 1:02