From f7e4257745ccd44b8d24555f0ef787429d6e472c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 5 Jun 2012 00:11:03 -0700 Subject: adding the latest v0.10 montage Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/popup/popup.reel/popup.js | 41 +++++++++++++++-------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'node_modules/montage/ui/popup/popup.reel/popup.js') diff --git a/node_modules/montage/ui/popup/popup.reel/popup.js b/node_modules/montage/ui/popup/popup.reel/popup.js index 84f845db..0ed1a452 100755 --- a/node_modules/montage/ui/popup/popup.reel/popup.js +++ b/node_modules/montage/ui/popup/popup.reel/popup.js @@ -22,9 +22,14 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul hasTemplate: {value: true}, // the HTML Element to which the popup must be anchored to - anchorElement: {value: null}, + anchorElement: { + value: null + }, + + _anchor: { + value: null + }, - _anchor: {value: null}, /** * The HTMLElement or Montage Component that the popup must be anchored to */ @@ -42,7 +47,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul this.anchorElement = value.element; } } - } + }, + serializable: true }, // A Delegate to control positioning (and other features, in future) of the popup in a custom manner @@ -53,7 +59,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul @private */ contentEl: { - value: null + value: null, + serializable: true }, /** Description TODO @@ -62,7 +69,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul @private */ containerEl: { - value: null + value: null, + serializable: true }, @@ -87,7 +95,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul if (this.content) { this._slot.content = this.content; } - } + }, + serializable: true }, /** Description TODO @@ -113,7 +122,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul // set the popup property of the content. this._content.popup = this; this.needsDraw = true; - } + }, + serializable: true }, /** Description TODO @@ -138,7 +148,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul this._modal = value; this.needsDraw = true; } - } + }, + serializable: true }, /** @@ -153,7 +164,8 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul set: function(pos) { this._position = pos; //this.needsDraw = true; - } + }, + serializable: true }, /** @@ -172,14 +184,15 @@ var Popup = exports.Popup = Montage.create(Component, { /** @lends module:"modul this.needsDraw = true; } this._displayed = value; - - } + }, + serializable: true }, - + focusOnShow: { - value: true + value: true, + serializable: true }, - + /** Description TODO @function -- cgit v1.2.3