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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
a965b033
Commit
a965b033
authored
Mar 14, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed call to setup from breakpoint size method
parent
1a5992b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/breakpoints.coffee
app/assets/javascripts/breakpoints.coffee
+5
-5
No files found.
app/assets/javascripts/breakpoints.coffee
View file @
a965b033
...
@@ -14,12 +14,11 @@ class @Breakpoints
...
@@ -14,12 +14,11 @@ class @Breakpoints
return
if
$
(
allDeviceSelector
.
join
(
","
)).
length
return
if
$
(
allDeviceSelector
.
join
(
","
)).
length
# Create all the elements
# Create all the elements
$
.
each
BREAKPOINTS
,
(
i
,
breakpoint
)
->
els
=
$
.
map
BREAKPOINTS
,
(
breakpoint
)
->
$
(
"body"
).
append
"<div class='device-
#{
breakpoint
}
visible-
#{
breakpoint
}
'></div>"
"<div class='device-
#{
breakpoint
}
visible-
#{
breakpoint
}
'></div>"
$
(
"body"
).
append
els
.
join
(
''
)
getBreakpointSize
:
->
getBreakpointSize
:
->
@
setup
()
allDeviceSelector
=
BREAKPOINTS
.
map
(
breakpoint
)
->
allDeviceSelector
=
BREAKPOINTS
.
map
(
breakpoint
)
->
".device-
#{
breakpoint
}
"
".device-
#{
breakpoint
}
"
...
@@ -30,4 +29,5 @@ class @Breakpoints
...
@@ -30,4 +29,5 @@ class @Breakpoints
@
get
:
->
@
get
:
->
return
instance
?=
new
BreakpointInstance
return
instance
?=
new
BreakpointInstance
@
bp
=
Breakpoints
.
get
()
$
=>
@
bp
=
Breakpoints
.
get
()
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