Permalink
Browse files

Fixed a bug in the BB10 headers

  • Loading branch information...
1 parent e9f5696 commit 0364895558a88d79d5c5f3d2b75b48d15a15a4fb Daniel Mateescu committed Mar 6, 2012
Showing with 15 additions and 15 deletions.
  1. +15 −15 build/bbPlugin.js
View
30 build/bbPlugin.js
@@ -22,7 +22,7 @@
BBTag = {
tableHeader : function(firstColumnName){
- return "<thead><tr><th>"+firstColumnName+"</th><th>BB5.0</th><th>BB6.0</th><th>BB7.0</th><th>PB1.0</th><th>PB2.0</th><th>Ripple</th></tr></thead>";
+ return "<thead><tr><th>"+firstColumnName+"</th><th>BB5.0</th><th>BB6.0</th><th>BB7.0</th><th>PB1.0</th><th>PB2.0</th><th>BB10</th><th>Ripple</th></tr></thead>";
}
};
@@ -103,23 +103,23 @@ BBTag.Support.prototype.resetSupportAttributes = function() {
this.supportTable += tableNo + "\n" + tableNo + "\n";;
}
- if(this.ripple){
- this.supportStrings.push("Ripple Emulator");
+ if(this.bb10x){
+ this.supportStrings.push("BlackBerry 10");
if(this.supportTag.length){
this.supportTag += "|";
}
- this.supportTag += "ripple";
+ this.supportTag += "bb10";
this.supportTable += tableYes;
}else{
this.supportTable += tableNo;
}
- if(this.bb10x){
- this.supportStrings.push("BlackBerry 10");
+ if(this.ripple){
+ this.supportStrings.push("Ripple Emulator");
if(this.supportTag.length){
this.supportTag += "|";
}
- this.supportTag += "bb10";
+ this.supportTag += "ripple";
this.supportTable += tableYes;
}else{
this.supportTable += tableNo;
@@ -130,14 +130,14 @@ BBTag.Support.prototype.resetSupportAttributes = function() {
}
}
-BBTag.Support.prototype.populateByBools = function(bb50, bb60, bb70, pb10, pb20, ripple, bb10x) {
+BBTag.Support.prototype.populateByBools = function(bb50, bb60, bb70, pb10, pb20, bb10x, ripple ) {
this.bb50 |= bb50;
this.bb60 |= bb60;
this.bb70 |= bb70;
this.pb10 |= pb10;
this.pb20 |= pb20;
- this.ripple |= ripple;
this.bb10x |= bb10x;
+ this.ripple |= ripple;
this.common |= bb50 && bb60 && bb70 && pb10 && pb20 && bb10x;
this.resetSupportAttributes();
};
@@ -157,13 +157,13 @@ BBTag.Support.prototype.populateBySymbol = function(symbol) {
var PB10 = symbol.comment.getTag("PB10").length;
var PB20 = symbol.comment.getTag("PB20").length;
var PB10P = symbol.comment.getTag("PB10+").length;
- var RIPPLE = symbol.comment.getTag("RIPPLE").length;
var BB10X = symbol.comment.getTag("BB10X").length;
+ var RIPPLE = symbol.comment.getTag("RIPPLE").length;
symbol.support = new BBTag.Support();
symbol.support.populateByBools((BB50 || BB50P),
(BB50P || BB60P || BB60), (BB50P || BB60P || BB60 || BB70P || BB70),
- (PB10 || PB10P), (PB20 || PB10P), RIPPLE, BB10X);
+ (PB10 || PB10P), (PB20 || PB10P), BB10X, RIPPLE );
this.populateBySupport(symbol.support);
}
}
@@ -181,11 +181,11 @@ BBTag.Support.prototype.populateByString = function(string) {
var PB10 = string.equals("PB10");
var PB10P = string.equals("PB10+");
var PB20 = string.equals("PB20");
- var RIPPLE = string.equals("RIPPLE");
var BB10X = string.equals("BB10X");
-
+ var RIPPLE = string.equals("RIPPLE");
+
this.populateByBools((BB50 || BB50P), (BB50P || BB60P || BB60),
- (BB50P || BB60P || BB60 || BB70P || BB70), (PB10 || PB10P),(PB20 || PB10P), RIPPLE, BB10X);
+ (BB50P || BB60P || BB60 || BB70P || BB70), (PB10 || PB10P),(PB20 || PB10P), BB10X, RIPPLE );
}
};
@@ -195,8 +195,8 @@ BBTag.Support.prototype.populateBySupport = function(support) {
this.bb70 |= support.bb70;
this.pb10 |= support.pb10;
this.pb20 |= support.pb20;
- this.ripple |= support.ripple;
this.bb10x |= support.bb10x;
+ this.ripple |= support.ripple;
this.common |= support.common;
this.resetSupportAttributes();
};

0 comments on commit 0364895

Please sign in to comment.