Only destroy events if they are not already destroyed.  This is relevant for controls with obligate controls.  Since the map thinks it is in charge of destroying controls, and parent controls also destroy obligate controls, control.destroy ends up getting called twice.  If someone wants to change the way this is handled, we should have a standard property that lets the map know that control.destroy is the responsibility of someone else.  r=crschmidt (closes #1346)
Only destroy events if they are not already destroyed.  This is relevant for controls with obligate controls.  Since the map thinks it is in charge of destroying controls, and parent controls also destroy obligate controls, control.destroy ends up getting called twice.  If someone wants to change the way this is handled, we should have a standard property that lets the map know that control.destroy is the responsibility of someone else.  r=crschmidt (closes #1346)

git-svn-id: 86a4f41f9d0383640198789122b520d4105b319a@6230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf

fperucic/ol3,geekdenz/openlayers,PetrDlouhy/openlayers,pvalsecc/openlayers,planetlabs/ol3,NOAA-ORR-ERD/ol3,owenmead/openlayers,avinet/openlayers,ahocevar/openlayers,wlerner/ol3,yinxiaomei/ol3,PetrDlouhy/openlayers,xiaoqqchen/ol3,avinet/openlayers,tsauerwein/ol3,thomasmoelhave/ol3,alexbrault/ol3,colllin/openlayers,alvinlindstam/ol3,landonb/ol3,sbrunner/openlayers,aisaacs/ol3,WayTo/openlayers,fblackburn/ol3,geonux/ol3,stweil/openlayers,tamarmot/ol3,v5analytics/openlayers,richstoner/ol3,alvinlindstam/ol3,tsauerwein/ol3,t27/ol3,openlayers/openlayers,thhomas/ol3,thhomas/ol3,thhomas/ol3,openlayers/openlayers,PublicStuff/openlayers,jmiller-boundless/ol3,elemoine/ol3,wet-boew/openlayers,antonio83moura/ol3,pmlrsg/ol3,v5analytics/openlayers,Gnafu/openlayers,owenmead/openlayers,stweil/ol3,alexbrault/ol3,itayod/ol3,Andrey-Pavlov/ol3,Andrey-Pavlov/ol3,freylis/ol3,geoext/GXM,tamarmot/ol3,mzur/ol3,fredj/ol3,shevawen/openlayers,altamiracorp/openlayers,das-peter/ol3,elemoine/ol3,owenmead/openlayers,klokantech/ol3,gingerik/ol3,tsauerwein/ol3,das-peter/ol3,v5analytics/openlayers,bartvde/ol3,pmlrsg/ol3,elbakai/openlayers,ahocevar/ol2,epointal/ol3,pmlrsg/ol3,llambanna/ol3,jmiller-boundless/ol3,dracic/openlayers,CandoImage/ol3,stweil/ol3,pgiraud/openlayers,bjornharrtell/ol3,denilsonsa/ol3,Morgul/ol3,fperucic/ol3,richstoner/ol3,CandoImage/ol3,mechdrew/ol3,ahocevar/openlayers,das-peter/ol3,ahocevar/ol3,jacmendt/ol3,richstoner/ol3,wlerner/ol3,ahocevar/openlayers,dracic/openlayers,PetrDlouhy/openlayers,PublicStuff/openlayers,NOAA-ORR-ERD/ol3,geonux/ol3,alexbrault/ol3,klokantech/ol3raster,wlerner/ol3,jacmendt/ol3,boundlessgeo/openlayers,adube/ol3,freylis/ol3,PublicStuff/openlayers,CandoImage/ol3,Antreasgr/ol3,WayTo/openlayers,hafenr/ol3,boundlessgeo/openlayers,adh1365/openlayers,aisaacs/ol3,alexbrault/ol3,epointal/ol3,altamiracorp/openlayers,NOAA-ORR-ERD/ol3,klokantech/ol3raster,bogdanvaduva/ol3,tschaub/ol3,thhomas/ol3,fblackburn/ol3,Morgul/ol3,adh1365/openlayers,bill-chadwick/ol3,thomasmoelhave/ol3,kkuunnddaannkk/ol3,landonb/ol3,mzur/ol3,tschaub/openlayers-raster,sanak/ol2,epointal/ol3,pmlrsg/ol3,mechdrew/ol3,freylis/ol3,kjelderg/ol3,bjornharrtell/ol3,thomasmoelhave/ol3,CandoImage/ol3,kartverket/openlayers,antonio83moura/ol3,antonio83moura/ol3,bill-chadwick/ol3,klokantech/ol3raster,yinxiaomei/ol3,elbakai/openlayers,tamarmot/ol3,denilsonsa/ol3,adube/ol3,mechdrew/ol3,ahocevar/ol2,Andrey-Pavlov/ol3,Gnafu/openlayers,Antreasgr/ol3,jacmendt/ol3,boundlessgeo/openlayers,llambanna/ol3,kartverket/openlayers,colllin/openlayers,dracic/openlayers,mechdrew/ol3,alvinlindstam/ol3,klokantech/ol3,geekdenz/openlayers,planetlabs/ol3,stweil/ol3,PublicStuff/openlayers,bartvde/ol3,shevawen/openlayers,elemoine/ol3,kkuunnddaannkk/ol3,kkuunnddaannkk/ol3,NOAA-ORR-ERD/ol3,fperucic/ol3,openlayers/ol2,pgiraud/openlayers,fperucic/ol3,geekdenz/ol3,oterral/ol3,sbrunner/openlayers,jmiller-boundless/ol3,das-peter/ol3,stweil/openlayers,colllin/openlayers,adh1365/openlayers,mzur/ol3,stweil/ol3,Gnafu/openlayers,elbakai/openlayers,avinet/openlayers,sanak/ol2,wet-boew/openlayers,xiaoqqchen/ol3,sbrunner/openlayers,yinxiaomei/ol3,geekdenz/openlayers,Andrey-Pavlov/ol3,tschaub/ol3,pvalsecc/openlayers,ahocevar/ol3,altamiracorp/openlayers,PetrDlouhy/openlayers,Distem/ol3,geoext/GXM,georchestra/openlayers,tsauerwein/ol3,landonb/ol3,bartvde/ol3,jacmendt/ol3,kjelderg/ol3,Distem/ol3,Antreasgr/ol3,geonux/ol3,t27/ol3,bill-chadwick/ol3,shevawen/openlayers,kartverket/openlayers,oterral/ol3,fblackburn/ol3,bjornharrtell/ol3,elbakai/openlayers,georchestra/openlayers,aisaacs/ol3,fredj/ol3,itayod/ol3,hafenr/ol3,adube/ol3,jmiller-boundless/ol3,Distem/ol3,bogdanvaduva/ol3,sanak/ol2,t27/ol3,avinet/openlayers,owenmead/openlayers,tschaub/ol3,bogdanvaduva/ol3,gingerik/ol3,wlerner/ol3,stweil/openlayers,geekdenz/ol3,hafenr/ol3,itayod/ol3,kjelderg/ol3,Antreasgr/ol3,geekdenz/ol3,klokantech/ol3,planetlabs/ol3,kjelderg/ol3,freylis/ol3,jmiller-boundless/ol3,fblackburn/ol3,geekdenz/ol3,gingerik/ol3,gingerik/ol3,epointal/ol3,denilsonsa/ol3,bogdanvaduva/ol3,sbrunner/openlayers,WayTo/openlayers,bartvde/ol3,Morgul/ol3,wet-boew/openlayers,ahocevar/ol2,geonux/ol3,hafenr/ol3,Morgul/ol3,xiaoqqchen/ol3,wet-boew/openlayers,dracic/openlayers,openlayers/openlayers,fredj/ol3,tschaub/openlayers-raster,openlayers/ol2,tschaub/ol3,v5analytics/openlayers,colllin/openlayers,openlayers/ol2,tschaub/openlayers-raster,landonb/ol3,pvalsecc/openlayers,t27/ol3,kkuunnddaannkk/ol3,kartverket/openlayers,ahocevar/ol3,ahocevar/ol3,llambanna/ol3,mzur/ol3,xiaoqqchen/ol3,itayod/ol3,thomasmoelhave/ol3,planetlabs/ol3,fredj/ol3,shevawen/openlayers,Gnafu/openlayers,openlayers/ol2,bill-chadwick/ol3,yinxiaomei/ol3,sanak/ol2,richstoner/ol3,Distem/ol3,oterral/ol3,alvinlindstam/ol3,pgiraud/openlayers,tamarmot/ol3,pvalsecc/openlayers,klokantech/ol3,pgiraud/openlayers,boundlessgeo/openlayers,denilsonsa/ol3,antonio83moura/ol3,klokantech/ol3raster,WayTo/openlayers,aisaacs/ol3,georchestra/openlayers,elemoine/ol3,adh1365/openlayers,llambanna/ol3,altamiracorp/openlayers