Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Chili not working with jQuery 1.4.2!!


Project:Chili
Version:1.9
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

With the latest version of jQuery (1.4.2), Chili fails to highlight the code. When i replace the library with the 1.3.2 version, Chili works!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

Title:Chili not working wit jQuery 1.4.2!!» Chili not working with jQuery 1.4.2!!

jQuery 1.4.2 has additional checks for the validity of JSON objects. Unfortunately Chili recipes don't conform and are rejected. You can work around this by making the following change in two places in the Chili code:

// $.getJSON( path, function( recipeLoaded ) {
$.get( path, function( recipeLoaded ) { // jQuery 1.4.2
recipeLoaded = eval('(' + recipeLoaded + ')'); // jQuery 1.4.2

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.