Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private el:HTMLElement;
- constructor(htm:string) {
- this.el = document.createElement('div');
- $(this.el).html(htm);
- }
- public draw(selector:string):HTMLElement {
- return ($(this.el).find(selector).clone());
- }
- public destroy():void {
- this.el = null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement