Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uritemplate-js
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
uritemplate-js
Commits
80642db3
Commit
80642db3
authored
Jan 19, 2013
by
Franz X Antesberger
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from apiaryio/master
do not add separator after last var
parents
901b8520
47bb0737
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bin/uritemplate.js
bin/uritemplate.js
+3
-3
src/VariableExpression.js
src/VariableExpression.js
+3
-3
No files found.
bin/uritemplate.js
View file @
80642db3
...
...
@@ -525,9 +525,9 @@ var VariableExpression = (function () {
for
(
index
=
0
;
index
<
this
.
varspecs
.
length
;
index
+=
1
)
{
varspec
=
this
.
varspecs
[
index
];
value
=
variables
[
varspec
.
varname
];
//
if (!isDefined(value)) {
//
continue;
//
}
if
(
!
isDefined
(
value
))
{
continue
;
}
if
(
isFirstVarspec
)
{
result
+=
this
.
operator
.
first
;
isFirstVarspec
=
false
;
...
...
src/VariableExpression.js
View file @
80642db3
...
...
@@ -70,9 +70,9 @@ var VariableExpression = (function () {
for
(
index
=
0
;
index
<
this
.
varspecs
.
length
;
index
+=
1
)
{
varspec
=
this
.
varspecs
[
index
];
value
=
variables
[
varspec
.
varname
];
//
if (!isDefined(value)) {
//
continue;
//
}
if
(
!
isDefined
(
value
))
{
continue
;
}
if
(
isFirstVarspec
)
{
result
+=
this
.
operator
.
first
;
isFirstVarspec
=
false
;
...
...
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