Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Eliminate redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Jun 5, 2015
1 parent 1ec2d8c commit 2299fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ angular.module('ui.tinymce', [])

var expression, options, tinyInstance,
updateView = function (editor) {
if(typeof options.raw !== 'undefined' && options.raw === true) {
if (options.raw === true) {
ngModel.$setViewValue(editor.getContent({format: 'text'}).trim());
} else {
ngModel.$setViewValue(element.val());
Expand Down

0 comments on commit 2299fed

Please sign in to comment.