Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cto
g1
Commits
846e30cd
Commit
846e30cd
authored
Feb 16, 2019
by
S Anand
Browse files
FIX
parent
d5d196f8
Pipeline
#77013
passed with stage
in 2 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/urlfilter.js
View file @
846e30cd
...
...
@@ -7,6 +7,7 @@ var container_options = {
selector
:
'
.urlfilter
'
,
src
:
'
src
'
}
var
event_namespace
=
'
.urlfilter
'
export
function
urlfilter
(
options
)
{
var
$self
=
this
...
...
@@ -16,8 +17,7 @@ export function urlfilter(options) {
var
doc
=
$self
[
0
].
ownerDocument
var
settings
=
$
.
extend
({},
container_options
,
options
||
{},
this
.
dataset
)
var
default_remove
=
settings
.
remove
||
hasdata
(
$self
,
'
remove
'
)
var
space
=
settings
.
selector
===
container_options
.
selector
?
''
:
'
'
var
events
=
settings
.
event
.
split
(
/
\s
+/
).
map
(
function
(
v
)
{
return
v
+
space
+
settings
.
selector
}).
join
(
'
'
)
var
events
=
settings
.
event
.
split
(
/
\s
+/
).
map
(
function
(
v
)
{
return
v
+
event_namespace
}).
join
(
'
'
)
// options.location and options.history are used purely for testing
var
loc
=
settings
.
location
||
(
doc
.
defaultView
||
doc
.
parentWindow
).
location
var
hist
=
settings
.
history
||
(
doc
.
defaultView
||
doc
.
parentWindow
).
history
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment