From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- js/controllers/elements/block-controller.js | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 js/controllers/elements/block-controller.js (limited to 'js/controllers/elements/block-controller.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage, + ElementController = require("js/controllers/elements/element-controller").ElementController; + +exports.BlockController = Montage.create(ElementController, { + + /** + If the base method needs to be sub-classed + setProperty: { + value: function(el, p, value) { + switch(p) { + case "width": + console.log("width"); + break; + default: + ElementController.setProperty(el, p, value); + } + } + }, + */ + + /* + setProperties: { + value: function(el, newProps, currentProps, index, eventType, notify, redraw) { + ElementController.setProperties(el, newProps, currentProps, index, eventType, notify, redraw); + } + }, + */ + +}); \ No newline at end of file -- cgit v1.2.3