Skip to content
Snippets Groups Projects
Commit a965b033 authored by Phil Hughes's avatar Phil Hughes
Browse files

Removed call to setup from breakpoint size method

parent 1a5992b5
No related branches found
No related tags found
No related merge requests found
Loading
@@ -14,12 +14,11 @@ class @Breakpoints
Loading
@@ -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}"
   
Loading
@@ -30,4 +29,5 @@ class @Breakpoints
Loading
@@ -30,4 +29,5 @@ class @Breakpoints
@get: -> @get: ->
return instance ?= new BreakpointInstance return instance ?= new BreakpointInstance
   
@bp = Breakpoints.get() $ =>
@bp = Breakpoints.get()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment