-
+
diff --git a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
index 47a831eb..c066220e 100644
--- a/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
+++ b/node_modules/montage-google/feed-reader/feed-reader.reel/feed-reader.js
@@ -8,6 +8,10 @@ var Montage = require("montage").Montage,
exports.FeedReader = Montage.create(Component, {
+ _apiLoaded: {
+ value: false
+ },
+
didCreate: {
value: function() {
var self = this;
@@ -17,6 +21,8 @@ exports.FeedReader = Montage.create(Component, {
google.load("feeds", "1", {
callback: function() {
console.log('google feeds api loaded');
+ self._apiLoaded = true;
+ self.feedURL = self._feedURL;
self.needsDraw = true;
window.initGoogleAPI = null;
}
@@ -30,13 +36,16 @@ exports.FeedReader = Montage.create(Component, {
_feedURL: {value: null},
feedURL: {
+ serializable: true,
get: function() {
return this._feedURL;
},
set: function(value) {
this._feedURL = value;
// execute the search and get the entries
- this._fetchFeed();
+ if (this._apiLoaded) {
+ this._fetchFeed();
+ }
}
},
@@ -49,6 +58,7 @@ exports.FeedReader = Montage.create(Component, {
_feedDisplayMode: {value: null},
feedDisplayMode: {
+ serializable: true,
get: function() {
return this._feedDisplayMode;
},
@@ -107,7 +117,7 @@ exports.FeedReader = Montage.create(Component, {
self.addEntryAnimation();
self.entries = result.feed.entries;
self.activeIndex = 0;
-
+
}
--
cgit v1.2.3
From ac24875103799c7198b1b1cb01d15b415d118354 Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Fri, 1 Jun 2012 17:12:37 -0700
Subject: removing the search bar component
Signed-off-by: Valerio Virgillito
---
node_modules/components-data/searchfield.json | 20 --------------------
1 file changed, 20 deletions(-)
delete mode 100644 node_modules/components-data/searchfield.json
(limited to 'node_modules')
diff --git a/node_modules/components-data/searchfield.json b/node_modules/components-data/searchfield.json
deleted file mode 100644
index 94c570d9..00000000
--- a/node_modules/components-data/searchfield.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "component": "searchfield",
-
- "module": "montage/ui/textfield.reel",
-
- "name": "Textfield",
-
- "properties": [
- {
- "name": "valueBinding",
- "type": "string",
- "default": null
- },
- {
- "name": "value",
- "type": "string",
- "default": ""
- }
- ]
-}
\ No newline at end of file
--
cgit v1.2.3