Download:
child 103:b30120f476e6
parent 101:c9a81d64b0c3
102:325b3b4ce18b
Anton Shestakov <av6@dwimlabs.net>, Tue, 19 Jul 2016 18:16:23 +0800
ui: use dot operator to access known object properties

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
static/js/ui.js file | annotate | diff | comparison | revisions
--- a/static/js/ui.js Tue Jul 19 17:51:59 2016 +0800
+++ b/static/js/ui.js Tue Jul 19 18:16:23 2016 +0800
@@ -25,8 +25,8 @@
type: 'GET',
dataType: 'json'
}).done(function(data) {
- fruitbar.projects.set(data['projects']);
- fruitbar.tasks.set(data['tasks']);
+ fruitbar.projects.set(data.projects);
+ fruitbar.tasks.set(data.tasks);
});
};