Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
07a7d88e
Commit
07a7d88e
authored
Apr 07, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually unbind and better undefined checking
Thanks @jschatz1 for the review
parent
3d369a94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/projects/settings_service_desk/service_desk_root.js
...ripts/projects/settings_service_desk/service_desk_root.js
+3
-3
No files found.
app/assets/javascripts/projects/settings_service_desk/service_desk_root.js
View file @
07a7d88e
...
@@ -8,11 +8,11 @@ import eventHub from './event_hub';
...
@@ -8,11 +8,11 @@ import eventHub from './event_hub';
class
ServiceDeskRoot
{
class
ServiceDeskRoot
{
constructor
(
wrapperElement
)
{
constructor
(
wrapperElement
)
{
this
.
wrapperElement
=
wrapperElement
;
this
.
wrapperElement
=
wrapperElement
;
const
isEnabled
=
t
his
.
wrapperElement
.
dataset
.
enabled
!==
undefined
&&
const
isEnabled
=
t
ypeof
this
.
wrapperElement
.
dataset
.
enabled
!==
'
undefined
'
&&
this
.
wrapperElement
.
dataset
.
enabled
!==
'
false
'
;
this
.
wrapperElement
.
dataset
.
enabled
!==
'
false
'
;
const
incomingEmail
=
this
.
wrapperElement
.
dataset
.
incomingEmail
;
const
incomingEmail
=
this
.
wrapperElement
.
dataset
.
incomingEmail
;
const
endpoint
=
this
.
wrapperElement
.
dataset
.
endpoint
;
const
endpoint
=
this
.
wrapperElement
.
dataset
.
endpoint
;
const
isInstanceAdmin
=
t
his
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
undefined
&&
const
isInstanceAdmin
=
t
ypeof
this
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
'
undefined
'
&&
this
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
'
false
'
;
this
.
wrapperElement
.
dataset
.
isInstanceAdmin
!==
'
false
'
;
this
.
store
=
new
ServiceDeskStore
({
this
.
store
=
new
ServiceDeskStore
({
...
@@ -40,7 +40,7 @@ class ServiceDeskRoot {
...
@@ -40,7 +40,7 @@ class ServiceDeskRoot {
}
}
unbindEvents
()
{
unbindEvents
()
{
eventHub
.
$o
n
(
'
serviceDeskEnabledCheckboxToggled
'
,
this
.
onEnableToggledWrapper
);
eventHub
.
$o
ff
(
'
serviceDeskEnabledCheckboxToggled
'
,
this
.
onEnableToggledWrapper
);
}
}
render
()
{
render
()
{
...
...
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