Here are two JavaScript classes written by others, I need to use both of them:
I need to mix them up into a single class – it could be Validator or Filter class, or some class I define but I have to do this after Validator Filter initialized.
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.
Since validator constructor is empty already you could do:
...means adding all the filter methods to filter prototype like you are doing in the filter file.You could try something like this then:
b( aFilterinstance ) will now have allFilterandValidatormethods