Skip to content

Commit

Permalink
Don't manipulate original Framer.Info object
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris Verloop committed Aug 3, 2016
1 parent 781cc50 commit eb31c27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 11 additions & 9 deletions extras/Studio.framer/app.coffee
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Framer.Extras.Preloader.enable()
Framer.Extras.Hints.enable()
Framer.Extras.ShareInfo.enable()
Framer.Info =
title: "Hallo ik ben een gore flo dddddddddssssss"
description: "<ul>"
author: "Floris Verloop"
twitter: ""



print Framer.Info

Framer.Extras.ShareInfo.enable()

for i in [0..10]
layer = new Layer
y: i * 210

layer.image = Utils.randomImage() + "?cache=" + Date.now()
layer.onClick ->
print Framer.Info
4 changes: 3 additions & 1 deletion framer/Components/ShareComponent.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ class Button extends ShareLayer
# Share component
class ShareComponent

constructor: (@shareInfo) ->
constructor: (shareInfo) ->

@shareInfo = _.clone(shareInfo)

# Get the project id from the url
projectId = window.location.pathname.replace(/\//g, "")
Expand Down

0 comments on commit eb31c27

Please sign in to comment.