On Aug 3, 1:46 pm, Nick <gummyb...@gmail.com> wrote: > Having access to Object.prototype is important, because I implement > Douglas Crockford's Object.prototype.beget method (which will be added > to the next ECMAScript version as Object.create). >
the Maps API fully utilizes functional programming techniques, especially the map() function which applies a function to all elements of a list, or all properties of an object. But these iterators can break when inheriting unexpected properties from Object. In this case it seems to be related to precondition assertions, that the values of a StreetViewPov heading, pitch and zoom are all numbers. There is a constructor for StreetViewPov, and also another object which has the assertion function corresponding to each property. But pi is unexpected, and there is no function pi() to check whether it has a valid value: var obj = { zoom: L, heading: L, pitch: L } where L() is a function which verifies something is a number. A workaround would be to use Crockford's first technique, a global function called object(prototype), see the following link: http://javascript.crockford.com/prototypal.html ... -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.