You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
123456789101112131415161718
  1. export class Transform{
  2. constructor(param)
  3. {
  4. this.object = param.object;
  5. this.selectors = param.selectors;
  6. this.selector = this.object.tagName;
  7. const arrayCode = this.object.getAttribute("code").split('-');
  8. if(arrayCode.length > 2)
  9. {
  10. this.value = arrayCode[2];
  11. }
  12. }
  13. validate(){
  14. return (this.selectors.indexOf(this.selector.toLowerCase()) > -1);
  15. };
  16. execute(){};
  17. rolback(){};
  18. }