I recently discovered that this.id is a proxy to this.get(this.get("idAttribute")).
The tastypie plugin sets idAttribute to "resource_uri", thus any calls to this.id returns the resource URI.
Thus, throughout the application, I replaced this.id with this.get("id"). This is a bit annoying, especially since the only reason why it might ever be useful to have this.id return the resource URI is in constructing the URL. tastypie also overwrites the url construction function so it's easier to leave idAttribute alone and modify the tastypie plugin to use this.get("resource_uri") for the url construction function.
Once I make that change I can go through the app and replace this.get("id") with this.id
These seems trivial right now but it's important for the WebSQL plugin.
I recently discovered that this.id is a proxy to this.get(this.get("idAttribute")). The tastypie plugin sets idAttribute to "resource_uri", thus any calls to this.id returns the resource URI. Thus, throughout the application, I replaced this.id with this.get("id"). This is a bit annoying, especially since the only reason why it might ever be useful to have this.id return the resource URI is in constructing the URL. tastypie also overwrites the url construction function so it's easier to leave idAttribute alone and modify the tastypie plugin to use this.get("resource_uri") for the url construction function.
Once I make that change I can go through the app and replace this.get("id") with this.id
These seems trivial right now but it's important for the WebSQL plugin.