remove unnecessary backbone-x modification + add comments
authorjulesstp <julianmcarlin@gmail.com>
Tue, 20 May 2014 19:07:10 +0000 (13:07 -0600)
committerjulesstp <julianmcarlin@gmail.com>
Tue, 20 May 2014 19:07:10 +0000 (13:07 -0600)
lib/backbone-x/source/info.js
lib/enyo-x/source/widgets/relation.js

index 93c1917..0e17d65 100644 (file)
@@ -110,8 +110,7 @@ white:true*/
       @returns {Boolean}
     */
     couldRead: function (model) {
-      var editableModel = this.prototype.editableModel || model.editableModel,
-        Klass = Backbone.Relational.store.getObjectByName(editableModel);
+      var Klass = Backbone.Relational.store.getObjectByName(this.prototype.editableModel);
       return Klass ? Klass.canRead(model || this) : false;
     },
 
index e0504ea..e0457bc 100644 (file)
@@ -454,6 +454,10 @@ regexp:true, undef:true, trailing:true, white:true, strict:false */
       correct model will be fetched and this function will be called again
       recursively with the model.
 
+      *In case of "order" models, each order's workspace is different depending on the order type.
+      This causes the Workspace var to be null so get the value from the getWorkspace
+      defined on the relation.js sub-kind.
+
       @param {XM.Model|Number|String} Value; can be a model or the id of a model.
       @param {Object} options
      */