From 3364eb131e93b83c3cd889011e648a2a91778a61 Mon Sep 17 00:00:00 2001 From: Gedion Date: Tue, 11 Sep 2012 17:02:53 -0500 Subject: [PATCH] fixed comments --- src/static/js/ace2_inner.js | 44 +------------------------------ src/static/js/contentcollector.js | 26 +----------------- 2 files changed, 2 insertions(+), 68 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 4251d878..9028dfcb 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -1698,20 +1698,6 @@ function Ace2Inner(){ if (selection && !selStart) { //if (domChanges) dmesg("selection not collected"); - /* - * Called from: src/static/js/ace2_inner.js - * - * Context - - * callstack - a bunch of information about the current action - * editorInfo - information about the user who is making the change - * rep - information about where the change is being made - * root - the span element of the current line - * point - the starting element where the cursor currently resides - * documentAttributeManager - information about attributes in the document - * This hook is provided to allow a plugin to turn DOM node selection into [line,char] selection. - * The return value should be an array of [line,char] - * - */ var selStartFromHook = hooks.callAll('aceStartLineAndCharForPoint', { callstack: currentCallStack, editorInfo: editorInfo, @@ -1724,20 +1710,6 @@ function Ace2Inner(){ } if (selection && !selEnd) { - /* - * Called from: src/static/js/ace2_inner.js - * - * Context - - * callstack - a bunch of information about the current action - * editorInfo - information about the user who is making the change - * rep - information about where the change is being made - * root - the span element of the current line - * point - the ending element where the cursor currently resides - * documentAttributeManager - information about attributes in the document - * This hook is provided to allow a plugin to turn DOM node selection into [line,char] selection. - * The return value should be an array of [line,char] - * - */ var selEndFromHook = hooks.callAll('aceEndLineAndCharForPoint', { callstack: currentCallStack, editorInfo: editorInfo, @@ -3615,20 +3587,6 @@ function Ace2Inner(){ if (!stopped) { - /* - * Called from: src/static/js/ace2_inner.js - * - * Context - - * callstack - a bunch of information about the current action - * editorInfo - information about the user who is making the change - * rep - information about where the change is being made - * documentAttributeManager - information about attributes in the document - * evt - the fired event - * - * This hook is provided to allow a plugin to handle key events. - * The return value should true if you have handled the event. - * - */ var specialHandledInHook = hooks.callAll('aceKeyEvent', { callstack: currentCallStack, editorInfo: editorInfo, @@ -3636,7 +3594,7 @@ function Ace2Inner(){ documentAttributeManager: documentAttributeManager, evt:evt }); - specialHandled = (specialHandledInHook&&specialHandledInHook.length>0)?specialHandledInHook[0]:specialHandled; + specialHandled = (specialHandledInHook&&specialHandledInHook.length>0)?specialHandledInHook[0]:specialHandled; if ((!specialHandled) && isTypeForSpecialKey && keyCode == 8) { // "delete" key; in mozilla, if we're at the beginning of a line, normalize now, diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 1f1f5f20..c1687489 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -376,19 +376,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class { var txt = dom.nodeValue(node); var tname = dom.nodeAttr(node.parentNode,"name"); - /* - * Called from: src/static/js/contentcollector.js - * - * Context - - * cc - the contentcollector object - * state - the current state of the change being made - * tname - the tag name of this node currently being processed - * text - the text for that line - * This hook allows you to validate/manipulate the text before it sent to the server side. - * The return value should be the validated/manipulated text. - * - */ - //top.console.log(' nodevalue ',txt); + var txtFromHook = hooks.callAll('collectContentLineText', { cc: this, state: state, @@ -466,18 +454,6 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class { var tname = (dom.nodeTagName(node) || "").toLowerCase(); if (tname == "br") - /* - * Called from: src/static/js/contentcollector.js - * - * Context - - * cc - the contentcollector object - * state - the current state of the change being made - * tname - the tag name of this node currently being processed - * - * This hook is provided to allow whether the br tag should induce a new magic domline or not. - * The return value should be either true(break the line) or false. - * - */ { this.breakLine = true; var tvalue = dom.nodeAttr(node, 'value');