diff --git a/.gitignore b/.gitignore index 96adf415..b9d5ec97 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .tmp* dist *.swp +.project +.settings/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..c6986a38 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "view/mustache"] + path = view/mustache + url = git@github.com:shairez/mustache-javascriptmvc.git diff --git a/model/list/list.js b/model/list/list.js index 42ce9acf..46d2cc97 100644 --- a/model/list/list.js +++ b/model/list/list.js @@ -567,10 +567,14 @@ steal('jquery/model').then(function( $ ) { findAll: function( params, success, error ) { var self = this; this.model().findAll(params, function( items ) { - self.push(items); + self.push(self.preFilter(items)); success && success(self) }, error) }, + + preFilter: function(items){ + return items; + }, /** * Destroys all items in this list. This will use the List's * [jQuery.Model.List.static.destroy static destroy] method. diff --git a/view/mustache b/view/mustache new file mode 160000 index 00000000..cc889664 --- /dev/null +++ b/view/mustache @@ -0,0 +1 @@ +Subproject commit cc8896649e1e6e498782a83597f29569932df76c