Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed History.js false positive in Firefox.

  • Loading branch information...
commit 554bce57c9c2a8d675d0d0fb123875de282c1102 1 parent b08aaca
Fabian Beiner authored

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. +9 9 Source/WTFramework.src.js
18 Source/WTFramework.src.js
@@ -14,7 +14,7 @@
14 14 this.verPath = verPath;
15 15 this.cdnjsName = cdnjsName || '';
16 16 }
17   -
  17 +
18 18 var fwList = {
19 19 'Ace' : new fwItem('ace', 'ace'),
20 20 'ActiveJS' : new fwItem('ActiveSupport'),
@@ -47,7 +47,7 @@
47 47 'Handlebars' : new fwItem('Handlebars.VERSION', 'handlebars.js'),
48 48 'Head JS' : new fwItem('head.js', 'headjs'),
49 49 'Highcharts JS' : new fwItem('Highcharts.version', 'highcharts'),
50   - 'History.js' : new fwItem('History', 'History.js'),
  50 + 'History.js' : new fwItem('History.Adapter', 'History.js'),
51 51 'html5shiv' : new fwItem('html5', 'html5shiv'),
52 52 'ICanHaz.js' : new fwItem('ich.VERSION', 'ICanHaz.js'),
53 53 'JS State Machine' : new fwItem('StateMachine.VERSION', 'javascript-state-machine'),
@@ -106,7 +106,7 @@
106 106 'Zepto' : new fwItem('Zepto', 'zepto'),
107 107 'ZK' : new fwItem('zk.version')
108 108 };
109   -
  109 +
110 110 var fwStyleLi = {
111 111 'cursor' : 'pointer',
112 112 'text-align' : 'left',
@@ -128,7 +128,7 @@
128 128 'clear' : 'both',
129 129 'min-width' : '170px'
130 130 };
131   -
  131 +
132 132 var fwStyleUl = {
133 133 'position' : 'fixed',
134 134 'padding' : '0',
@@ -166,17 +166,17 @@
166 166 s;
167 167
168 168 // Show additional info from cdnjs
169   - var cdnjsInfo = (fwList[fwName] && pkgs[fwList[fwName].cdnjsName])
  169 + var cdnjsInfo = (fwList[fwName] && pkgs[fwList[fwName].cdnjsName])
170 170 ? pkgs[fwList[fwName].cdnjsName] : null;
171 171
172 172 var curVer = (cdnjsInfo) ? cdnjsInfo.version : null,
173 173 homepageUrl = (cdnjsInfo) ? cdnjsInfo.homepage : '#',
174 174 description = (cdnjsInfo) ? cdnjsInfo.description : '';
175   -
  175 +
176 176 if (curVer !== null) {
177 177 description += ' (Current version: ' + curVer + ')';
178 178 }
179   -
  179 +
180 180 fwLi = document.createElement('li');
181 181
182 182 fwLink = document.createElement('a');
@@ -191,7 +191,7 @@
191 191
192 192 if (fwVersion && (fwVersion != '%build%')) {
193 193 fwLi.appendChild(document.createTextNode(' ('));
194   -
  194 +
195 195 if (curVer !== null) {
196 196 var verSpan = document.createElement('span');
197 197 verSpan.style.color = (curVer != fwVersion) ? '#f33' : '#0f0';
@@ -200,7 +200,7 @@
200 200 } else {
201 201 fwLi.appendChild(document.createTextNode(fwVersion));
202 202 }
203   -
  203 +
204 204 fwLi.appendChild(document.createTextNode(')'));
205 205 }
206 206

0 comments on commit 554bce5

Please sign in to comment.
Something went wrong with that request. Please try again.