search for: dontenum

Displaying 4 results from an estimated 4 matches for "dontenum".

Did you mean: contenu
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
...amework falls into this trap. - Solution Well, it''s hacky but we skip members called "extend". Reading the ECMAScript spec and various things on the web (see links) I can see that the language spec sets it''s own internal variables (e.g. length ) with a property called DontEnum which excludes them from a for-each. Unfortunately, there doesn''t seem to be an api to set this yourself :( - Links <http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf> - ECMAScript Spec <http://bclary.com/2004/09/26/boot-camp-javascript> - Excellent la...
2005 Oct 13
3
Tweaks of Array.prototype
Hi all, I encountered a big problem when trying to use Scriptaculous and Htmlarea in the same page. The Htmlarea code uses a lot of "for (var i in array_variable)" to iterate on array elements. Problem is that prototype.js augments Array.prototype, which then show up in the iteration, severely breaking htmlarea. The easy workaround is for sure to use "for (var i = 0; i <
2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...ags */ - action_val_convert_to_number (c); - if (num_args >= 4) { - d = stack_pop (context); /* allowFalse */ - action_val_convert_to_boolean (d); - allowFalse = d->number; - action_val_free (d); - } - - flags = (int)c->number & 0x7; - /* The flags appear to be 0x1 for DontEnum, 0x2 for DontDelete, and 0x4 for - * DontWrite, though the tables I found on the web are poorly written. - */ - - if (ACTIONVAL_IS_NULL(b)) { - GList *g; - - SWFDEC_DEBUG("%d args", num_args); - - for (g = g_list_first (a->obj->properties); g; g = g_list_next (g)) { -...
2006 Jan 03
45
Status of Prototype
Hi *, we are using prototype in Apache MyFaces as our javascript library of choice. Recently, there has been much discussion on our mailing list as to the usability of prototype in a dynamic environments where several javascript libraries are used. The critics of prototype argue that the prototype objects are not namespaced - and that prototype extends basic javascript-objects with method names