Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

prototype.js tidbits

branch: master

Merge pull request #5 from torgeir/master

Allow for $(el).simulate('dblclick') in event.simulate.js.
latest commit 1d9ea2820a
Juriy Zaytsev authored September 19, 2012
Octocat-spinner-32 clearer Add simple Clearer widget simulating osx clearer button on text fields March 24, 2009
Octocat-spinner-32 experimental add Element.Region and Class#include August 27, 2008
Octocat-spinner-32 lib reorganize June 09, 2008
Octocat-spinner-32 misc reorganize June 09, 2008
Octocat-spinner-32 protoquery Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… June 07, 2008
Octocat-spinner-32 test add selectOptionByValue June 02, 2008
Octocat-spinner-32 README.rdoc Add list of common css abstractions (need to make something useful ou… June 10, 2009
Octocat-spinner-32 add_script_add_stylesheet.js mostly tests May 31, 2008
Octocat-spinner-32 array.extensions.js Fixed fre typos in the JSDoc block September 29, 2010
Octocat-spinner-32 behavior.should_be_present.js Add should-be-present behavior May 15, 2008
Octocat-spinner-32 benchmark.js Add simple benchmark helper October 22, 2008
Octocat-spinner-32 canvas_assertions.js Add `assertColor` and `assertSameColor`. April 24, 2009
Octocat-spinner-32 capability.html Add capability script from the old opera article, clean-up, remove re… January 06, 2009
Octocat-spinner-32 checkbox_range.js add experimental Object.isNodeList, CheckboxRange for multiple selection June 22, 2008
Octocat-spinner-32 class.addbehavior.js experimental Class.addBehavior to make instance methods fire events (… April 17, 2008
Octocat-spinner-32 class.observable.js Update observable class to insert element into the dom, otherwise ie … January 20, 2009
Octocat-spinner-32 class.watchable.js unwatch now accepts particular handler to unwatch or purges all if ar… April 30, 2008
Octocat-spinner-32 class_include.js add Element.Region and Class#include August 27, 2008
Octocat-spinner-32 colorLiteralToHex.js add colorLiteralToHex.js April 08, 2009
Octocat-spinner-32 console.js Fix isObject regex; add console.js February 22, 2009
Octocat-spinner-32 cookie.js Add modified cookie.js of Ryan Johnson May 14, 2008
Octocat-spinner-32 css_abstractions.sass Make Sass mixins out of draft CSS abstractions. April 15, 2010
Octocat-spinner-32 draghelper.js all kinds of stuff April 08, 2008
Octocat-spinner-32 element.methods.js Remove typo in `Element#setHeight` (thanks Ed Tramell). Add some miss… May 07, 2010
Octocat-spinner-32 event.interceptor.js Add event interception April 29, 2008
Octocat-spinner-32 event.register.js all kinds of stuff April 08, 2008
Octocat-spinner-32 event.simulate.js Adds dblclick as a MouseEvent for event.simulate. September 19, 2012
Octocat-spinner-32 event_cache_buster.js Add a small event handler usage report utility November 17, 2008
Octocat-spinner-32 form.element.methods.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… June 07, 2008
Octocat-spinner-32 form.methods.js Revamp May 14, 2008
Octocat-spinner-32 form_dispatcher.js small change April 13, 2008
Octocat-spinner-32 function.extensions.js Add Element#wrapContent May 23, 2008
Octocat-spinner-32 get_json.js add getJSON for working with JSONP May 31, 2008
Octocat-spinner-32 hash_changed.js hash:changed inspired by http://github.com/nakajima/nakatype/tree/mas… May 15, 2008
Octocat-spinner-32 ie_ajax_cache_fix.js Revamp May 14, 2008
Octocat-spinner-32 ie_attributes_fix.js experimental May 14, 2008
Octocat-spinner-32 insertRule.js add experimental region and insertRule July 19, 2008
Octocat-spinner-32 key_observer.js document key observer April 13, 2008
Octocat-spinner-32 object.extensions.js Fix isObject regex; add console.js February 22, 2009
Octocat-spinner-32 safari_label_fix.js typo June 03, 2008
Octocat-spinner-32 set_builder.js document evil SetBuilder April 13, 2008
Octocat-spinner-32 string.extensions.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen… June 07, 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

Something went wrong with that request. Please try again.