From 731a8f87f9fecbc894aed874835bb017cd6d3d3c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 7 Feb 2015 18:08:19 -0500 Subject: [PATCH] jquery.crmeditable.js - fix jshint warnings --- js/jquery/jquery.crmeditable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/jquery/jquery.crmeditable.js b/js/jquery/jquery.crmeditable.js index 79fe3232b6..2b0908fd1d 100644 --- a/js/jquery/jquery.crmeditable.js +++ b/js/jquery/jquery.crmeditable.js @@ -1,5 +1,8 @@ // https://civicrm.org/licensing (function($, _) { + "use strict"; + /* jshint validthis: true */ + // TODO: We'll need a way to clear this cache if options are edited. // Maybe it should be stored in the CRM object so other parts of the app can use it. // Note that if we do move it, we should also change the format of option lists to our standard sequential arrays @@ -224,7 +227,7 @@ } function restoreContainer() { - errorMsg && errorMsg.close && errorMsg.close(); + if (errorMsg && errorMsg.close) errorMsg.close(); $i.removeClass('crm-editable-saving crm-editable-editing'); } -- 2.25.1