documentcloud/underscore — Issue #464: TypeError: Object function (a){return new n(a)} has no method 'has'
Author: abuisman
Created: 2012-02-07 17:09:17+00:00
State: open

I have a problem that has a solution as well.

Firstly, I get the following error when using Backbone.js:
TypeError: Object function (a){return new n(a)} has no method 'has'

![TypeError: Object function (a){return new n(a)} has no method 'has'](http://image.bayimg.com/gamijaadh.jpg)

This happens when I set the exact same data twice in a row of a model using its 'set' method.

Obviously, this shouldn't happen.

The solution?

I used the development version of underscore instead of the minified version. I am not sure right now what this implies, but apparently the minified version differs in functionality. That shouldn't happen either.