partial replacement with es6 modules

This commit is contained in:
tmshv committed 2016-02-15 17:10:59 +03:00
1 parent 5623c296a1
commit b57d7b09ba
11 files changed
+28 -46

No files matched your search

+2 -5
View File
@@ -1,7 +1,4 @@
exports.pop = pop;
exports.populate = populate;
function pop(data){
export function pop(data){
var Populator = function(data){
this.target = data;
}
@@ -28,7 +25,7 @@ function pop(data){
return fun;
}
function populate(find, field){
export function populate(find, field){
return function(lesson){
var id = lesson[field];
var val = find(id);