Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bandwagon/content/scripts/model/addon.js
diff options
context:
space:
mode:
Diffstat (limited to 'bandwagon/content/scripts/model/addon.js')
-rw-r--r--bandwagon/content/scripts/model/addon.js23
1 files changed, 3 insertions, 20 deletions
diff --git a/bandwagon/content/scripts/model/addon.js b/bandwagon/content/scripts/model/addon.js
index abf4634..5ef72b9 100644
--- a/bandwagon/content/scripts/model/addon.js
+++ b/bandwagon/content/scripts/model/addon.js
@@ -83,27 +83,10 @@ Bandwagon.Model.Addon.INSTALL_NO_ADDON_IS_FOR_OLDER_VERSION = 2;
Bandwagon.Model.Addon.INSTALL_NO_UPGRADE_TO_USE_THIS_VERSION = 3;
Bandwagon.Model.Addon.INSTALL_NO_MUST_DOWNLOAD_BETA = 4;
Bandwagon.Model.Addon.INSTALL_NO_NOT_COMPATIBLE_OS = 5;
-Bandwagon.Model.Addon.INSTALL_NO_IS_EXPERIMENTAL = 6;
-
-Bandwagon.Model.Addon.STATUS_PUBLIC = 4;
-Bandwagon.Model.Addon.STATUS_SANDBOX = 1;
Bandwagon.Model.Addon.prototype.canInstall = function(env)
{
- // chec is the extension experimental
-
- if (this.status == Bandwagon.Model.Addon.STATUS_SANDBOX)
- {
- var details =
- {
- type: Bandwagon.Model.Addon.INSTALL_NO_IS_EXPERIMENTAL,
- requiredVersion: ""
- };
-
- return details;
- }
-
- // check is the extension compatible with this os
+ // check is the extension compatible with this os
if (!this.getInstaller(env.os))
{
@@ -298,8 +281,8 @@ Bandwagon.Model.Addon.prototype.unserialize = function(xaddon)
if (!comment0Author.match(/\w/))
comment0Author = "Unknown";
- //if (comment0Comment.match(/\w/))
- this.comments.push({comment: comment0Comment, author: comment0Author});
+ if (comment0Comment.match(/\w/))
+ this.comments.push({comment: comment0Comment, author: comment0Author});
}