Commits

Fabian Büchler  committed c32507a

Follow some jshint recommendations.

  • Participants
  • Parent commits 6c68e17

Comments (0)

Files changed (1)

File markupmirror/static/markupmirror/markupmirror.js

         $codemirror = $textarea.next('.CodeMirror'),
         $iframe = $codemirror.children('iframe'),
         mm_settings = $textarea.data('mmSettings'),
-        url = mm_settings['preview_url'],
-        markup_type = mm_settings['markup_type'];
+        url = mm_settings.preview_url,
+        markup_type = mm_settings.markup_type;
 
     $.post(url, {
             /* csrfmiddlewaretoken: '{{ csrf_token }}', */
 function create_iframe(textarea) {
     var $textarea = $(textarea),
         $iframe = $('<iframe />').attr(
-            'src', $textarea.data('mmSettings')['base_url']),
+            'src', $textarea.data('mmSettings').base_url),
         $codemirror = $textarea.next('.CodeMirror');
 
     $iframe