Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

prototype.js tidbits

tree: a8deeef0ad

Fetching latest commit…

Cannot retrieve the latest commit at this time

experimental
lib reorganize
misc reorganize
protoquery Element#indexOf, Element.extendIframe, fixes to protoquery, experimen…
test add selectOptionByValue
README.rdoc
add_script_add_stylesheet.js mostly tests
array.extensions.js
behavior.should_be_present.js Add should-be-present behavior
class.addbehavior.js experimental Class.addBehavior to make instance methods fire events (…
class.observable.js credit for fixes
class.watchable.js unwatch now accepts particular handler to unwatch or purges all if ar…
cookie.js Add modified cookie.js of Ryan Johnson
draghelper.js all kinds of stuff
element.methods.js
event.interceptor.js Add event interception
event.register.js all kinds of stuff
event.simulate.js no need to call second .test if match is found
form.element.methods.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen…
form.methods.js Revamp
form_dispatcher.js small change
function.extensions.js Add Element#wrapContent
get_json.js add getJSON for working with JSONP
hash_changed.js hash:changed inspired by http://github.com/nakajima/nakatype/tree/mas…
ie_ajax_cache_fix.js Revamp
ie_attributes_fix.js experimental
key_observer.js document key observer
object.extensions.js
safari_label_fix.js typo
set_builder.js document evil SetBuilder
string.extensions.js Element#indexOf, Element.extendIframe, fixes to protoquery, experimen…
README.rdoc

Description

Protolicious is a set of javascript snippets based on prototype.js

Contents

Element (Element.Methods) extensions

  • Element#setProperty

  • Element#swapClassName

  • Element#enableClassName

  • Element#contains

  • Element#indexOf

  • Element#isTagName

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.