Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var t1 =
- [ '#demo',
- [ 'h1#logo', 'Static Example', { style: 'color:blue' } ],
- [ 'p', 'some example text' ],
- [ 'ul#list.bullets',
- [ 'li', 'item1' ],
- [ 'li.active', 'item2' ],
- [ 'li', [Object] ] ] ]
- //-------------------
- var t2 =
- [ '#demo',
- [ 'h1#logo', 'Static Example', { style: 'color:red' } ],
- [ 'p', 'some example text' ],
- [ 'ul#list.bullets',
- [ 'li', 'item1' ],
- [ 'li.active', 'item3' ],
- [ 'li', [Object] ],
- [ 'li', [Object] ] ] ]
- //-------------------
- var patch =
- [ { kind: 'E',
- path: [ 1, 2, 'style' ],
- lhs: 'color:blue',
- rhs: 'color:red' },
- { kind: 'E', path: [ 3, 2, 1 ], lhs: 'item2', rhs: 'item3' },
- { kind: 'E',
- path: [ 3, 3, 1, 2, 'href' ],
- lhs: '#',
- rhs: '#asdf' },
- { kind: 'A',
- path: [ 3 ],
- index: 4,
- item: { kind: 'N', rhs: [Object] } } ]
- //-------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement