File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change 87
87
url = $ ( this ) . attr ( getAttrName ( this [ 0 ] ) ) || '' ;
88
88
}
89
89
90
- return $ . url ( { url : url , strict : strictMode } ) ;
90
+ return $ . url ( url , strictMode ) ;
91
91
} ;
92
92
93
- $ . url = function ( opts )
93
+ $ . url = function ( url , strictMode )
94
94
{
95
- var url = '' ,
96
- strict = false ;
97
-
98
- if ( typeof opts === 'string' )
99
- {
100
- url = opts ;
101
- }
102
- else
103
- {
104
- opts = opts || { } ;
105
- strict = opts . strict || strict ;
106
- url = opts . url === undefined ? window . location . toString ( ) : opts . url ;
107
- }
108
-
95
+ if ( arguments . length === 1 && url === true )
96
+ {
97
+ strictMode = true ;
98
+ url = undefined ;
99
+ }
100
+
101
+ strictMode = strictMode || false ;
102
+ url = url || window . location . toString ( ) ;
103
+
109
104
return {
110
105
111
- data : parseUri ( url , strict ) ,
106
+ data : parseUri ( url , strictMode ) ,
112
107
113
108
// get various attributes from the URI
114
109
attr : function ( attr )
You can’t perform that action at this time.
0 commit comments