fires when the views are switched in the component (regardless of the switching method)
prevID | string|number | the id of the view that is switched from |
nextID | string|number | the id of the view that is switched to |
some.attachEvent("onViewChange", function(prevID, nextID){
//... some code here ...
});