Skip to content

kangax/protolicious

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.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

About

prototype.js tidbits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •