Skip to content

Commit

Permalink
Minor fix for JS error occurring when selected image had no class in …
Browse files Browse the repository at this point in the history
…CKEditor
  • Loading branch information
ryancramerdesign committed Feb 18, 2015
1 parent 4c3bfa7 commit bdf7405
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -97,7 +97,7 @@
var parts = src.split('/');
file = parts.pop();
imgClass = $node.attr('class');
hidpi = imgClass.indexOf('hidpi') > -1;
hidpi = imgClass && imgClass.indexOf('hidpi') > -1;
imgWidth = $node.attr('width');
imgHeight = $node.attr('height');
imgDescription = $node.attr('alt');
Expand Down

0 comments on commit bdf7405

Please sign in to comment.