partial replacement with es6 modules
This commit is contained in:
1 parent
5623c296a1
commit
b57d7b09ba
11 files changed
+28
-46
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user