Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SiB Router
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
19
Issues
19
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
framework
SiB Router
Commits
58fb751c
Commit
58fb751c
authored
Mar 01, 2019
by
Clément
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix--improve-router-querySelector' into 'master'
bugfix: improve querySelector See merge request
!6
parents
e6659b18
5016b072
Pipeline
#2425
passed with stage
in 28 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sib-router.js
src/sib-router.js
+1
-1
No files found.
src/sib-router.js
View file @
58fb751c
...
...
@@ -44,7 +44,7 @@ export default class SIBRouter extends HTMLElement {
route
.
hide
();
}
navigate
(
routeName
=
''
,
resource
)
{
const
route
=
this
.
querySelector
(
'
sib-route[name=
'
+
routeName
+
'
]
'
);
const
route
=
this
.
querySelector
(
'
sib-route[name=
"
'
+
routeName
+
'
"
]
'
);
if
(
!
route
)
return
;
//this route is not for me!
const
id
=
resource
?
resource
[
'
@id
'
]
:
null
;
...
...
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