documentcloud/backbone — pull request #838 by dylon (2012-01-05 16:47:57+00:00)
Title: For some View which inherits from Backbone.View, if View.prototype.attri...

...butes is a method (e.g. one that serializes the View's form elements), invoke it from Backbone.View.prototype._ensureElement before passing it to jQuery.fn.attr in Backbone.View.prototype.make to avoid an exception being thrown when using jQuery 1.7.1+ (jQuery checks for typeof(name) === 'object' rather than 'function', so it attempts to use the function as a string and invokes the *.toLowerCase() method on it)