From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/components/prompt.reel/prompt.js | 112 ++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 56 deletions(-) (limited to 'js/components/prompt.reel/prompt.js') diff --git a/js/components/prompt.reel/prompt.js b/js/components/prompt.reel/prompt.js index 52f8e4e0..382502bf 100644 --- a/js/components/prompt.reel/prompt.js +++ b/js/components/prompt.reel/prompt.js @@ -30,68 +30,68 @@ POSSIBILITY OF SUCH DAMAGE. //////////////////////////////////////////////////////////////////////// // -var Montage = require("montage/core/core").Montage, - Component = require("montage/ui/component").Component; +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component; //////////////////////////////////////////////////////////////////////// -// +// exports.NinjaPrompt = Montage.create(Component, { - //////////////////////////////////////////////////////////////////// - //TODO: This should have an UI template eventually - hasTemplate: { + //////////////////////////////////////////////////////////////////// + //TODO: This should have an UI template eventually + hasTemplate: { value: false }, //////////////////////////////////////////////////////////////////// - //Type of prompt window (should be confirm, prompt, alert, or input) - _type: { - value: null - }, - //////////////////////////////////////////////////////////////////// - // - _params: { - value: null - }, - //////////////////////////////////////////////////////////////////// - // - _callback: { - value: null - }, + //Type of prompt window (should be confirm, prompt, alert, or input) + _type: { + value: null + }, + //////////////////////////////////////////////////////////////////// + // + _params: { + value: null + }, + //////////////////////////////////////////////////////////////////// + // + _callback: { + value: null + }, + //////////////////////////////////////////////////////////////////// + // + initialize: { + value: function (type, params, callback) { + // + this._type = type.toLowerCase(); + this._params = params; + this._callback = callback; + } + }, + //////////////////////////////////////////////////////////////////// + // + show: { + value: function () { + // + var input; + // + switch (this._type) { + case 'confirm': + input = confirm(this._params.message); + if (this._callback) this._callback(input); + break; + default: + //TODO: Add support for other standard box types + break; + } + } + }, + //////////////////////////////////////////////////////////////////// + //This is for later, need to hide if need (overwrite) + hide: { + value: function () { + //TODO: Add support as real UI component + } + } + //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// - // - initialize: { - value: function (type, params, callback) { - // - this._type = type.toLowerCase(); - this._params = params; - this._callback = callback; - } - }, - //////////////////////////////////////////////////////////////////// - // - show: { - value: function () { - // - var input; - // - switch (this._type) { - case 'confirm': - input = confirm(this._params.message); - if (this._callback) this._callback(input); - break; - default: - //TODO: Add support for other standard box types - break; - } - } - }, - //////////////////////////////////////////////////////////////////// - //This is for later, need to hide if need (overwrite) - hide: { - value: function () { - //TODO: Add support as real UI component - } - } - //////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////////////////////// }); //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// -- cgit v1.2.3 From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/components/prompt.reel/prompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/components/prompt.reel/prompt.js') diff --git a/js/components/prompt.reel/prompt.js b/js/components/prompt.reel/prompt.js index 382502bf..bb2c87dd 100644 --- a/js/components/prompt.reel/prompt.js +++ b/js/components/prompt.reel/prompt.js @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; //////////////////////////////////////////////////////////////////////// -// +// exports.NinjaPrompt = Montage.create(Component, { //////////////////////////////////////////////////////////////////// //TODO: This should have an UI template eventually -- cgit v1.2.3