Widgets refactor (#5817)

* widgets refactor

render widgets server side
widgets can use all the data the template can use

* fix tests
This commit is contained in:
Barış Soner Uşaklı
2017-07-10 12:54:45 -04:00
committed by GitHub
parent 65329b9bd7
commit 923bd86662
10 changed files with 135 additions and 130 deletions

View File

@@ -6,7 +6,7 @@ helpers.toMap = function (data) {
var map = {};
for (var i = 0; i < data.length; i += 1) {
map[data[i]._key] = data[i];
data[i]._key = undefined;
delete data[i]._key;
}
return map;
};