Hi all,
struggling to make callFx() work in firebug console.
Error upon calling callFx(): CoolObj.getName.bind is not a function.
Same probs with the remaining bind examples in this section.
Could someone please explain. Thanks.
var CoolObj = {
name: ''Joe the cool object'',
getName: function() {
return this.name;
}
};
CoolObj.getName()
// -> ''Joe the cool object''
function callFx(fx) {
return fx();
}
callFx(CoolObj.getName.bind(CoolObj));
// -> ''CoolObj.getName.bind is not a function''
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
On Sat, Mar 22, 2008 at 7:22 PM, ab2qik <ab2qik-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Error upon calling callFx(): CoolObj.getName.bind is not a function.Are you using Firefox3 Beta? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Its F.F 2.0.0.12. On Mar 23, 1:32 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sat, Mar 22, 2008 at 7:22 PM, ab2qik <ab2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > Error upon calling callFx(): CoolObj.getName.bind is not a function. > > Are you using Firefox3 Beta?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I''m getting "Joe the cool object" in 2.0.0.12. Which version of prototype/firebug are you using? - kangax On Mar 22, 10:21 pm, ab2qik <ab2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Its F.F 2.0.0.12. > > On Mar 23, 1:32 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Sat, Mar 22, 2008 at 7:22 PM, ab2qik <ab2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > Error upon calling callFx(): CoolObj.getName.bind is not a function. > > > Are you using Firefox3 Beta?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Prototype: 1.6.0.2 Firebug: 1.05 (Should be this version as i dont know where to confirm its version from F.F.) Having checked proto version i also checked its path. Thats where the prob was. I have a few versions of it running in differing folders. Sorry for confusion. Tidying up ought to help. Thankyou ab2qik. On Mar 23, 4:47 am, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m getting "Joe the cool object" in 2.0.0.12. Which version of > prototype/firebug are you using? > > - kangax > > On Mar 22, 10:21 pm, ab2qik <ab2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > Its F.F 2.0.0.12. > > > On Mar 23, 1:32 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > On Sat, Mar 22, 2008 at 7:22 PM, ab2qik <ab2...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > Error upon calling callFx(): CoolObj.getName.bind is not a function. > > > > Are you using Firefox3 Beta?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---