MDL-46497 atto: Whitespace/coding style fix

This commit is contained in:
Andrew Nicols 2015-10-12 13:37:14 +08:00
parent 56b62992fa
commit 99690e0fa8
3 changed files with 12 additions and 3 deletions

View File

@ -67,7 +67,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
var host = this.get('host'),
sourceSelection = rangy.saveSelection(),
selection = host.getSelection(),
newDirection = { rtl: 'ltr', ltr: 'rtl' };
newDirection = {
rtl: 'ltr',
ltr: 'rtl'
};
if (selection) {
// Format the selection to be sure it has a tag parent (not the contenteditable).
var parentNode = host.formatSelectionBlock(),

View File

@ -67,7 +67,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
var host = this.get('host'),
sourceSelection = rangy.saveSelection(),
selection = host.getSelection(),
newDirection = { rtl: 'ltr', ltr: 'rtl' };
newDirection = {
rtl: 'ltr',
ltr: 'rtl'
};
if (selection) {
// Format the selection to be sure it has a tag parent (not the contenteditable).
var parentNode = host.formatSelectionBlock(),

View File

@ -65,7 +65,10 @@ Y.namespace('M.atto_rtl').Button = Y.Base.create('button', Y.M.editor_atto.Edito
var host = this.get('host'),
sourceSelection = rangy.saveSelection(),
selection = host.getSelection(),
newDirection = { rtl: 'ltr', ltr: 'rtl' };
newDirection = {
rtl: 'ltr',
ltr: 'rtl'
};
if (selection) {
// Format the selection to be sure it has a tag parent (not the contenteditable).
var parentNode = host.formatSelectionBlock(),