Oh, I remember this problem, too. I missed to report it when I saw it in
the betas :/
Interessting is the following code in qx.lang.Object.js
/**
* Return a copy of an Object
*
* TODO: Rename to clone() like in prototype and python
*
* @type static
* @param source {Object} Object to copy
* @return {Object} copy of vObject
*/
copy : function(source)
{
var clone = {};
for (var key in source) {
clone[key] = source[key];
}
return clone;
},
Especially the comment ;)
Jim Hunter schrieb:
> I see that on March 8, 2007 that the clone code was removed from
> Widget but nothing was put in to replace it and I see no mention of it
> being removed in any documentation. Argh! This breaks existing code!
> The Wiki still says that to create a copy of something use the clone
> method, but now that is not true.
> Is this function going to get put back in? Is there another, perhaps
> better, way to get a copy (I did see the copy method in source code
> but don't see it in the API Viewer) on a Widget?
>
> Thanks,
> Jim
>
>
> On 8/13/07, *Jim Hunter* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> After converting my .6.6 project to .7.1, I have a line of code
> that no longer works (translated: causes a JavaScript error). here
> is the code snippet and the resulting error:
>
> this.From = new qx.ui.form.TextField;
> this.To = this.From.clone(); // causes a JavaScript error:
> "this.From.clone is not a function"
>
> I looked through the logs of SVN but didn't see anything
> pertaining to removing clone from some widgets. But when I look at
> the API viewer, I do not see Clone as a method of
> qx.ui.form.TextField. In the source code I see the Object has a
> Copy method but I don't see that as an inherited method of
> qx.ui.form.TextField.
>
> So what is a guy to do when I need a clone/copy of a
> qx.ui.form.TextField ?
>
> Thanks,
> Jim
> www.D4PHP.org <http://www.D4PHP.org>
> www.D4PHP-Hosting.com <http://www.D4PHP-Hosting.com>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel