Even better here is a playground example: http://tinyurl.com/nrea2n2
On Fri, Jan 1, 2016 at 2:08 PM, Jonathan Wolfe <jonathan.wo...@noaa.gov> wrote: > Hi, > > I am trying to implement just the ColorSelector window which appears after > selecting the "Open ColorSelector" button in the qx.ui.control.ColorPopup. > So, I thought I would extend the ColorPopup class and just override the > _createChildControlImpl function so that the ColorSelector appears > automatically; however when I do this, I am getting this error: > > 023800 Assertion error! Failed to add event listener for type 'mousedown' > to the target 'qx.ui.core.Widget': Invalid callback function: Expected > value to be typeof function but found 'undefined'! > > Uncaught Failed to add event listener for type 'mousedown' to the target > 'qx.ui.core.Widget': Invalid callback function: Exception while creating > child control 'field#0' of widget edd.JQx.ColorSelector[9954-0]: Expected > value to be typeof function but found 'undefined'! > > > *Here is my code snippet:* > > qx.Class.define("edd.JQx.ColorSelector", > { > extend : qx.ui.control.ColorPopup, > members : > { > > // overridden > _createChildControlImpl : function(id, hash) > { > this.base(arguments); > var control; > switch(id) > { > case "field": > control = new qx.ui.core.Widget; > control.addListener("mousedown", this._onFieldMouseDown, > this); // <------------- Fails here > > > > I thought that the this._onFieldMouseDown would be brought along in the > extension, but maybe this has something to do with two arguments being > passed to the _createChildControlImpl function and I'm not capturing it > properly? Any pointers would be greatly appreciated! Thanks and Happy New > Year! > > Jonathan >
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel