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
return if $(allDeviceSelector.join(",")).length
# Create all the elements
$.each BREAKPOINTS, (i, breakpoint) ->
$("body").append "<div class='device-#{breakpoint} visible-#{breakpoint}'></div>"
els = $.map BREAKPOINTS, (breakpoint) ->
"<div class='device-#{breakpoint} visible-#{breakpoint}'></div>"
$("body").append els.join('')
getBreakpointSize: ->
@setup()
allDeviceSelector = BREAKPOINTS.map (breakpoint) ->
".device-#{breakpoint}"
......@@ -30,4 +29,5 @@ class @Breakpoints
@get: ->
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