Permalink
Browse files

Issue #19299 Switch some back to XM.Model. Needs more work.

  • Loading branch information...
1 parent ca106e8 commit 8f8f1b07e6beb2270826a630a2b9a593cc5e8ff3 @bendiy bendiy committed Mar 15, 2013
Showing with 1,103 additions and 54 deletions.
  1. +6 −2 lib/backbone-x/source/model.js
  2. +1,074 −36 lib/backbone-x/source/simplemodel.js
  3. +19 −15 node-datasource/lib/ext/models.js
  4. +4 −1 node-datasource/routes/auth.js
View
8 lib/backbone-x/source/model.js 100644 → 100755
@@ -526,6 +526,8 @@ white:true*/
*/
getClass: function () {
return Backbone.Relational.store.getObjectByName(this.recordType);
+ // TODO - Don't go to the store for this. Below does not work.
+ //return Object.getPrototypeOf(this).constructor;
},
/**
@@ -705,7 +707,7 @@ white:true*/
return status === K.READY_NEW || status === K.READY_DIRTY;
},
- /**
+ /**
Returns true if the model is in one of the `READY` statuses
*/
isReady: function () {
@@ -1168,7 +1170,9 @@ white:true*/
attributes = attributes || {};
options = options || {};
if (options.force || this.isBusy()) { return; }
- var that = this, i, result,
+ var that = this,
+ i,
+ result,
K = XM.Model,
S = XT.Session,
keys = _.keys(attributes),
Oops, something went wrong.

0 comments on commit 8f8f1b0

Please sign in to comment.