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 --- .../montage/ui/controller/object-controller.js | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100755 node_modules/montage/ui/controller/object-controller.js (limited to 'node_modules/montage/ui/controller/object-controller.js') diff --git a/node_modules/montage/ui/controller/object-controller.js b/node_modules/montage/ui/controller/object-controller.js new file mode 100755 index 00000000..54e32231 --- /dev/null +++ b/node_modules/montage/ui/controller/object-controller.js @@ -0,0 +1,62 @@ +/* + 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. +
*/ +/** + @module montage/ui/controller/object-controller + @requires montage/core/core + */ +var Montage = require("montage").Montage; +/** + @class module:montage/ui/controller/object-controller.ObjectController + @classdesc Generic object controller. + @extends module:montage/core/core.Montage + */ +var ObjectController = exports.ObjectController = Montage.create(Montage, /** @lends module:montage/ui/controller/object-controller.ObjectController# */ { +/** + Description TODO + @type {Property} + @default null + */ + objectPrototype: { + enumerable: false, + value: null + }, + /** + Description TODO + @function + @returns this.objectPrototype.create() + */ + newObject: { + enumerable: false, + value: function() { + return this.objectPrototype.create(); + } + }, + + /** + Description TODO + @function + @param {Property} content TODO + @returns itself + */ + initWithContent: { + value: function(content) { + this.content = content; + return this; + } + }, + /** + Description TODO + @type {Property} + @default null + */ + content: { + enumerable: false, + value: null + } + + + +}); -- cgit v1.2.3