Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2454)

Issue 8882044: Re-implement instance terminators (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rafaelw
Modified:
10 years, 8 months ago
Reviewers:
arv, erik.arvidsson
CC:
mdv-reviews_googlegroups.com
Base URL:
https://github.com/toolkitchen/mdv.git@master
Visibility:
Public.

Description

Re-implement instance terminators so that insertion/remove is no longer linear. R=arv BUG= Committed: https://github.com/toolkitchen/mdv/commit/933f6bb

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -164 lines) Patch
M src/template_element.js View 8 chunks +62 lines, -164 lines 3 comments Download

Messages

Total messages: 1
arv
11 years ago (2013-04-22 15:30:08 UTC) #1
Message was sent while issue was closed.
LGTM

https://codereview.appspot.com/8882044/diff/1/src/template_element.js
File src/template_element.js (right):

https://codereview.appspot.com/8882044/diff/1/src/template_element.js#newcode...
src/template_element.js:1040: if (!this.terminators.length)
We can skip this check. It looks like it will work correctly anyway.

https://codereview.appspot.com/8882044/diff/1/src/template_element.js#newcode...
src/template_element.js:1075: this.removeInstanceAt(splice.index);
We could potentially optimize this to remove all of them at once.

https://codereview.appspot.com/8882044/diff/1/src/template_element.js#newcode...
src/template_element.js:1086: this.insertInstanceAt(addIndex, fragment);
same here
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b