From 24b483db367291b72170f969de78efcb1a9b95bd Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Thu, 3 May 2012 22:53:07 -0700
Subject: integrating the latest montage version
Signed-off-by: Valerio Virgillito
---
node_modules/montage/core/deserializer.js | 14 +-
node_modules/montage/core/event/event-manager.js | 28 -
node_modules/montage/core/logger.js | 2 +-
node_modules/montage/core/serializer.js | 18 +-
.../examples/feed-reader/images/07-map-marker.png | Bin 3131 -> 0 bytes
.../examples/feed-reader/images/10-medical.png | Bin 2915 -> 0 bytes
.../examples/feed-reader/images/100-coffee.png | Bin 2958 -> 0 bytes
.../examples/feed-reader/images/107-widescreen.png | Bin 2986 -> 0 bytes
.../examples/feed-reader/images/125-food.png | Bin 3038 -> 0 bytes
.../feed-reader/images/142-wine-bottle.png | Bin 187 -> 0 bytes
.../examples/feed-reader/images/34-coffee.png | Bin 3052 -> 0 bytes
.../examples/feed-reader/images/35-shopping.png | Bin 2970 -> 0 bytes
.../examples/feed-reader/images/38-airplane.png | Bin 3004 -> 0 bytes
.../feed-reader/images/41-picture-frame.png | Bin 2928 -> 0 bytes
.../examples/feed-reader/images/47-fuel.png | Bin 3091 -> 0 bytes
.../feed-reader/images/48-fork-and-knife.png | Bin 2882 -> 0 bytes
.../feed-reader/images/80-shopping-cart.png | Bin 2963 -> 0 bytes
.../examples/feed-reader/images/87-wine-glass.png | Bin 2983 -> 0 bytes
.../examples/feed-reader/images/88-beer-mug.png | Bin 3087 -> 0 bytes
.../montage/examples/feed-reader/index.html | 81 ---
.../examples/feed-reader/main.reel/main.html | 274 ---------
.../montage/examples/feed-reader/main.reel/main.js | 55 --
.../examples/feed-reader/map-example.reel/main.css | 2 -
.../feed-reader/map-example.reel/main.html | 58 --
.../examples/feed-reader/map-example.reel/main.js | 24 -
.../montage/examples/feed-reader/package.json | 10 -
.../examples/youtube-channel-example/index.html | 45 --
.../examples/youtube-channel-example/package.json | 7 -
.../examples/youtube-channel-example/style.css | 47 --
.../youtube-channel-example.js | 8 -
node_modules/montage/montage.js | 10 +-
node_modules/montage/package.json | 2 +-
node_modules/montage/ui/anchor.reel/anchor.js | 78 ++-
node_modules/montage/ui/application.js | 4 +-
.../autocomplete.reel/autocomplete.css | 12 +
.../autocomplete.reel/autocomplete.html | 10 +
.../autocomplete/autocomplete.reel/autocomplete.js | 498 ++++++++++++++++
.../ui/autocomplete/autocomplete.reel/loading.gif | Bin 0 -> 1456 bytes
.../results-list.reel/results-list.css | 30 +
.../results-list.reel/results-list.html | 62 ++
.../autocomplete/results-list.reel/results-list.js | 16 +
.../bluemoon/button-group.reel/button-group.html | 3 +-
.../montage/ui/bluemoon/button.reel/button.html | 3 +-
.../ui/bluemoon/progress.reel/progress.html | 7 +-
.../montage/ui/bluemoon/slider.reel/slider.html | 35 +-
node_modules/montage/ui/button.reel/button.js | 214 +++++--
node_modules/montage/ui/check-input.js | 23 +-
node_modules/montage/ui/checkbox.reel/checkbox.js | 63 +-
node_modules/montage/ui/component.js | 201 ++++---
node_modules/montage/ui/composer/composer.js | 45 +-
node_modules/montage/ui/composer/press-composer.js | 28 +-
.../montage/ui/composer/translate-composer.js | 641 +++++++++++----------
.../montage/ui/controller/array-controller.js | 1 -
.../montage/ui/date-input.reel/date-input.js | 33 +-
.../ui/dynamic-element.reel/dynamic-element.js | 143 +++++
.../montage/ui/dynamic-text.reel/dynamic-text.js | 45 +-
node_modules/montage/ui/flow-path-cubic.js | 115 ++++
node_modules/montage/ui/flow-path-lerp.js | 112 ++++
node_modules/montage/ui/flow-path-linear.js | 83 +++
node_modules/montage/ui/flow-path-sigmoid.js | 148 +++++
node_modules/montage/ui/flow-path.js | 215 +++++++
node_modules/montage/ui/flow.reel/flow.html | 38 +-
node_modules/montage/ui/flow.reel/flow.js | 482 +++-------------
node_modules/montage/ui/image.reel/image.js | 36 +-
node_modules/montage/ui/list.reel/list.html | 13 +-
node_modules/montage/ui/loader.reel/loader.js | 30 +-
.../ui/loading-panel.reel/loading-panel.html | 24 +-
node_modules/montage/ui/loading.reel/loading.html | 5 +-
node_modules/montage/ui/native-control.js | 185 ++++--
.../montage/ui/number-input.reel/number-input.js | 32 +-
.../montage/ui/popup/alert.reel/alert.html | 25 +-
.../montage/ui/popup/confirm.reel/confirm.html | 24 +-
.../montage/ui/popup/notifier.reel/notifier.html | 7 +-
node_modules/montage/ui/popup/popup.reel/popup.css | 20 +-
.../montage/ui/popup/popup.reel/popup.html | 12 +-
node_modules/montage/ui/popup/popup.reel/popup.js | 16 +-
node_modules/montage/ui/progress.reel/progress.js | 34 +-
.../montage/ui/radio-button.reel/radio-button.js | 65 ++-
.../montage/ui/range-input.reel/range-input.js | 31 +-
.../rich-text-linkpopup.html | 10 +-
.../rich-text-linkpopup.js | 1 +
.../rich-text-resizer.reel/rich-text-resizer.css | 32 +-
.../rich-text-resizer.reel/rich-text-resizer.html | 26 +-
.../rich-text-resizer.reel/rich-text-resizer.js | 10 +-
.../rich-text-editor.reel/rich-text-editor-base.js | 34 +-
.../rich-text-editor.reel/rich-text-editor.html | 10 +-
.../rich-text-editor.reel/rich-text-editor.js | 223 ++++---
.../montage/ui/scroll-bars.reel/scroll-bars.html | 17 +-
.../montage/ui/scroller.reel/scroller.html | 26 +-
node_modules/montage/ui/scroller.reel/scroller.js | 21 +-
.../montage/ui/scrollview.reel/scrollview.js | 193 +------
.../montage/ui/select-input.reel/select-input.js | 86 ++-
node_modules/montage/ui/tabs.reel/tabs.html | 12 +-
node_modules/montage/ui/text-input.js | 148 ++---
node_modules/montage/ui/textarea.reel/textarea.js | 94 ++-
.../montage/ui/textfield.reel/textfield.js | 14 +-
.../montage/ui/toggle-button.reel/toggle-button.js | 74 +--
.../montage/ui/video-player.reel/video-player.html | 97 ++--
98 files changed, 3461 insertions(+), 2299 deletions(-)
delete mode 100644 node_modules/montage/examples/feed-reader/images/07-map-marker.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/10-medical.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/100-coffee.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/107-widescreen.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/125-food.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/142-wine-bottle.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/34-coffee.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/35-shopping.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/38-airplane.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/41-picture-frame.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/47-fuel.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/80-shopping-cart.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/87-wine-glass.png
delete mode 100644 node_modules/montage/examples/feed-reader/images/88-beer-mug.png
delete mode 100644 node_modules/montage/examples/feed-reader/index.html
delete mode 100644 node_modules/montage/examples/feed-reader/main.reel/main.html
delete mode 100644 node_modules/montage/examples/feed-reader/main.reel/main.js
delete mode 100644 node_modules/montage/examples/feed-reader/map-example.reel/main.css
delete mode 100644 node_modules/montage/examples/feed-reader/map-example.reel/main.html
delete mode 100644 node_modules/montage/examples/feed-reader/map-example.reel/main.js
delete mode 100644 node_modules/montage/examples/feed-reader/package.json
delete mode 100755 node_modules/montage/examples/youtube-channel-example/index.html
delete mode 100755 node_modules/montage/examples/youtube-channel-example/package.json
delete mode 100755 node_modules/montage/examples/youtube-channel-example/style.css
delete mode 100755 node_modules/montage/examples/youtube-channel-example/youtube-channel-example.js
create mode 100644 node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.css
create mode 100644 node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.html
create mode 100644 node_modules/montage/ui/autocomplete/autocomplete.reel/autocomplete.js
create mode 100644 node_modules/montage/ui/autocomplete/autocomplete.reel/loading.gif
create mode 100644 node_modules/montage/ui/autocomplete/results-list.reel/results-list.css
create mode 100644 node_modules/montage/ui/autocomplete/results-list.reel/results-list.html
create mode 100644 node_modules/montage/ui/autocomplete/results-list.reel/results-list.js
mode change 100755 => 100644 node_modules/montage/ui/controller/array-controller.js
create mode 100644 node_modules/montage/ui/dynamic-element.reel/dynamic-element.js
create mode 100644 node_modules/montage/ui/flow-path-cubic.js
create mode 100644 node_modules/montage/ui/flow-path-lerp.js
create mode 100644 node_modules/montage/ui/flow-path-linear.js
create mode 100644 node_modules/montage/ui/flow-path-sigmoid.js
create mode 100644 node_modules/montage/ui/flow-path.js
(limited to 'node_modules/montage')
diff --git a/node_modules/montage/core/deserializer.js b/node_modules/montage/core/deserializer.js
index b8ed5618..c1c97b2b 100755
--- a/node_modules/montage/core/deserializer.js
+++ b/node_modules/montage/core/deserializer.js
@@ -332,11 +332,6 @@ var Deserializer = Montage.create(Montage, /** @lends module:montage/core/deseri
@param {Array} properties The property names to be deserialized.
*/
deserializePropertiesForObject: {value: function(object, properties) {
- // TODO: ensure backward compatibility
- if (properties && "childComponents" in properties) {
- properties.childComponents = [];
- console.log('Warning: "childComponents" isn\'t supported on components within the current serializaation format, this property will be reset to [].');
- }
for (var key in properties) {
object[key] = properties[key];
}
@@ -846,8 +841,7 @@ var Deserializer = Montage.create(Montage, /** @lends module:montage/core/deseri
if (id) {
return 'element.getElementById("' + id + '")';
} else {
- // TODO: getElemenyById only here for backwards compatibility
- return 'element.querySelector(\'*[' + Deserializer._MONTAGE_ID_ATTRIBUTE + '="' + value + '"]\') || element.getElementById("' + value + '")';
+ return 'element.querySelector(\'*[' + Deserializer._MONTAGE_ID_ATTRIBUTE + '="' + value + '"]\')';
}
break;
@@ -859,7 +853,8 @@ var Deserializer = Montage.create(Montage, /** @lends module:montage/core/deseri
break;
case "reference":
- var object;
+ var object,
+ originalValue = value;
if (value in exports) {
object = exports[value];
@@ -874,6 +869,9 @@ var Deserializer = Montage.create(Montage, /** @lends module:montage/core/deseri
if (parent) {
parent[key] = object;
}
+ if (typeof object === "undefined") {
+ logger.error("Missing object in serialization: '" + originalValue + "'" + (self._origin ? " in " + self._origin : ""));
+ }
return value;
break;
diff --git a/node_modules/montage/core/event/event-manager.js b/node_modules/montage/core/event/event-manager.js
index 75272f85..d38b9755 100755
--- a/node_modules/montage/core/event/event-manager.js
+++ b/node_modules/montage/core/event/event-manager.js
@@ -332,29 +332,6 @@ var EventManager = exports.EventManager = Montage.create(Montage,/** @lends modu
this._application = application;
}
},
-/**
- @function
- @param {String} composer Event composer.
- @param {Array} eventType Event type array.
- */
- registerComposer_forEventType_: {
- enumerable: false,
- value: function(composer, eventType) {
-
- if (!!this._registeredEventComposers[eventType]) {
- throw "Cannot register composer for eventType:" + eventType + ". Already have one registered.";
- }
-
- this._registeredEventComposers[eventType] = composer;
- }
- },
-/**
- @private
-*/
- _registeredEventComposers: {
- value: {},
- enumerable: false
- },
// Dictionary keyed by event types with the collection of handlers per event type
// This dictates why the event manager observes events of a particular type
@@ -718,12 +695,7 @@ var EventManager = exports.EventManager = Montage.create(Montage,/** @lends modu
}
- // Inform any composers about this request if we need to synthesize this eventType
if (isNewTarget && typeof target.nativeAddEventListener === "function") {
- if (this._registeredEventComposers[eventType]) {
- this._registeredEventComposers[eventType].startObservingTarget_forEventType_(target, eventType);
- }
-
this._observeTarget_forEventType_(target, eventType);
}
diff --git a/node_modules/montage/core/logger.js b/node_modules/montage/core/logger.js
index 26094e76..434aa4dd 100755
--- a/node_modules/montage/core/logger.js
+++ b/node_modules/montage/core/logger.js
@@ -408,7 +408,7 @@ LoggerUI = Montage.create(Montage, /** @lends module:montage/core/logger.LoggerU
//YUCK!! I wish I could use a reel!!!
var styleTest = "#_montage_logger_inspector {";
styleTest += " border: 1px solid rgba(15,15,15,0.4);";
- styleTest += " position: absolute;";
+ styleTest += " position: fixed;";
styleTest += " right: 25px;";
styleTest += " top: 25px;";
styleTest += " -webkit-border-radius: 5px;";
diff --git a/node_modules/montage/core/serializer.js b/node_modules/montage/core/serializer.js
index 74080770..ba2fa04a 100755
--- a/node_modules/montage/core/serializer.js
+++ b/node_modules/montage/core/serializer.js
@@ -458,6 +458,10 @@ var Serializer = Montage.create(Montage, /** @lends module:montage/serializer.Se
serializedUnits = {};
objectInfo = Montage.getInfoForObject(object);
+ if (!this._require) {
+ throw new Error("Cannot serialize Montage objects without a require function to identify the corresponding package.");
+ }
+
moduleId = this._require.identify(
objectInfo.moduleId,
objectInfo.require
@@ -491,15 +495,6 @@ var Serializer = Montage.create(Montage, /** @lends module:montage/serializer.Se
if (!properties) {
properties = object;
propertyNames = Montage.getSerializablePropertyNames(object);
- // HACK: only to be able to live together with serialization v1, remover after
- var ix;
- if ((ix = propertyNames.indexOf("_bindingDescriptors")) > -1) {
- propertyNames.splice(ix, 1);
- }
- if ((ix = propertyNames.indexOf("_eventListenerDescriptors")) > -1) {
- propertyNames.splice(ix, 1);
- }
- // end HACK
}
serializedUnits.properties = this._serializeObjectLiteral(properties, propertyNames, 3);
}
@@ -572,14 +567,13 @@ var Serializer = Montage.create(Montage, /** @lends module:montage/serializer.Se
*/
_serializeElement: {value: function(element) {
var attribute = element.getAttribute(this._MONTAGE_ID_ATTRIBUTE),
- // TODO: element.id only here for backwards compatibility
- id = attribute || element.id;
+ id = attribute;
if (id) {
this._externalElements.push(element);
return '{"#":"' + id + '"}';
} else {
- logger.error("Error: Not possible to serialize a DOM element with no id assigned: " + element.outerHTML);
+ logger.error("Error: Not possible to serialize a DOM element with no " + this._MONTAGE_ID_ATTRIBUTE + " assigned: " + element.outerHTML);
}
}},
diff --git a/node_modules/montage/examples/feed-reader/images/07-map-marker.png b/node_modules/montage/examples/feed-reader/images/07-map-marker.png
deleted file mode 100644
index a5d99d69..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/07-map-marker.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/10-medical.png b/node_modules/montage/examples/feed-reader/images/10-medical.png
deleted file mode 100644
index ab78c783..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/10-medical.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/100-coffee.png b/node_modules/montage/examples/feed-reader/images/100-coffee.png
deleted file mode 100644
index 4e9c517a..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/100-coffee.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/107-widescreen.png b/node_modules/montage/examples/feed-reader/images/107-widescreen.png
deleted file mode 100644
index 2e5f1ba7..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/107-widescreen.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/125-food.png b/node_modules/montage/examples/feed-reader/images/125-food.png
deleted file mode 100644
index 81afd74a..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/125-food.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png b/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png
deleted file mode 100644
index a7df9e97..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/142-wine-bottle.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/34-coffee.png b/node_modules/montage/examples/feed-reader/images/34-coffee.png
deleted file mode 100644
index 4c4bedad..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/34-coffee.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/35-shopping.png b/node_modules/montage/examples/feed-reader/images/35-shopping.png
deleted file mode 100644
index 03689f99..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/35-shopping.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/38-airplane.png b/node_modules/montage/examples/feed-reader/images/38-airplane.png
deleted file mode 100644
index dfcbbc78..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/38-airplane.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/41-picture-frame.png b/node_modules/montage/examples/feed-reader/images/41-picture-frame.png
deleted file mode 100644
index 6deee997..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/41-picture-frame.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/47-fuel.png b/node_modules/montage/examples/feed-reader/images/47-fuel.png
deleted file mode 100644
index 617d7640..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/47-fuel.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png b/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png
deleted file mode 100644
index 06d91088..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/48-fork-and-knife.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/80-shopping-cart.png b/node_modules/montage/examples/feed-reader/images/80-shopping-cart.png
deleted file mode 100644
index 51a5f86f..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/80-shopping-cart.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/87-wine-glass.png b/node_modules/montage/examples/feed-reader/images/87-wine-glass.png
deleted file mode 100644
index b4d34474..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/87-wine-glass.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/images/88-beer-mug.png b/node_modules/montage/examples/feed-reader/images/88-beer-mug.png
deleted file mode 100644
index b0fdd99a..00000000
Binary files a/node_modules/montage/examples/feed-reader/images/88-beer-mug.png and /dev/null differ
diff --git a/node_modules/montage/examples/feed-reader/index.html b/node_modules/montage/examples/feed-reader/index.html
deleted file mode 100644
index 3b5529b9..00000000
--- a/node_modules/montage/examples/feed-reader/index.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
- Montage Feed Reader
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Main component of application
-
-
-
-
-
-
diff --git a/node_modules/montage/examples/feed-reader/map-example.reel/main.js b/node_modules/montage/examples/feed-reader/map-example.reel/main.js
deleted file mode 100644
index 54b84425..00000000
--- a/node_modules/montage/examples/feed-reader/map-example.reel/main.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*