Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at Scotch On The Rock (SOTR) 2010 (London) with: James Padolsey
Ben Nadel at Scotch On The Rock (SOTR) 2010 (London) with: James Padolsey@padolsey )

Yuriy Petrov

Member since Nov 2, 2010

Recent Blog Comments By Yuriy Petrov

  • Invoking Javascript Methods With Both Named And Ordered Arguments

    Posted on Nov 2, 2010 at 12:17 PM

    What about python-like decorator? function NamedArgsFunction(func) { return function (args) { if ($.isObject(args)) { return func.invoke(this, args); } return func.apply(this, arguments); } }; var sarah = { name: "Sarah", sayHello: NamedArgsFunction(function( name, compl... read more »