prototype.js tidbits
JavaScript Ruby
Latest commit 1d9ea28 Sep 19, 2012 @kangax Merge pull request #5 from torgeir/master
Allow for $(el).simulate('dblclick') in event.simulate.js.
Failed to load latest commit information.
clearer Add simple Clearer widget simulating osx clearer button on text fields Mar 24, 2009
experimental add Element.Region and Class#include Aug 27, 2008
lib reorganize Jun 9, 2008
misc reorganize Jun 9, 2008
protoquery Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… Jun 7, 2008
test add selectOptionByValue Jun 2, 2008
README.rdoc Add list of common css abstractions (need to make something useful ou… Jun 10, 2009
add_script_add_stylesheet.js mostly tests May 31, 2008
array.extensions.js Fixed fre typos in the JSDoc block Sep 29, 2010
behavior.should_be_present.js Add should-be-present behavior May 15, 2008
benchmark.js Add simple benchmark helper Oct 22, 2008
canvas_assertions.js Add `assertColor` and `assertSameColor`. Apr 24, 2009
capability.html Add capability script from the old opera article, clean-up, remove re… Jan 6, 2009
checkbox_range.js add experimental Object.isNodeList, CheckboxRange for multiple selection Jun 22, 2008
class.addbehavior.js experimental Class.addBehavior to make instance methods fire events (… Apr 17, 2008
class.observable.js Update observable class to insert element into the dom, otherwise ie … Jan 20, 2009
class.watchable.js unwatch now accepts particular handler to unwatch or purges all if ar… Apr 30, 2008
class_include.js add Element.Region and Class#include Aug 27, 2008
colorLiteralToHex.js add colorLiteralToHex.js Apr 8, 2009
console.js Fix isObject regex; add console.js Feb 22, 2009
cookie.js Add modified cookie.js of Ryan Johnson May 14, 2008
css_abstractions.sass Make Sass mixins out of draft CSS abstractions. Apr 15, 2010
draghelper.js all kinds of stuff Apr 8, 2008
element.methods.js Remove typo in `Element#setHeight` (thanks Ed Tramell). Add some miss… May 7, 2010
event.interceptor.js Add event interception Apr 29, 2008
event.register.js all kinds of stuff Apr 8, 2008
event.simulate.js Adds dblclick as a MouseEvent for event.simulate. Sep 19, 2012
event_cache_buster.js Add a small event handler usage report utility Nov 17, 2008
form.element.methods.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… Jun 7, 2008
form.methods.js Revamp May 14, 2008
form_dispatcher.js small change Apr 13, 2008
function.extensions.js Add Element#wrapContent May 23, 2008
get_json.js add getJSON for working with JSONP May 31, 2008
hash_changed.js hash:changed inspired by http://github.com/nakajima/nakatype/tree/mas… May 15, 2008
ie_ajax_cache_fix.js Revamp May 14, 2008
ie_attributes_fix.js experimental May 14, 2008
insertRule.js add experimental region and insertRule Jul 19, 2008
key_observer.js document key observer Apr 13, 2008
object.extensions.js Fix isObject regex; add console.js Feb 22, 2009
safari_label_fix.js typo Jun 3, 2008
set_builder.js document evil SetBuilder Apr 13, 2008
string.extensions.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… Jun 7, 2008

README.rdoc

Description

Protolicious is a set of javascript snippets based on prototype.js (and other random stuff)

Contents

Element (Element.Methods) extensions

  • Element#setProperty

  • Element#swapClassName

  • Element#enableClassName

  • Element#contains

  • Element#indexOf

  • Element#isTagName

  • Element#getContentWidth

  • Element#getContentHeight

  • Element#setWidth

  • Element#setHeight

  • Element#appearVisible

  • Element#delegate

  • Element#fillDocument

  • Element#centerInViewport

Function extensions

  • Function.K

  • Function#negate

  • Function#runOnce

  • Function#_new

  • Function#toDelayed

  • Function#toDeferred

  • Function#addAdvice

Array extensions

  • Array#sum

  • Array#namespace

Field (Form.Element.Methods) extensions

  • Field#isBlank

  • Field#present

Form (Form.Methods) extensions

  • Form#unserialize

Event extensions

  • Event.simulate

  • Event.register

  • Event.unregister

Cookie

  • Cookie.set

  • Cookie.get

  • Cookie.unset

Prototype

  • Prototype.addScript

  • Prototype.addStylesheet

Object extensions

  • Object.isEvent

  • Object.methodize

License

protolicious is licensed under the terms of the MIT license