Fix jshint errors

This commit is contained in:
Joe Fiorini
2015-02-04 16:15:17 -05:00
parent 50f5e7bf09
commit 16119114dc

View File

@@ -545,16 +545,15 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
}); });
function showPopover(e) { function showPopover(e) {
console.log(element);
e.stopPropagation(); e.stopPropagation();
var self = $(this); var self = $(element);
// remove tool-tip // remove tool-tip
try { try {
element.tooltip('hide'); element.tooltip('hide');
} }
catch(e) { catch(ex) {
// ignore // ignore
} }
@@ -585,7 +584,7 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
// $(element).one('click', dismissPopover); // $(element).one('click', dismissPopover);
$(this).popover('toggle'); $(element).popover('toggle');
$('.popover').each(function() { $('.popover').each(function() {
$compile($(this))(scope); //make nested directives work! $compile($(this))(scope); //make nested directives work!