jupiterjs / jquerymx

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

$.fn.model(s) ignores type parameter. #133

Open iamnoah opened 12 years ago

iamnoah commented 12 years ago

$('.something').model(MyClass) always returns the first model, regardless of type passed in. This is because $.fn.models ignores the type parameter. The docs say it should "only return models of the provided type."