Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.textile | Sun Jun 22 11:47:01 -0700 2008 | [Sébastien Grosjean] |
| |
lib/ | Mon May 19 11:37:19 -0700 2008 | [Sébastien Grosjean] |
| |
src/ | Sun Jun 22 11:40:39 -0700 2008 | [Sébastien Grosjean] |
| |
test/ | Sun Jun 22 11:38:01 -0700 2008 | [Sébastien Grosjean] |
Prototype Playground
Thoughts and under construction prototype extensions.
Element.Methods extensions
Element.Methods.inject
NOTE: Inspiration from mootools 1.2
Element.Methods.toHTML
NOTE: Taken from Protolicious (Kangax) http://github.com/kangax/protolicious/tree/master/element.methods.js
CHANGES: Tiny change made in first line
WARNING: The output is different each browsers
Element.Methods.clone
NOTE: Inspiration from mootools 1.2
Clone a DOM element, can be deep or shallow and keep IDs or not
INFO: support Element.Storage from this playground
Element.Storage
NOTE: Inspired from Mootools 1.2 Element.Storage (http://blog.mootools.net/2008/1/22/Element_Storage)
Element.Methods.retrieve
Element.retrieve(@element, property, default) => value
Retrieve from the external object Element.Storage and scoping the element, the value defined by property If no value exist default is stored and returned
Element.Methods.store
Element.store(@element, property, value) => @element
Store a property / value pair attached to an element in the external object Element.Storage
© 2008 Sébastien Grosjean
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.




