Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1697)

Unified Diff: Tools/GardeningServer/model/ct-commit-list.html

Issue 526633002: Apply object updates from the network without blowing away object identity or UI attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initial Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/model/ct-commit-list.html
diff --git a/Tools/GardeningServer/model/ct-commit-list.html b/Tools/GardeningServer/model/ct-commit-list.html
index f4395bbd86b86fe5ecd4d83a3dd708ef92f8f563..dc34dcdb589f2cdc6ac1faef182f1ece8e37ec31 100644
--- a/Tools/GardeningServer/model/ct-commit-list.html
+++ b/Tools/GardeningServer/model/ct-commit-list.html
@@ -5,6 +5,7 @@ found in the LICENSE file.
-->
<link rel="import" href="ct-commit-log.html">
+<link rel="import" href="ct-repository-commit-list.html">
<script>
function CTCommitList(commitLog, revisions) {
@@ -27,12 +28,7 @@ CTCommitList.prototype.update = function(commitLog) {
if (!commits.length)
continue;
- this.repositories.push({
- name: repository,
- range: this._displayRange(commits, repository),
- commits: commits,
- expanded: false
- });
+ this.repositories.push(new CTRepositoryCommitList(repository, commits));
}
};
@@ -52,8 +48,4 @@ CTCommitList.prototype._initRevisions = function(repoRevisions) {
}.bind(this));
};
-CTCommitList.prototype._displayRange = function(commits) {
- return commits.first().revision + " : " + commits.last().revision;
-};
-
</script>

Powered by Google App Engine
This is Rietveld 408576698