Skip to content

Commit

Permalink
sorter
Browse files Browse the repository at this point in the history
  • Loading branch information
lealife committed Feb 10, 2017
1 parent 42e6d29 commit ba82536
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions public/js/app/note.js
Expand Up @@ -152,10 +152,6 @@ Note.setNotesSorter = function (sortType) {
};

// render前先排序
Note.sortNotesToRender = function (notes) {
Note.sortNotes(notes);
};

Note.sortNotes = function (notes) {
if (isEmpty(notes)) {
return;
Expand Down Expand Up @@ -1067,7 +1063,7 @@ Note.renderNotes = function(notes, forNewNote, hasSorted) {

// 重新排序
if (!hasSorted) {
Note.sortNotesToRender(notes);
Note.sortNotes(notes);
}

// 20个一次
Expand Down Expand Up @@ -2620,7 +2616,6 @@ var Attach = {
}
} else {}
});

});

// make link
Expand Down

0 comments on commit ba82536

Please sign in to comment.