| @@ -1,20 +0,0 @@ | |||
| import {Transform} from "./transform"; | |||
| import $ from "jquery"; | |||
| export class RemoveTableStylesTransform extends Transform { | |||
| constructor(object){ | |||
| super(); | |||
| this.object = object; | |||
| this.class = this.object.className; | |||
| } | |||
| execute(){ | |||
| $(this.object).removeClass(); | |||
| //$(this.object).removeAttr( 'style' ); | |||
| } | |||
| rolback(){ | |||
| $(this.object).addClass(this.class); | |||
| //$(this.object).addAttr( 'style' ); | |||
| } | |||
| } | |||
| @@ -7,6 +7,7 @@ import { ShowNumberRowsTransformation } from "./transformations/show-number-rows | |||
| import { BorderColorTransform } from "./transformations/border-color-transformation/border-color-transformation"; | |||
| import { RemoveTableHeaderTransform } from "./transformations/remove-table-header-transform"; | |||
| import { RemoveTableStylesTransform } from "./transformations/remove-table-styles"; | |||
| export class TransformsFactory{ | |||
| produce(code,object,selectors) | |||
| { | |||