If you're trying to extend (i.e. set multiple properties at once) $scope
like this:
$scope.widgetDropped = (event, ui) -> console.log "widget dropped"
$scope.dragCallback = (event, ui) -> console.log("started drag")
then you're out of luck, there's nothing native to CoffeeScript for that. Various libraries offer functions for that though, Underscore/Lodash for example:
_($scope).extend(
widgetDropped: (event, ui) -> console.log "widget dropped"
dragCallback: (event, ui) -> console.log("started drag")
)
jQuery has one too.
There are various forms of destructured assignment that go the other way:
o = { where: 'is', pancakes: 'house?' }
{ pancakes } = o
# pancakes is now 'house?'
but no native merging techniques.