-
Notifications
You must be signed in to change notification settings - Fork 478
/
init.coffee
38 lines (31 loc) · 952 Bytes
/
init.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
css = require "./css"
utils = require "./utils"
debug = require "./debug"
{View} = require "./views/view"
{ViewList} = require "./views/view"
{ScrollView} = require "./views/scrollview"
# {CollectionView} = require "./views/collectionview"
{ImageView} = require "./views/imageview"
# {TextView} = require "./views/textview"
{Animation} = require "./animation"
{Frame} = require "./primitives/frame"
Global = {}
Global.View = View
Global.ScrollView = ScrollView
# Global.CollectionView = CollectionView
Global.ImageView = ImageView
# Global.TextView = TextView
Global.Animation = Animation
Global.Frame = Frame
Global.utils = utils
Global.ViewList = ViewList
Global.debug = debug.debug
Global.css = css
if window
window.Framer = Global
for k, v of Global
window[k] = v
# Alert if not WebKit
if not utils.isWebKit()
alert "Sorry, only WebKit browsers are currently supported. \
See https://github.com/koenbok/Framer/issues/2 for more info."