JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.3
[ckeditor.git] / _source / plugins / indent / plugin.js
index c36370c..5dcfe63 100644 (file)
@@ -15,10 +15,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function onSelectionChange( evt )\r
        {\r
-               var editor = evt.editor;\r
-\r
-               var elementPath = evt.data.path,\r
-                               list = elementPath && elementPath.contains( listNodeNames );\r
+               var editor = evt.editor,\r
+                       elementPath = evt.data.path,\r
+                       list = elementPath && elementPath.contains( listNodeNames ),\r
+                       firstBlock = elementPath.block || elementPath.blockLimit;\r
 \r
                if ( list )\r
                                return this.setState( CKEDITOR.TRISTATE_OFF );\r
@@ -26,8 +26,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                if ( !this.useIndentClasses && this.name == 'indent' )\r
                        return this.setState( CKEDITOR.TRISTATE_OFF );\r
 \r
-               var path = evt.data.path,\r
-                       firstBlock = path.block || path.blockLimit;\r
                if ( !firstBlock )\r
                        return this.setState( CKEDITOR.TRISTATE_DISABLED );\r
 \r