 # Update the settings with the values from the notification section of the
 # options page.
 saveNotifications = ->
-  utils.set 'notifications', $('#notifications').is ':checked'
   timeInSecs = $('#notificationDuration').val()
   timeInSecs = if timeInSecs? then parseInt(timeInSecs, 10) * 1000 else 0
-  utils.set 'notificationDuration', timeInSecs
+  utils.set
+    notifications:        $('#notifications').is ':checked'
+    notificationDuration: timeInSecs
 
 # Updates the settings with the values from the toolbar section of the options
 # page.


# Update the settings with the values from the options page.
save = ->
  utils.set 'contextMenu', $('#contextMenu').is ':checked'
  utils.set 'shortcuts', $('#shortcuts').is ':checked'
  utils.set 'doAnchorTarget', $('#doAnchorTarget').is ':checked'
  utils.set 'doAnchorTitle', $('#doAnchorTitle').is ':checked'
  saveFeatures()
  saveNotifications()
  saveToolbar()

  toolbarFeatureName = ''
  toolbarFeatureName = toolbarFeature.val() if toolbarFeature.length
  if $('#toolbarPopup').is(':checked') or not toolbarFeatureName
    utils.set
      toolbarFeature: no
      toolbarPopup:   yes
  else
    utils.set
      toolbarFeature: yes
      toolbarPopup:   no
  utils.set
    toolbarFeatureDetails: $('#toolbarFeatureDetails').is ':checked'
    toolbarFeatureName:    toolbarFeatureName
  ext.updateToolbar()

# Update the settings with the values from the URL shorteners section of the
