Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.core
Commits
8fae249e
Commit
8fae249e
authored
Jun 01, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix search method: remove clean list call
parent
2bb1d0e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
jquery.urlJS/src/jquery.urljs.js
jquery.urlJS/src/jquery.urljs.js
+0
-1
jquery.urlJS/test/jquery.urljs_test.js
jquery.urlJS/test/jquery.urljs_test.js
+3
-0
No files found.
jquery.urlJS/src/jquery.urljs.js
View file @
8fae249e
...
...
@@ -55,7 +55,6 @@
hash
[
extracted
.
keys
[
k
]]
=
result
[
k
];
}
this
.
current
=
this
.
list
[
i
][
j
];
this
.
clean
(
i
+
1
);
this
.
list
[
i
][
j
].
callback
(
hash
);
}
j
+=
1
;
...
...
jquery.urlJS/test/jquery.urljs_test.js
View file @
8fae249e
...
...
@@ -47,6 +47,7 @@ $(function () {
url2
=
{
'
route
'
:
'
#/new/path/1
'
,
'
param1
'
:
'
foo1
'
},
url3
=
{
'
route
'
:
'
#/new/path/1/foo
'
,
'
param1
'
:
'
foo1
'
},
spy
=
sinon
.
spy
();
$
.
router
.
routes
.
add
(
'
#/new/path
'
,
0
,
spy
);
$
.
router
.
routes
.
add
(
'
#/new/path/:id
'
,
1
,
spy
);
$
.
router
.
routes
.
add
(
'
#/new/path/:id/:other
'
,
2
,
spy
);
...
...
@@ -57,10 +58,12 @@ $(function () {
$
.
router
.
routes
.
search
(
url2
);
delete
url2
.
route
;
$
.
extend
(
url2
,
{
'
id
'
:
'
1
'
});
ok
(
spy
.
calledWith
(
url2
));
$
.
router
.
routes
.
search
(
url3
);
delete
url3
.
route
;
$
.
extend
(
url3
,
{
'
id
'
:
'
1
'
,
'
other
'
:
'
foo
'
});
ok
(
spy
.
calledWith
(
url3
));
ok
(
spy
.
calledThrice
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment