Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Alternative naming for dependsOn and linkWith methods #2

Open
belozer opened this issue Aug 7, 2016 · 0 comments
Open

Alternative naming for dependsOn and linkWith methods #2

belozer opened this issue Aug 7, 2016 · 0 comments

Comments

@belozer
Copy link

belozer commented Aug 7, 2016

-- renamed

graph.vertex({ block: 'attach' }, 'js')
    .after({ block: 'button' }, 'bemhtml')
    .after({ block: 'button2' }, 'bemhtml')
    .after({ block: 'button3' }, 'bemhtml');

graph.vertex({ block: 'button' })
    .plus({ block: 'button5', elem: 'text' })
    .plus({ block: 'button6', elem: 'text' })
    .plus({ block: 'button7', elem: 'text' });

graph.vertex({ block: 'textarea' }, 'css')
    .after({ block: 'input' }, 'css');

or

graph.vertex({ block: 'attach' }, 'js')
    .before({ block: 'button' }, 'bemhtml')
    .before({ block: 'button2' }, 'bemhtml')
    .before({ block: 'button3' }, 'bemhtml');

graph.vertex({ block: 'button' })
    .plus({ block: 'button5', elem: 'text' })
    .plus({ block: 'button6', elem: 'text' })
    .plus({ block: 'button7', elem: 'text' });

graph.vertex({ block: 'textarea' }, 'css')
    .before({ block: 'input' }, 'css');

-- original

graph.vertex({ block: 'attach' }, 'js')
    .dependsOn({ block: 'button' }, 'bemhtml')
    .dependsOn({ block: 'button2' }, 'bemhtml')
    .dependsOn({ block: 'button3' }, 'bemhtml');

graph.vertex({ block: 'button' })
    .linkWith({ block: 'button5', elem: 'text' })
    .linkWith({ block: 'button6', elem: 'text' })
    .linkWith({ block: 'button7', elem: 'text' });

graph.vertex({ block: 'textarea' }, 'css')
    .dependsOn({ block: 'input' }, 'css');
@belozer belozer changed the title Renaming dependsOn and linkWith methods Alternative naming for dependsOn and linkWith methods Aug 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant