Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

Commit

Permalink
Uncaught exception in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Feb 27, 2015
1 parent dd50497 commit 41c7bc5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions graphite/theme/resources/js/graphite.theme.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,12 @@ function GraphiteTheme() {
var css = el.className;
if (css !== undefined) {
$.each(omitajaxrequests_css, function(i, item) {
if (css.match(item)) {
omit = true;
return;
}
try {
if (css.match(item)) {
omit = true;
return;
}
} catch (e) {}
});
if (omit == true) {
return;
Expand Down Expand Up @@ -449,13 +451,15 @@ function GraphiteTheme() {
activedetected = true;
}
var aclass = '';
if (runitem[3] != '') {
if (runitem[3] !== undefined) {
// We only need the contentype-xx class
var re = /contenttype-.+/g;
var matches = runitem[3].match(re);
if (matches && matches.length > 0) {
aclass = 'class="'+matches[0]+'"';
}
try {
var re = /contenttype-.+/g;
var matches = runitem[3].match(re);
if (matches && matches.length > 0) {
aclass = 'class="'+matches[0]+'"';
}
} catch (e) {}
}
cssclass += '"';
var itemli = '<li'+cssclass+'><a '+aclass+' href="'+runitem[0]+'">';
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '1.1'
version = '1.1.1'

setup(name='graphite.theme',
version=version,
Expand Down

0 comments on commit 41c7bc5

Please sign in to comment.