aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/EasingMenu.reel/EasingMenu.js
diff options
context:
space:
mode:
authorJon Reid2012-06-12 16:47:15 -0700
committerJon Reid2012-06-12 16:47:15 -0700
commitf97e4b6ab1db9fb7de18b2e44c1b0edcf2ba072d (patch)
treee2750ba885826ce0e1f819c2a4c1655f41308360 /js/panels/Timeline/EasingMenu.reel/EasingMenu.js
parent8c55dfcb0a669eef0a3bb406b70868078ef09810 (diff)
downloadninja-f97e4b6ab1db9fb7de18b2e44c1b0edcf2ba072d.tar.gz
Timeline: New popup menu for easing choices.
Diffstat (limited to 'js/panels/Timeline/EasingMenu.reel/EasingMenu.js')
-rw-r--r--js/panels/Timeline/EasingMenu.reel/EasingMenu.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/js/panels/Timeline/EasingMenu.reel/EasingMenu.js b/js/panels/Timeline/EasingMenu.reel/EasingMenu.js
new file mode 100644
index 00000000..b736ea59
--- /dev/null
+++ b/js/panels/Timeline/EasingMenu.reel/EasingMenu.js
@@ -0,0 +1,38 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component,
9 Popup = require("montage/ui/popup/popup.reel").Popup;
10
11var EasingMenu = exports.EasingMenu = Montage.create(Component, {
12
13 hasTemplate:{
14 value: true
15 },
16
17 draw: {
18 value: function() {
19 console.log("EasingMenu.draw")
20 }
21 },
22
23 show: {
24 value: function() {
25 var popup, easingMenu;
26 popup = Popup.create();
27 this._popup = popup;
28
29 popup.modal = false;
30
31 easingMenu = EasingMenu.create();
32 popup.content = easingMenu;
33
34 popup.show();
35 }
36 }
37
38});