changeset 2782:d63def457cc5

jslint common.js, fix 4 trivial issues
author RogerHaase <haaserd@gmail.com>
date Fri, 05 Sep 2014 14:17:15 -0700
parents d99532983599
children d75032c39f11
files MoinMoin/static/js/common.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Fri Sep 05 14:06:27 2014 -0700
+++ b/MoinMoin/static/js/common.js	Fri Sep 05 14:17:15 2014 -0700
@@ -122,7 +122,7 @@
             if ($.inArray(elem.tagName, mediaTags) > -1) {
                 // do not copy classes starting with moin-
                 classes = $(elem).attr('class');
-                classes = classes.split(" ").filter(function(c) {
+                classes = classes.split(" ").filter(function (c) {
                     return c.lastIndexOf('moin-', 0) !== 0;
                 });
                 $(wrapper).addClass(classes.join(' '));
@@ -635,7 +635,7 @@
 
     moin.selected_link();
     moin.initTransclusionOverlays();
-    if(document.getElementById('moin-navibar')!=null) {
+    if (document.getElementById('moin-navibar') !== null) {
         moin.QuicklinksExpander();
     }
 
@@ -671,11 +671,11 @@
         $('#moin-modify').addClass('moin-changed-input');
     });
 
-    $('#moin-save-text-button').on('click', function() {
+    $('#moin-save-text-button').on('click', function () {
         $('#moin-modify').removeClass('moin-changed-input');
     });
 
-    $(window).on('beforeunload', function() {
+    $(window).on('beforeunload', function () {
         if ($('.moin-changed-input').length) {
             return "Data you may have entered will be discarded!";
         }