Skip to content

Commit

Permalink
made it possible to grab all the models at once using joli.models.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Mar 18, 2012
1 parent 0aa4d23 commit 97a99a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion joli.js
Expand Up @@ -351,7 +351,11 @@ var joliCreator = function() {

joli.Models.prototype = {
get: function(table) {
return this.models[table];
if (table !== undefined) {
return this.models[table];
} else {
return this.models;
}
},
has: function(table) {
if (this.models[table]) {
Expand Down

0 comments on commit 97a99a0

Please sign in to comment.