Permalink
Browse files

Fix framer/company#2314

  • Loading branch information...
koenbok committed Aug 4, 2016
1 parent c8f1ade commit 778a01b5ef26e0a2af0bd5c24dc2eacbb1df95a6
Showing with 15 additions and 15 deletions.
  1. +9 −11 extras/Studio.framer/app.coffee
  2. +4 −3 extras/Studio.framer/framer/config.json
  3. +2 −1 framer/DOMEventManager.coffee
@@ -1,19 +1,17 @@
# Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Extras.Hints.disable()
Framer.Info =
title: "Test Prototype"
author: "Floris Verloop"
twitter: "fverloop"
description: "I wonder if we should make Framer.Extras.Preloader.enable() a public feature then, ‘cause people will pretty much never be able to make that preloader show? I wonder if we should make Framer.Extras.Preloader.enable() a public feature then, ‘cause people will pretty much never be able to make that preloader show?"
title: ""
author: "Koen Bok"
twitter: ""
description: ""
Screen.backgroundColor = "black"
Framer.Extras.Preloader.enable()
# Framer.Extras.Preloader.enable()
grid = new GridComponent
size: Screen
grid.renderCell = (layer) ->
layer.image = Utils.randomImage(layer) #+ "?cache=#{Date.now()}"
layer.image = Utils.randomImage(layer)
layer.onTap ->
@@ -5,12 +5,13 @@
"deviceOrientation" : 0,
"sharedPrototype" : 1,
"contentScale" : 1,
"deviceType" : "fullscreen",
"deviceType" : "apple-iphone-5s-gold",
"selectedHand" : "iphone-hands-2",
"updateDelay" : 0.3,
"deviceScale" : 1,
"deviceScale" : "fit",
"foldedCodeRanges" : [
],
"orientation" : 0
"orientation" : 0,
"fullScreen" : false
}
@@ -10,12 +10,13 @@ class DOMEventManagerElement extends EventEmitter
constructor: (@element) ->
addListener: (eventName, listener, capture=false) ->
listener.capture = capture # Make sure we store capture too
super(eventName, listener)
@element.addEventListener(eventName, listener, capture)
removeListener: (eventName, listener, capture=false) ->
super(eventName, listener)
@element.removeEventListener(eventName, listener, capture)
@element.removeEventListener(eventName, listener, listener.capture)
# Keep the DOM API working
addEventListener: @::addListener

0 comments on commit 778a01b

Please sign in to comment.