Is there a way to simulate Smalltalk’s doesNotUnderstand or Ruby’s method_missing in Javascript?
Is there a way to simulate Smalltalk’s doesNotUnderstand or Ruby’s method_missing in Javascript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no catch-all method defined in the JavaScript standard, but Mozilla implements the non-standard
__noSuchMethod__for SpiderMonkey and Rhino (including Firefox obviously).You may also be interested in checking out @CMS’ answer given to the following Stack Overflow question: