     if @targets.length
       @getDeploymentStrategy().destroy()
       @deploymentStrategy = null
-  
+
 module.exports = Deployment

    logger.info("No deployment targets for selector #{@settings._selector}", @) unless targets.length
    targets



  getPublicData: ()=>
    clone({
      ship         : @ship
      organization : @organization
      platform     : @platform
      settings     : @settings
    })

  getDeploymentStrategy : ()=>

    shipRegistry[dpl.ship.id] ||= {}
    shipRegistry[dpl.ship.id][dpl.id] = @


    # onUpdate is used to attach handlers for ship.update events emitted from Hull's dashboard
    @onUpdate = dpl.onUpdate

    @settings   = dpl.settings
    # "_selector" : ".ship", //CSS3 Selector on which to embed the ship(s)
    # "_multi": true, //Wether to embed on the first matching element or all
