Skip to content

Commit

Permalink
指令排序
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Jun 3, 2016
1 parent ade2729 commit b9d6459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blear.classes.template",
"version": "1.0.16",
"version": "1.0.17",
"description": "指令类型模板引擎",
"scripts": {
"live": "browser-sync start --config bs-config.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ var initDirectives = function (directives) {

// 按照优先级排序
directivesList.sort(function (a, b) {
return a - b;
return b.priority - a.priority;
});

return directivesList
Expand Down

0 comments on commit b9d6459

Please sign in to comment.