From d5f0b074c2077b56e039b2db117db0bc8ccd5968 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Tue, 18 Sep 2012 22:57:44 +0100 Subject: [PATCH] [model][xs]: tweak to _backendFromString to remove option to look up backends specified as full module pathes as this is a liable to bugs and it is not being used. --- dist/recline.dataset.js | 16 +--------------- dist/recline.js | 16 +--------------- docs/models.markdown | 7 +++++-- src/model.js | 16 +--------------- 4 files changed, 8 insertions(+), 47 deletions(-) diff --git a/dist/recline.dataset.js b/dist/recline.dataset.js index 4c4b3e38..cce33d6e 100644 --- a/dist/recline.dataset.js +++ b/dist/recline.dataset.js @@ -262,22 +262,8 @@ my.Dataset = Backbone.Model.extend({ // ### _backendFromString(backendString) // - // See backend argument to initialize for details + // Look up a backend module from a backend string (look in recline.Backend) _backendFromString: function(backendString) { - var parts = backendString.split('.'); - // walk through the specified path xxx.yyy.zzz to get the final object which should be backend class - var current = window; - for(ii=0;ii