vendor/assets/javascripts/mercury/region.js.coffee in mercury-rails-0.2.0 vs vendor/assets/javascripts/mercury/region.js.coffee in mercury-rails-0.2.3
- old
+ new
@@ -64,14 +64,14 @@
togglePreview: ->
if @previewing
@previewing = false
- @element.addClass('mercury-region').removeClass('mercury-region-preview')
+ @element.addClass(Mercury.config.regionClass).removeClass("#{Mercury.config.regionClass}-preview")
@focus() if Mercury.region == @
else
@previewing = true
- @element.addClass('mercury-region-preview').removeClass('mercury-region')
+ @element.addClass("#{Mercury.config.regionClass}-preview").removeClass(Mercury.config.regionClass)
Mercury.trigger('region:blurred', {region: @})
execCommand: (action, options = {}) ->
@focus()