The following code doesn''t work in Safari, though its working well on FF/IE. We just recently started migrating and we are find issues with Safari 3.X var SipIxView = Class.create({ initialize: function() { } }); var CdrView = Class.create(SipIxView,{ view: function() { } }); I get the following error in Safari. var cdrView = new CdrView(); TypeError: Value undefined (result of expression DigView) is not an object. Cannot be used with new. Javascript and Prototype GURUS out there , can any body help or Is prototype not supported on Safari. Thanks Raj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Looks like Safari has gone wild once again. (Latest WebKit is not affected by this error, btw) typeof (function(){}).argumentNames; // undefined typeof (function(){}).bind; // "function" typeof Function.prototype.argumentNames; // "function" (!) typeof Hash.argumentNames; // "function" function dummy(){ return ''foo'' }; typeof dummy.argumentNames; // undefined This seems similar to a previous bug that was found shortly after 3.1 - ".. issue where Safari 3 deletes custom properties from the document object when the page is returned to via the back button." - kangax On Jun 3, 4:42 pm, raj <rajesh.kamin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The following code doesn''t work in Safari, though its working well on > FF/IE. We just recently started migrating and we are find issues > with Safari 3.X > > var SipIxView = Class.create({ > initialize: function() > { > > } > > }); > > var CdrView = Class.create(SipIxView,{ > view: function() > { > > } > > }); > > I get the following error in Safari. > > var cdrView = new CdrView(); > > TypeError: Value undefined (result of expression DigView) is not an > object. Cannot be used with new. > > Javascript and Prototype GURUS out there , can any body help or Is > prototype not supported on Safari. > > Thanks > Raj--~--~---------~--~----~------------~-------~--~----~ 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 have tried this in Safari 3.1 for windows and it seems to work fine? Can anyone confirm this? - JDD --~--~---------~--~----~------------~-------~--~----~ 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 am using 3.1.1 on Mac. We have all the code written using Prototype inheritance and we have to support Mac Safari. I will have try the Object.extend and see if it works. On Jun 3, 4:42 pm, raj <rajesh.kamin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The following code doesn''t work in Safari, though its working well on > FF/IE. We just recently started migrating and we are find issues > with Safari 3.X > > var SipIxView = Class.create({ > initialize: function() > { > > } > > }); > > var CdrView = Class.create(SipIxView,{ > view: function() > { > > } > > }); > > I get the following error in Safari. > > var cdrView = new CdrView(); > > TypeError: Value undefined (result of expression DigView) is not an > object. Cannot be used with new. > > Javascript and Prototype GURUS out there , can any body help or Is > prototype not supported on Safari. > > ThanksRaj--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---