Skip to content

Conversation

@joshuafcole
Copy link
Contributor

No description provided.

@joshuafcole joshuafcole changed the base branch from master to refactor-runtime February 7, 2017 23:31
record.__output = true;
this.__block.records.push(record);

if(typeof attributeName === "string") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add should not be added to the identity, so it's always dynamic

blocks:DSLBlock[] = [];
runtimeBlocks:runtime.Block[] = [];
index:indexes.Index;
nodeCount = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗑

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J/k, this tracks the nodeIds now that they aren't all awesome nodes.

block(name:string, func:(block:DSLBlock) => any) {
let block = new DSLBlock(name, func, this);
block(name:string, func:BlockFunction) {
let block = new DSLBlock(name, func, this, undefined, undefined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need the undefineds here now

}
trans.exec(this.index);
console.log(trans.changes.map((change, ix) => ` <- ${change}`).join("\n"));
// console.log(trans.changes.map((change, ix) => ` <- ${change}`).join("\n"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should make this console.info

}

export function maybeReverse(value?:ID):ID|RawValue|undefined {
if(!value) return undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be return value

instance.__styles!.splice(ix, 1);

for(let otherStyleId of instance.__styles!) {
console.log("reapplying", otherStyleId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗑

}

insertChild(parent:Instance, child:Instance) {
parent.appendChild(child);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to sort these guys

return [
style.add(attribute, value)
];
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably collapse the block and watch here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ibdknox ibdknox merged commit 9a53b22 into refactor-runtime Feb 8, 2017
@Eucalyptus2013
Copy link

Is it related to this rfc ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants