Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed History.js false positive in Firefox.

  • Loading branch information...
commit 554bce57c9c2a8d675d0d0fb123875de282c1102 1 parent b08aaca
Fabian Beiner authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 Source/WTFramework.src.js
View
18 Source/WTFramework.src.js
@@ -14,7 +14,7 @@
this.verPath = verPath;
this.cdnjsName = cdnjsName || '';
}
-
+
var fwList = {
'Ace' : new fwItem('ace', 'ace'),
'ActiveJS' : new fwItem('ActiveSupport'),
@@ -47,7 +47,7 @@
'Handlebars' : new fwItem('Handlebars.VERSION', 'handlebars.js'),
'Head JS' : new fwItem('head.js', 'headjs'),
'Highcharts JS' : new fwItem('Highcharts.version', 'highcharts'),
- 'History.js' : new fwItem('History', 'History.js'),
+ 'History.js' : new fwItem('History.Adapter', 'History.js'),
'html5shiv' : new fwItem('html5', 'html5shiv'),
'ICanHaz.js' : new fwItem('ich.VERSION', 'ICanHaz.js'),
'JS State Machine' : new fwItem('StateMachine.VERSION', 'javascript-state-machine'),
@@ -106,7 +106,7 @@
'Zepto' : new fwItem('Zepto', 'zepto'),
'ZK' : new fwItem('zk.version')
};
-
+
var fwStyleLi = {
'cursor' : 'pointer',
'text-align' : 'left',
@@ -128,7 +128,7 @@
'clear' : 'both',
'min-width' : '170px'
};
-
+
var fwStyleUl = {
'position' : 'fixed',
'padding' : '0',
@@ -166,17 +166,17 @@
s;
// Show additional info from cdnjs
- var cdnjsInfo = (fwList[fwName] && pkgs[fwList[fwName].cdnjsName])
+ var cdnjsInfo = (fwList[fwName] && pkgs[fwList[fwName].cdnjsName])
? pkgs[fwList[fwName].cdnjsName] : null;
var curVer = (cdnjsInfo) ? cdnjsInfo.version : null,
homepageUrl = (cdnjsInfo) ? cdnjsInfo.homepage : '#',
description = (cdnjsInfo) ? cdnjsInfo.description : '';
-
+
if (curVer !== null) {
description += ' (Current version: ' + curVer + ')';
}
-
+
fwLi = document.createElement('li');
fwLink = document.createElement('a');
@@ -191,7 +191,7 @@
if (fwVersion && (fwVersion != '%build%')) {
fwLi.appendChild(document.createTextNode(' ('));
-
+
if (curVer !== null) {
var verSpan = document.createElement('span');
verSpan.style.color = (curVer != fwVersion) ? '#f33' : '#0f0';
@@ -200,7 +200,7 @@
} else {
fwLi.appendChild(document.createTextNode(fwVersion));
}
-
+
fwLi.appendChild(document.createTextNode(')'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.