Support Forum
The "a" object does not have a "getSchedulingView" method - that all I can say. Try to debug it - enable "break on error" mode in the debugger, make sure you use the correct scope for event listeners.
Read the API documentation