소스 검색

fix style jshint

Evan You 12 년 전
부모
커밋
5016e0be5d
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/directives/style.js

+ 3 - 2
src/directives/style.js

@@ -17,10 +17,11 @@ module.exports = {
     },
 
     update: function (value) {
-        var prop = this.prop
+        var prop = this.prop,
+            isImportant
         if (prop) {
             if (value){
-                var isImportant = value.slice(-10) === '!important'
+                isImportant = value.slice(-10) === '!important'
                     ? 'important'
                     : ''
                 if (isImportant) {