[Pkg-mozext-commits] [itsalltext] 254/459: Fixed problems from when I moved onClick and onContext out of cache_object

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:27 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 c37dd377ad24b62b3d74f8ac55d3321d394e9eaa
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Thu Jun 21 10:28:15 2007 -0400

    Fixed problems from when I moved onClick and onContext out of cache_object
---
 Makefile                       | 14 +++++++++-----
 src/chrome/content/cacheobj.js |  8 +++++---
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index ce7f9f4..956d8f5 100644
--- a/Makefile
+++ b/Makefile
@@ -60,8 +60,11 @@ else
 	ZIP := $(ZIP) -q
 endif
 
-all: lint
-	$(Q)echo done
+.PHONY: default
+default: lint narf final
+
+.PHONY: all
+all: lint narf docs final
 
 ## Release a new xpi
 .PHONY: release
@@ -159,10 +162,11 @@ narf: .narf-stamp
 ## Documentation
 .PHONY: docs
 docs: docs/.stamp
+
 docs/.stamp: $(SOURCES_JS)
 	$(Q)echo Creating docs ...
 	$(Q)jsdoc --directory docs \
-	--project-name "$(PROJNAME) - A Firefox Extension" \
+	--project-name "$(subst ", ', PROJNAME) - A Firefox Extension" \
 	--logo $(ICONFILE) \
 	--package-naming \
 	--private \
@@ -180,11 +184,11 @@ todo: .todo
 ## Cleanup methods
 .PHONY: clean
 clean:
-	$(Q)rm -rf lint build docs .todo stage1 final
+	$(Q)rm -rf build .todo stage1 final .*-stamp
 
 .PHONY: realclean
 realclean: clean
-	$(Q)rm -f $(XPI_FILE)
+	$(Q)rm -rf $(XPI_FILE) docs lint
 
 ## @todo [5] [make] Do a proper build in another directory.
 ## @todo [5] [make] Minimize JavaScript.
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index cd86612..61a2666 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -448,7 +448,8 @@ CacheObj.prototype.update = function() {
  * @param {Object} event The event that triggered this.
  */
 CacheObj.prototype.onClick = function(event) {
-    cache_object.edit();
+    var cobj = ItsAllText.getCacheObj(event.target);
+    cobj.edit();
     event.stopPropagation();
     return false;
 };
@@ -466,8 +467,9 @@ CacheObj.prototype.onContext = function(event) {
      *
      * See Mozilla bugs: 287357, 362403, 279703
      */
-    var popup = ItsAllText.rebuildMenu(cache_object.uid);
-    document.popupNode = popup;
+    var cobj = ItsAllText.getCacheObj(event.target);
+    var popup = ItsAllText.rebuildMenu(cobj.uid);
+    event.target.ownerDocument.popupNode = popup;
     popup.showPopup(popup,
                     event.screenX, event.screenY,
                     'context', null, null);

-- 
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