Index: trunk/extensions/UploadWizard/resources/mw.Uri.js |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | /** |
55 | 55 | * Constructs URI object. Throws error if arguments are illegal/impossible, or otherwise don't parse. |
56 | 56 | * @constructor |
57 | | - * @param {!Object|Location|String} URI string, or a Location object (obtained from window.location in some browsers) or an Object with appropriate properties (especially another URI object to clone). Object must have non-blank 'protocol', 'host', and 'path' properties. |
| 57 | + * @param {!Object|String} URI string, or an Object with appropriate properties (especially another URI object to clone). Object must have non-blank 'protocol', 'host', and 'path' properties. |
58 | 58 | * @param {Boolean} strict mode (when parsing a string) |
59 | 59 | */ |
60 | 60 | mw.Uri = function( uri, strictMode ) { |
— | — | @@ -61,8 +61,6 @@ |
62 | 62 | if ( mw.isFull( uri ) ) { |
63 | 63 | if ( typeof uri === 'string' ) { |
64 | 64 | this._parse( uri, strictMode ); |
65 | | - } else if ( uri instanceof Location ) { |
66 | | - this._parse( uri.href, strictMode ); |
67 | 65 | } else if ( typeof uri === 'object' ) { |
68 | 66 | var _this = this; |
69 | 67 | $.each( this._properties, function( i, property ) { |