Skip to content

Commit

Permalink
fix bug where recent firefox no longer had expanding outlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian committed Dec 7, 2015
1 parent 89ceb0f commit 19aee1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 3 additions & 9 deletions jquery.pulsate.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@
};
if(options.glow) {
cssObj["box-shadow"] = "0px 0px " + parseInt((count/1.5)) + "px " + color;
userAgent = navigator.userAgent || '';
if(/(chrome)[ \/]([\w.]+)/.test(userAgent.toLowerCase())) {
cssObj["outline-offset"] = count + "px";
cssObj["outline-radius"] = "100 px";
}
} else {
cssObj["outline-offset"] = count + "px";
}
cssObj["outline-offset"] = count + "px";

$(el).css(cssObj);

var innerfunc = function () {
Expand All @@ -74,7 +69,7 @@
}
pulse(options, el, count+1);
};

if(el.timer){
clearTimeout(el.timer);
}
Expand All @@ -100,4 +95,3 @@

};
})( jQuery );

8 changes: 4 additions & 4 deletions jquery.pulsate.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19aee1b

Please sign in to comment.