Added support for onInit and onSwitchChange event
Merge pull request #315 from pauloortins/develop

added onInit and onSwitchChange methods
Merge branch 'refs/heads/master' into develop