Skip to content

Commit

Permalink
more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 23, 2018
1 parent 2600acf commit 8708edf
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/compile/render-dom/wrappers/Element/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ import ElementWrapper from '.';
import { dimensions } from '../../../../utils/patterns';
import getObject from '../../../../utils/getObject';
import Block from '../../Block';
import Element from '../../../nodes/Element';
import Node from '../../../nodes/shared/Node';
import Renderer from '../../Renderer';
import flattenReference from '../../../../utils/flattenReference';
import getTailSnippet from '../../../../utils/getTailSnippet';

type Handler = {

}

// TODO this should live in a specific binding
const readOnlyMediaAttributes = new Set([
'duration',
Expand All @@ -26,7 +21,7 @@ export default class BindingWrapper {
parent: ElementWrapper;

object: string;
handler: Handler;
handler: any; // TODO
updateDom: string;
initialUpdate: string;
needsLock: boolean;
Expand All @@ -36,21 +31,6 @@ export default class BindingWrapper {
this.node = node;
this.parent = parent;

const needsLock = (
parent.node.name !== 'input' ||
!/radio|checkbox|range|color/.test(parent.getStaticAttributeValue('type'))
);

const isReadOnly = (
(parent.isMediaNode() && readOnlyMediaAttributes.has(this.node.name)) ||
dimensions.test(this.node.name)
);

let updateConditions: string[] = [];

const { name } = getObject(this.node.value.node);
const { snippet } = this.node.value;

const { dependencies } = this.node.value;

block.addDependencies(dependencies);
Expand Down

0 comments on commit 8708edf

Please sign in to comment.