Commit a965b033 authored by Phil Hughes's avatar Phil Hughes

Removed call to setup from breakpoint size method

parent 1a5992b5
...@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment