leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

model.id = X; or model.set(idAttribute, X) ? #52

Open cboulay opened 12 years ago

cboulay commented 12 years ago

I have run into the case where setting model.id = something does not result in model.get("id") having a value, even though model.idAttribute is "id"... so I don't know what's going on.

I can go through the code and change 'model.id = ' to model.set(idAttribute, ' but I'd really like to know what the problem is.

cboulay commented 12 years ago

I think part of the problem was that model instantiation (in some cases) was setting a default .id, which might have been overwriting the .id proxy function. I'm testing that out now.