?

Log in

 

Catch undefined method calls in JS - Web Developer

About Catch undefined method calls in JS

Previous Entry Catch undefined method calls in JS Jul. 21st, 2012 @ 12:51 am Next Entry
Leave a comment
[User Picture Icon]
From:mpak666
Date:July 21st, 2012 05:29 am (UTC)
(Link)
just put them into try-catch block
http://www.w3schools.com/js/js_try_catch.asp
From:nikelin
Date:July 21st, 2012 01:00 pm (UTC)
(Link)
I think, that victorgr says about method calls interception such like in PHP (__call).

@victorgr
No, you can't.

Edited at 2012-07-21 01:01 pm (UTC)
[User Picture Icon]
From:victorgr
Date:July 21st, 2012 01:29 pm (UTC)
(Link)
You are completely right. Like __call in PHP or the same thing in Ruby.

Thank you for your answer!
(Leave a comment)
Top of Page Powered by LiveJournal.com