aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/block-controller.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/controllers/elements/block-controller.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/controllers/elements/block-controller.js')
-rw-r--r--js/controllers/elements/block-controller.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/js/controllers/elements/block-controller.js b/js/controllers/elements/block-controller.js
new file mode 100644
index 00000000..395a1a4d
--- /dev/null
+++ b/js/controllers/elements/block-controller.js
@@ -0,0 +1,35 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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 ElementController = require("js/controllers/elements/element-controller").ElementController;
9
10exports.BlockController = Montage.create(ElementController, {
11
12 /**
13 If the base method needs to be sub-classed
14 setProperty: {
15 value: function(el, p, value) {
16 switch(p) {
17 case "width":
18 console.log("width");
19 break;
20 default:
21 ElementController.setProperty(el, p, value);
22 }
23 }
24 },
25 */
26
27 /*
28 setProperties: {
29 value: function(el, newProps, currentProps, index, eventType, notify, redraw) {
30 ElementController.setProperties(el, newProps, currentProps, index, eventType, notify, redraw);
31 }
32 },
33 */
34
35}); \ No newline at end of file