Skip to content

Commit 21bbc2e

Browse files
committed
(fix) Tests: Replace resource loader with AMD
1 parent cf94731 commit 21bbc2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/helper/jquery.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ if( !window.helper ) {
66

77
window.helper.jqueryUrl = function() {
88

9-
var current, url, version,
9+
var current, length, url, version,
1010
i = 0,
11-
length = parts.length,
1211
parts = document.location.search.slice( 1 ).split( "&" );
1312

14-
for ( ; i < length; i++ ) {
13+
for ( length = parts.length ; i < length; i++ ) {
1514
current = parts[ i ].split( "=" );
1615
if ( current[ 0 ] === "jquery" ) {
1716
version = current[ 1 ];

0 commit comments

Comments
 (0)