Changeset 30942


Ignore:
Timestamp:
Feb 10, 2015, 2:52:47 PM (10 years ago)
Author:
plg
Message:

bug 3198: replace (toString.call by {}.toString.call to make it work with IE (all versions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js

    r28775 r30942  
    852852        current_path = document.location.href;
    853853        if (_this._isRedirect(path, current_path)) {
    854           if (toString.call(path) === "[object RegExp]") {
     854          if ({}.toString.call(path) === "[object RegExp]") {
    855855            _this._redirect(step, path);
    856856          }
     
    10031003
    10041004    Tour.prototype._isRedirect = function(path, currentPath) {
    1005       return (path != null) && path !== "" && ((toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || (toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
     1005      return (path != null) && path !== "" && (({}.toString.call(path) === "[object RegExp]" && !path.test(currentPath)) || ({}.toString.call(path) === "[object String]" && path !== currentPath.replace("http://", "").replace("https://", "")));
    10061006    };
    10071007
Note: See TracChangeset for help on using the changeset viewer.