sapo/Ink.js — pull request #21 by fabiosantoscode (2013-08-30 18:58:25+00:00)
Title: Bind method

What do you think?

A way to get a function bound to the correct object without spelling the object's name twice. Useful when not using requireModules.

Ink.bind(Ink.Dom.Element.setTextContent, Ink.Dom.Element)

becomes

Ink.bindMethod('Ink.Dom.Element, 'setTextContent')