From 11f530c514323b3d4e1912147aced7d736c11292 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 10 Feb 2015 13:52:47 +0000 Subject: bug 3198: replace (toString.call by {}.toString.call to make it work with IE (all versions) git-svn-id: http://piwigo.org/svn/branches/2.7@30942 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/TakeATour/js/custom-bootstrap-tour-standalone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js index 70a155a53..28308b832 100644 --- a/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js +++ b/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js @@ -851,7 +851,7 @@ }).call(_this); current_path = document.location.href; if (_this._isRedirect(path, current_path)) { - if (toString.call(path) === "[object RegExp]") { + if ({}.toString.call(path) === "[object RegExp]") { _this._redirect(step, path); } else { @@ -1002,7 +1002,7 @@ }; Tour.prototype._isRedirect = function(path, currentPath) { - return (path != null) && path !== "" && ((toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || (toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", ""))); + return (path != null) && path !== "" && (({}.toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || ({}.toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", ""))); }; Tour.prototype._redirect = function(step, path) { -- cgit v1.2.3