naohirozrx / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

json2007.js incompatible with jQuery 1.2.2 #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It appears that the json2007.js file is incompatible with jQuery 1.2.2.

To reproduce this issue, include jQuery 1.2.2, json2007.js, and RSH (I'm
using 0.6) on a page. Then, add the following script:

<script type="text/javascript">
$(function() {
    $('body').css('background', '#000000');
});
</script>

In Firebug you should get an error that resembles the following:

[Exception... "Illegal operation on WrappedNative prototype object" 
nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)"  location: "JS
frame :: json2007.js :: anonymous :: line 189"  data: no]
json2007.js
Line 189

Original issue reported on code.google.com by joe.lencioni on 24 Jan 2008 at 9:18

GoogleCodeExporter commented 8 years ago
I just confirmed that this is also an issue with jQuery 1.2.3. It generates the 
same
error.

Original comment by joe.lencioni on 7 Feb 2008 at 5:29

GoogleCodeExporter commented 8 years ago
Confirmed similar problem with jQuery 1.2.6.

Original comment by uros.ore...@gmail.com on 26 Feb 2009 at 11:51

GoogleCodeExporter commented 8 years ago
In the #jquery irc channel we see this issue a lot. These days the common 
practice is
to use crockford's json2.js. I don't see why this shouldn't be the case with 
RSH.
Probably obvious now, but it's a suggestion. :)

Original comment by paul.ir...@gmail.com on 3 Apr 2009 at 2:07

GoogleCodeExporter commented 8 years ago
Confirmed similar problem with jQuery 1.3.2

Original comment by indul...@gmail.com on 24 Nov 2009 at 3:52

GoogleCodeExporter commented 8 years ago
i made it work using json2 instead json2007

Original comment by richie....@gmail.com on 31 Jan 2010 at 1:18