Permalink
Browse files

Using _.map instead of _.pluck

  • Loading branch information...
nvh committed Jan 24, 2017
1 parent f4db660 commit ad9fa7e6c72300d6683329abdd6b62bad32ebb79
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/Extras/Preloader.coffee
@@ -37,10 +37,10 @@ class Preloader extends BaseClass
@brand.style["background-image"] = "url('#{url}')" if @brand
addImagesFromContext: (context) ->
_.pluck(context.layers, "image").map(@addImage)
_.map(context.layers, "image").map(@addImage)
addPlayersFromContext: (context) ->
_.pluck(context.layers, "player").map(@addPlayer)
_.map(context.layers, "player").map(@addPlayer)
addImage: (image) =>
if image and image not in @_media

0 comments on commit ad9fa7e

Please sign in to comment.