From ef164cc8310e376352f4b08c2b0052262fea19e7 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 17 Feb 2014 10:16:43 -0300 Subject: [PATCH] Replace $ by document.id for avoid colitions. --- mindplot/src/main/javascript/Designer.js | 2 +- .../src/main/javascript/DesignerKeyboard.js | 6 +-- .../main/javascript/MultilineTextEditor.js | 2 +- mindplot/src/main/javascript/TextEditor.js | 2 +- mindplot/src/main/javascript/footer.js | 2 +- .../main/javascript/layout/LayoutManager.js | 2 +- .../mootools/mootools-more-1.4.0.1.js | 12 +++--- .../src/main/javascript/widget/FloatingTip.js | 2 +- mindplot/src/main/javascript/widget/Menu.js | 40 +++++++++---------- .../src/main/javascript/widget/ToolbarItem.js | 4 +- .../main/javascript/widget/ToolbarNotifier.js | 6 +-- mindplot/src/test/javascript/simpleTest.js | 6 +-- .../static/test/BalancedTestSuite.js | 2 +- .../javascript/static/test/FreeTestSuite.js | 2 +- .../static/test/SymmetricTestSuite.js | 2 +- .../test/javascript/static/test/TestSuite.js | 2 +- 16 files changed, 47 insertions(+), 47 deletions(-) diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index a0854923..b5939313 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -83,7 +83,7 @@ mindplot.Designer = new Class({ var screenManager = workspace.getScreenManager(); // Zoom In and Zoom Out must active event - $(document).addEvent('mousewheel', function (event) { + document.id(document).addEvent('mousewheel', function (event) { // Change mousewheel handling so we let the default //event happen if we are outside the container. var coords = screenManager.getContainer().getCoordinates(); diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index 8929dec4..2ab79b6e 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -193,14 +193,14 @@ mindplot.DesignerKeyboard = new Class({ 'ctrl+s':function (event) { event.preventDefault(); event.stopPropagation(); - $('save').fireEvent('click'); + document.id('save').fireEvent('click'); }, 'meta+s':function (event) { event.preventDefault(); event.stopPropagation(); - $('save').fireEvent('click'); + document.id('save').fireEvent('click'); }, 'ctrl+i':function (event) { @@ -350,7 +350,7 @@ mindplot.DesignerKeyboard = new Class({ excludes.push("alt"); } - $(document).addEvent('keydown', function (event) { + document.id(document).addEvent('keydown', function (event) { // Convert key to mootools keyboard event format... var keys = []; diff --git a/mindplot/src/main/javascript/MultilineTextEditor.js b/mindplot/src/main/javascript/MultilineTextEditor.js index 5279a71f..81b34a66 100644 --- a/mindplot/src/main/javascript/MultilineTextEditor.js +++ b/mindplot/src/main/javascript/MultilineTextEditor.js @@ -166,7 +166,7 @@ mindplot.MultilineTextEditor = new Class({ if (!this.isVisible()) { //Create editor ui var containerElem = this._buildEditor(); - containerElem.inject($(document.body)); + containerElem.inject(document.id(document.body)); this._containerElem = containerElem; this._registerEvents(containerElem); diff --git a/mindplot/src/main/javascript/TextEditor.js b/mindplot/src/main/javascript/TextEditor.js index aabb3507..97c6c316 100644 --- a/mindplot/src/main/javascript/TextEditor.js +++ b/mindplot/src/main/javascript/TextEditor.js @@ -121,7 +121,7 @@ mindplot.TextEditor = new Class({ if (!this.isVisible()) { //Create editor ui var editorElem = this._buildEditor(); - editorElem.inject($(document.body)); + editorElem.inject(document.id(document.body)); this._containerElem = editorElem; this._registerEvents(editorElem); diff --git a/mindplot/src/main/javascript/footer.js b/mindplot/src/main/javascript/footer.js index 393617a8..fed5a994 100644 --- a/mindplot/src/main/javascript/footer.js +++ b/mindplot/src/main/javascript/footer.js @@ -1 +1 @@ -$(document).fireEvent('loadcomplete', 'mind'); +document.id(document).fireEvent('loadcomplete', 'mind'); diff --git a/mindplot/src/main/javascript/layout/LayoutManager.js b/mindplot/src/main/javascript/layout/LayoutManager.js index c7d6c86d..b4a86e03 100644 --- a/mindplot/src/main/javascript/layout/LayoutManager.js +++ b/mindplot/src/main/javascript/layout/LayoutManager.js @@ -137,7 +137,7 @@ mindplot.layout.LayoutManager = new Class({ // Collect changes ... this._collectChanges(); - if (!$(fireEvents) || fireEvents) { + if (!document.id(fireEvents) || fireEvents) { this._flushEvents(); } diff --git a/mindplot/src/main/javascript/libraries/mootools/mootools-more-1.4.0.1.js b/mindplot/src/main/javascript/libraries/mootools/mootools-more-1.4.0.1.js index f8fefe81..10a0d017 100644 --- a/mindplot/src/main/javascript/libraries/mootools/mootools-more-1.4.0.1.js +++ b/mindplot/src/main/javascript/libraries/mootools/mootools-more-1.4.0.1.js @@ -50,12 +50,12 @@ var b=0;for(h=0;h