1
0
Fork 0

Fixed a bug with undefined values printed to console.log but they had no effect

This commit is contained in:
Michael Hackstein 2014-01-30 20:39:37 +01:00
parent 875100a195
commit 521a46088c
1 changed files with 6 additions and 1 deletions

View File

@ -2,13 +2,15 @@
/*global window, Backbone, $, window, _*/
(function() {
'use strict';
window.ArangoDatabase = Backbone.Collection.extend({
model: window.Database,
comparator: "name",
sync: function(method, model, options) {
'use strict';
if (method === "read") {
options.url = model.url() + "user";
}
@ -20,6 +22,9 @@
},
parse: function(response) {
if (!response) {
return;
}
return _.map(response.result, function(v) {
return {name:v};
});