Hash Updates
Reported by Joe Gornick | February 7th, 2009 @ 02:48 AM
Remove aliases:
findAll
include
index
select
Remove methods:
reject
toTemplateReplacements
update
Update methods:
set - Accept either two arguments for key and value, or accept an object of key/values.
This will return the Hash instance instead of the values set.
unset - Accept either one argument for key, or accept an array of keys.
This will return a single value if 1 key is specified or an array for more than 1 key.
Add methods:
clear - Clears out the hash
Comments and changes to this ticket
-
Joe Gornick February 13th, 2009 @ 02:50 PM
Look into possibly adding: http://prototype.lighthouseapp.c...
-
John-David Dalton February 19th, 2009 @ 12:31 AM
Make Hash#map like MooTools: http://mootools.net/docs/Native/Hash#Hash:map
-
John-David Dalton March 11th, 2009 @ 01:03 AM
Template#evaluate will want hash.toTemplateReplacements, so either change it to look for
hash#toObject
or check forhash#toObject
first and thentoTemplateReplacements
as a backcompat. -
Joe Gornick March 11th, 2009 @ 01:25 AM
Make sure to write an optimized version of
first
andlast
methods. -
Joe Gornick April 1st, 2009 @ 12:37 AM
- State changed from new to resolved
-
Joe Gornick April 1st, 2009 @ 12:40 AM
This commit did not include the Hash#diff. Please refer to #24.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.