Skip to content

Commit

Permalink
Made sure Modernizr variable isn't being changed because of gritter
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinBrouwer committed Aug 2, 2015
1 parent 7a08e13 commit d469222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/gritter.js
Expand Up @@ -10,7 +10,7 @@
*/

// Modernizr for CSS3 support check.
window.Modernizr = function (a, b, c) {
window.GritterModernizr = function (a, b, c) {
function A(a, b) {
var c = a.charAt(0).toUpperCase() + a.substr(1),
d = (a + " " + m.join(c + " ") + c).split(" ");
Expand Down Expand Up @@ -127,7 +127,7 @@ window.Modernizr = function (a, b, c) {
*/
var gritter_item;
var gritter_content = '[[close]][[image]]<div class="[[class_name]]"><span class="gritter-title">[[username]]</span><p>[[text]]</p></div><div style="clear:both"></div>';
if(Modernizr.borderradius && Modernizr.rgba) {
if(GritterModernizr.borderradius && GritterModernizr.rgba) {
gritter_item = '<div class="gritter-item gritter-css3">'+ gritter_content +'</div>';
} else {
gritter_item = '<div class="gritter-top"></div><div class="gritter-item gritter-css2">'+ gritter_content +'</div><div class="gritter-bottom"></div>';
Expand Down

0 comments on commit d469222

Please sign in to comment.