From ddfc5b8829d79f843753259fdcc71f87026c9a65 Mon Sep 17 00:00:00 2001 From: Roman Steiner Date: Fri, 3 Apr 2015 21:07:02 +0200 Subject: [PATCH] Should not treat images like links in Internet Explorer. fixes: https://github.com/derbyjs/derby/issues/496 --- lib/History.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/History.js b/lib/History.js index e844fea..304fe68 100644 --- a/lib/History.js +++ b/lib/History.js @@ -155,7 +155,10 @@ function addListeners(history) { while (el) { var url = el.href if (url) { - + + // Ignore href property on IMG tags because Internet Explorer. (https://github.com/derbyjs/derby/issues/496) + if (el.nodeName === 'IMG') return + // Ignore if created by Tracks if (el.hasAttribute && el.hasAttribute('data-router-ignore')) return diff --git a/package.json b/package.json index 42983d4..38fc7c8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "git://github.com/codeparty/tracks.git" }, - "version": "0.5.4", + "version": "0.5.5", "main": "./lib/index.js", "browserify": { "main": "./lib/browser.js"