search for: _each

Displaying 12 results from an estimated 12 matches for "_each".

Did you mean: each
2005 Dec 15
3
Generic Question about the way code is written
Hi, This is a generic question about the way code is written in prototype and scriptaculous libraries. Inside every object, we find functions that begin with "_". How are these methods/functions different from the rest? eg _text, _attributes, _each... Please let me know. Thank you, Mandy.
2006 Jun 20
4
Prototype Array bug??
...9;<BR>''; } $(''test1'').innerHTML = $temp; } } When I run this code as you see it, this is the result: t=indexOf, undefined t=without, undefined t=flatten, undefined t=compact, undefined t=last, undefined t=first, undefined t=clear, undefined t=_each, undefined t=_reverse, undefined t=entries, undefined t=member, undefined t=select, undefined t=find, undefined t=map, undefined t=inspect, undefined t=zip, undefined t=toArray, undefined t=sortBy, undefined t=reject, undefined t=pluck, undefined t=partition, undefined t=min, undefined t=max, undef...
2005 Dec 12
7
possible opera+prototype bug in evalscripts?
...Line 227 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js iterator(value, index++); Line 417 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js iterator(this[i]); Line 231 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js this._each(function (value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } } ); Line 259 of linked script http://ccml.uni-weimar.de/javascripts/prototype.js this.each(function (value,index) { results.push(iterator(value, index));...
2007 Jan 22
1
Prototype.js object.constructor exception
...in the javascript console and everything halts. It seems like the try catch doesn''t seem to be working in FF. I''ve included the code from prototype.js where I think the error is coming from. var Enumerable = { each: function(iterator) { var index = 0; try { this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; //this is where the exception is being thrown } }); } catch (e) { if (e != $break) throw e; } return this; }, --~--~---------~--~----~...
2008 Apr 22
1
Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
...script https://thomaskochit.dyndns.org/js/prototype/prototype.js iterator(value, index++); Line 835 of linked script https://thomaskochit.dyndns.org/js/prototype/prototype.js iterator(this[i]); Line 596 of linked script https://thomaskochit.dyndns.org/js/prototype/prototype.js this._each((function (value) { iterator(value, index++); } )); Line 702 of linked script https://thomaskochit.dyndns.org/js/prototype/prototype.js this.each((function (value,index) { memo = iterator(memo, value, index); } )); Line 3386 of linked script https://thomaskochit.dyndns.org/js/prototype/...
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
...ned undefined undefined invoke undefined max undefined undefined min undefined undefined partition undefined undefined pluck undefined reject undefined undefined sortBy undefined undefined toArray zip size inspect find undefined undefined select undefined undefined member undefined entries _reverse _each undefined clear first last compact flatten without reduce uniq undefined intersect undefined clone toJSONument i test it with several versions of prototype.js but this doesn''t help to me. whats going wrong? thx kambiz --~--~---------~--~----~------------~-------~--~----~ You received...
2006 Jan 29
0
BUG in PROTOTYPE when set evalScripts: true - Firefox crashes
...results.push(iterator(value, index)); Line 221 of linked script http://localhost:8090/js/prototype.js iterator(value, index++); Line 414 of linked script http://localhost:8090/js/prototype.js iterator(this[i]); Line 225 of linked script http://localhost:8090/js/prototype.js this._each(function (value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } } ); Line 253 of linked script http://localhost:8090/js/prototype.js this.each(function (value,index) { results.push(iterator(value, index)); } ); Line 1...
2006 Feb 09
3
Error in prototype.js? / Enumerable.each
...initializePlugins() { $$(".plugin").each(function(plugin) { // do something } } within that function some events are observed. The error occurs in the catch block of the following function: var Enumerable = { each: function(iterator) { var index = 0; try { this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } }); } catch (e) { if (e != $break) throw e; } }, Did anyone run into that error? Help anyone? Thank you smi
2007 Sep 21
1
Weird data from evalJSON
...,{"id": 18,"name":"severe","priority":19},{"id": 19,"name":"critical","priority":25}] [object Object] [object Object] [object Object] [object Object] [object Object] function (iterator) { var index = 0; try { this._each((function (value) {iterator(value, index++);})); } catch (e) { if (e != $break) { throw e; } } return this; } function (number, iterator) { var index = -number, slices = [], array = this.toArray(); while ((index += number) < array.length) { slices.push(array.slice(index, index + number)); } ret...
2007 Sep 12
2
Prototype.js and Coremetrics eluminate.js issues
Hi, I am trying to use prototype.js on a JSP that also contains some javascript from Coremetrics (eluminate.js). Coremetrics is used for tracking marketing clicks. When I have both of these javascript imports on the page I get javascript errors in the eluminate.js file. I get javascript errors that say "Undeterminate string constant." It looks like the prototype.js file is somehow
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...before + String.interpret(ctx); - }.bind(this)); + }); } }); Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; @@ -588,10 +597,9 @@ var $break = { }; var Enumerable = { each: function(iterator, context) { var index = 0; - iterator = iterator.bind(context); try { this._each(function(value) { - iterator(value, index++); + iterator.call(context, value, index++); }); } catch (e) { if (e != $break) throw e; @@ -600,47 +608,46 @@ var Enumerable = { }, eachSlice: function(number, iterator, context) { - iterator = iterator ? iterat...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server