On Feb 20, 9:17 pm, darki777 <[EMAIL PROTECTED]> wrote:
> Hi,
> is there any method to bind and create closures with "this" altered in
> jQuery (with chain possibility)?? Need it on various functions. I do
> not mean Events.
>
> Anythink like this:
> function myFunc()
> {
>
> }.bind(anything);

That is illegal javascript syntax, the Function call or apply methods
are provided for this:

  function foo(){}
  foo.call(anything);

or perhaps:

  var boundFoo = function(){
    foo.apply(anything, arguments);
  }


--
Rob

Reply via email to