Skip to content

Commit

Permalink
Fix for clearing the backround on ImageFixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyjb committed Jul 27, 2018
1 parent 2671637 commit b5658b1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build/content-edit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/content-edit.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/content-edit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ContentEdit",
"description": "A JavaScript library that provides a set of classes for building content-editable HTML elements.",
"version": "1.3.3",
"version": "1.3.4",
"keywords": [
"wysiwyg",
"inline",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/images.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class ContentEdit.ImageFixture extends ContentEdit.Element
style = if @_attributes['style'] then @_attributes['style'] else ''
styleElm = document.createElement('div')
styleElm.setAttribute('style', style.trim())
styleElm.backgroundImage = null
styleElm.style.backgroundImage = null
style = styleElm.getAttribute('style')

# Set the background image for the element
Expand Down Expand Up @@ -299,7 +299,7 @@ class ContentEdit.ImageFixture extends ContentEdit.Element
style = if @_attributes['style'] then @_attributes['style'] else ''
styleElm = document.createElement('div')
styleElm.setAttribute('style', style.trim())
styleElm.backgroundImage = null
styleElm.style.backgroundImage = null
style = styleElm.getAttribute('style')

# Set the background image for the element
Expand Down

0 comments on commit b5658b1

Please sign in to comment.