Fixed javascript exception.

This commit is contained in:
Martin Edenhofer 2015-10-19 23:04:37 +02:00
parent defa71b371
commit 46a7227959
2 changed files with 2 additions and 2 deletions

View file

@ -594,7 +594,7 @@ class App.Utils
num num
@icon: (name, className = '') -> @icon: (name, className = '') ->
path = if svgPolyfill then '' else 'assets/images/icons.svg' path = if window.svgPolyfill then '' else 'assets/images/icons.svg'
"<svg class=\"icon icon-#{name} #{className}\"><use xlink:href=\"#{path}#icon-#{name}\" /></svg>" "<svg class=\"icon icon-#{name} #{className}\"><use xlink:href=\"#{path}#icon-#{name}\" /></svg>"
@getScrollBarWidth: -> @getScrollBarWidth: ->

View file

@ -9,7 +9,7 @@
- Edge 12 - Edge 12
- IE 9-11 - IE 9-11
*/ */
var svgPolyfill = /\bEdge\/12\b|\bTrident\/[567]\b|\bVersion\/7.0 Safari\b/.test(navigator.userAgent) || (navigator.userAgent.match(/AppleWebKit\/(\d+)/) || [])[1] < 537; window.svgPolyfill = /\bEdge\/12\b|\bTrident\/[567]\b|\bVersion\/7.0 Safari\b/.test(navigator.userAgent) || (navigator.userAgent.match(/AppleWebKit\/(\d+)/) || [])[1] < 537;
(function (doc) { (function (doc) {
if(!svgPolyfill) if(!svgPolyfill)