[Pkg-mozext-commits] [itsalltext] 131/459: * fixed missing changelog. * updated API documentation.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository itsalltext.

commit 26262c53474dbe32e424d66ca812163e01688b70
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Mon Feb 12 10:42:03 2007 -0500

    * fixed missing changelog.
    * updated API documentation.
---
 changelog.txt         |  1 +
 chrome/content/API.js | 13 +++++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/changelog.txt b/changelog.txt
index 3cc1e04..6b70f7f 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -17,6 +17,7 @@ $*".
 * We now have extension settings.
 * Extensions can make use of It's All Text! as well (see API.js).
 * cleaned up preferences layout.
+* Found and fixed a memory leak in the preference observer.
 
 ****** 0.3.4 ******
 * Fade in and out gumdrops.
diff --git a/chrome/content/API.js b/chrome/content/API.js
index c8c163b..2e862cd 100644
--- a/chrome/content/API.js
+++ b/chrome/content/API.js
@@ -12,8 +12,8 @@
   via JavaScript or you can add one or two attributes to a XUL element and
   it'll automatically be set up right.
 
-  The suggested method is to add the correct attributes to your XUL item
-  and let It's All Text! do it for you.
+  The suggested method is to add the correct attributes to your XUL button 
+  or menuitem and let "It's All Text!" do it for you.
 
   Attributes:
     'itsalltext-control' -- This should be set to the id of the textbox
@@ -23,10 +23,10 @@
                               leading dot character.  Example: '.css'
                               It defaults to '.txt' and is optional.
 
-  If you don't want this XUL element to be visible unless It's All Text!
+  If you don't want this XUL element to be visible unless "It's All Text!"
   is installed, then you should set it's CSS style display to 'none'.
 
-  Example:
+  Example using attributes (recommended method):
       <hbox>
         <spacer flex="1"/>
         <button label="It's All Text!"
@@ -36,6 +36,11 @@
         />
       </hbox>
 
+  Example calling openEditor() directly:
+     if(some_condition && ItsAllText) {
+         ItsAllText.openEditor('id-of-textarea', '.extension');
+     }
+
  */
 
 (function () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list