Changeset 30942
- Timestamp:
- Feb 10, 2015, 2:52:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/plugins/TakeATour/js/custom-bootstrap-tour-standalone.js
r28775 r30942 852 852 current_path = document.location.href; 853 853 if (_this._isRedirect(path, current_path)) { 854 if ( toString.call(path) === "[object RegExp]") {854 if ({}.toString.call(path) === "[object RegExp]") { 855 855 _this._redirect(step, path); 856 856 } … … 1003 1003 1004 1004 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://", ""))); 1006 1006 }; 1007 1007
Note: See TracChangeset
for help on using the changeset viewer.