I am getting this error when I am using this iphone switch
this.switch.parent("div.x-form-element") is null

I have also attached the code

Ext.onReady(function() {

...