Author: jmorliaguet
Date: Sun Jan 15 12:52:35 2006
New Revision: 2214

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- the contextual actions' setup is the same as the contextual menu's

- removed debug message



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Sun Jan 15 
12:52:35 2006
@@ -591,7 +591,6 @@
   /* Private API */
 
   handleAction: function(object, action, args) {
-   $("message").innerHTML += CPSSkins.Observers[this.model].length;
     var controller = this.controller;
     if (!controller) return;
     var handler = controller.handlers[action];
@@ -992,22 +991,6 @@
 Object.extend(CPSSkins.ContextualActions.prototype, 
CPSSkins.ContextualMenu.prototype);
 Object.extend(CPSSkins.ContextualActions.prototype, {
 
-  setup: function() {
-    this.area = this.def.parentNode || document;
-    this.active = false;
-
-    this.showEvent = this.showEvent.bindAsEventListener(this);
-    this.hideEvent = this.hideEvent.bindAsEventListener(this);
-    this.callEvent = this.callEvent.bindAsEventListener(this);
-    this.mouseOverEvent = this.mouseOverEvent.bindAsEventListener(this);
-
-    Event.observe(this.widget, "mousedown", function(e) {Event.stop(e)});
-    Event.observe(this.widget, "mouseup", this.callEvent);
-    Event.observe(this.widget, "mouseover", this.mouseOverEvent);
-    Event.observe(this.area, "mouseup", this.showEvent);
-    Event.observe(document, "mousedown", this.hideEvent);
-  },
-
   prepare: function() {
     var widget = this.widget;
     Canvas.moveTo(widget, this.mouseX -50, this.mouseY);
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to