|
|
|
@@ -1,4 +1,4 @@ |
|
|
|
import TransformsFactory from "./transforms-factory"; |
|
|
|
import {TransformsFactory} from "./transforms-factory"; |
|
|
|
import $ from 'jquery'; |
|
|
|
import {HideTransform} from './transformations/hide-transform'; |
|
|
|
|
|
|
|
@@ -19,11 +19,11 @@ function core(){ |
|
|
|
size: "" |
|
|
|
}; |
|
|
|
|
|
|
|
const parametars = [param1, param2]; |
|
|
|
for(let i = 0; i < parametars.length; i++){ |
|
|
|
const param = parametars[i]; |
|
|
|
//param.prototype.targets = $(param.code); |
|
|
|
} |
|
|
|
const parametars = [param1]; |
|
|
|
// for(let i = 0; i < parametars.length; i++){ |
|
|
|
// const param = parametars[i]; |
|
|
|
// param.targets = $(param.code); |
|
|
|
// } |
|
|
|
|
|
|
|
// atribute parameters |
|
|
|
// 2 atributa: (za vise naknadno istraziti) |
|
|
|
@@ -38,7 +38,9 @@ function core(){ |
|
|
|
let transforms = [] |
|
|
|
parametars.forEach(param => |
|
|
|
{ |
|
|
|
transforms.push(TransformsFactory.produce(param.code, { selector: param.selector })); |
|
|
|
const transformFactory = new TransformsFactory(); |
|
|
|
const transform = transformFactory.produce(param.code, param.selector); |
|
|
|
transforms.push(transform); |
|
|
|
}); |
|
|
|
// const hideT = new HideTransform("table"); |
|
|
|
// const hideT = new HideTransform("table"); |