Skip to content

Commit

Permalink
[#2618] Clean IEConditionalRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 16, 2012
1 parent 08ffbe2 commit 59b64c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ckan/html_resources/__init__.py
Expand Up @@ -47,13 +47,12 @@ class IEConditionalRenderer(object):
def __init__(self, condition, renderer, other_browsers=False):
self.condition = condition
self.renderer = renderer
self.other_browsers = other_browsers
if other_browsers:
self.other_browsers_start= '<!-->'
self.other_browsers_end= '<!--'
self.other_browsers_start = '<!-->'
self.other_browsers_end = '<!--'
else:
self.other_browsers_start= ''
self.other_browsers_end= ''
self.other_browsers_start = ''
self.other_browsers_end = ''

def __call__(self, url):
return '<!--[if %s]>%s%s%s<![endif]-->' % (self.condition,
Expand Down

0 comments on commit 59b64c4

Please sign in to comment.