jupiterjs / jquerymx

jQuery MVC Extensions. jQuery extensions that makes all the annoying stuff easier.
http://javascriptmvc.com
553 stars 374 forks source link

$.fn.val.call([el]) breaks other jQuery plugins #131

Open iamnoah opened 12 years ago

iamnoah commented 12 years ago

The 3.2.2 form_params plugin, line 116, uses this:

$.fn.val.call([el])

Because the array is not a jQuery object, it breaks other plugins (e.g., tinymce) that override val and expect a jQuery object. Changing it to:

$(el).val()

fixes the problem.