This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: This is actually Coco (http://github.com/satyr/coco), not CoffeeScript. | |
# I haven't tested this, just wanted to see how concise I could make of the Coco implementation. | |
el = let | |
doc = document | |
directProperties = { | |
class: \className, \className, \defaultValue, | |
for: \htmlFor, html: \innerHTML, text: \textContent, \value | |
} | |
booleanProperties = {+checked, +defaultChecked, +disabled, +multiple, +selected} |