diff --git a/package.json b/package.json index e3b855f..de22ebf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index 6afeac1..623407c 100644 --- a/src/index.js +++ b/src/index.js @@ -520,7 +520,7 @@ var initDirectives = function (directives) { // 按照优先级排序 directivesList.sort(function (a, b) { - return a - b; + return b.priority - a.priority; }); return directivesList