remove some unused stuff

pull/992/head
Rich Harris 8 years ago
parent 7f77a10533
commit f6ac3a44e5

@ -4,20 +4,16 @@ interface StateData {
namespace?: string; namespace?: string;
parentNode?: string; parentNode?: string;
parentNodes?: string; parentNodes?: string;
parentNodeName?: string;
allUsedContexts?: string[]; allUsedContexts?: string[];
usesComponent?: boolean; usesComponent?: boolean;
selectBindingDependencies?: string[];
} }
export default class State { export default class State {
namespace?: string; namespace?: string;
parentNode?: string; parentNode?: string;
parentNodes?: string; parentNodes?: string;
parentNodeName?: string;
allUsedContexts?: string[]; allUsedContexts?: string[];
usesComponent?: boolean; usesComponent?: boolean;
selectBindingDependencies?: string[];
constructor(data: StateData = {}) { constructor(data: StateData = {}) {
assign(this, data) assign(this, data)

@ -148,7 +148,7 @@ export default class Attribute {
} }
const isSelectValueAttribute = const isSelectValueAttribute =
name === 'value' && state.parentNodeName === 'select'; name === 'value' && node.name === 'select';
const last = (shouldCache || isSelectValueAttribute) && block.getUniqueName( const last = (shouldCache || isSelectValueAttribute) && block.getUniqueName(
`${state.parentNode}_${name.replace(/[^a-zA-Z_$]/g, '_')}_value` `${state.parentNode}_${name.replace(/[^a-zA-Z_$]/g, '_')}_value`

@ -179,7 +179,6 @@ export default class Element extends Node {
const childState = state.child({ const childState = state.child({
parentNode: this.var, parentNode: this.var,
parentNodes: block.getUniqueName(`${this.var}_nodes`), parentNodes: block.getUniqueName(`${this.var}_nodes`),
parentNodeName: this.name,
namespace: this.name === 'svg' namespace: this.name === 'svg'
? 'http://www.w3.org/2000/svg' ? 'http://www.w3.org/2000/svg'
: state.namespace, : state.namespace,

@ -57,16 +57,6 @@ export default class Slot extends Element {
block.builders.unmount.pushCondition(`!${content_name}`); block.builders.unmount.pushCondition(`!${content_name}`);
block.builders.destroy.pushCondition(`!${content_name}`); block.builders.destroy.pushCondition(`!${content_name}`);
// const childState = state.child({
// parentNode: this.var,
// parentNodes: block.getUniqueName(`${this.var}_nodes`),
// parentNodeName: this.name,
// namespace: this.name === 'svg'
// ? 'http://www.w3.org/2000/svg'
// : state.namespace,
// allUsedContexts: [],
// });
this.children.forEach((child: Node) => { this.children.forEach((child: Node) => {
child.build(block, state); child.build(block, state);
}); });

Loading…
Cancel
Save