Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
jio
Commits
f3451213
Commit
f3451213
authored
Nov 22, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming getParam to parametersToObject
parent
e5f9d354
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/jio/jio.outro.js
src/jio/jio.outro.js
+6
-6
No files found.
src/jio/jio.outro.js
View file @
f3451213
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
}
}
});
});
priv
.
getParam
=
function
(
list
,
nodoc
)
{
priv
.
parametersToObject
=
function
(
list
,
nodoc
)
{
var
param
=
{},
i
=
0
;
var
param
=
{},
i
=
0
;
if
(
!
nodoc
)
{
if
(
!
nodoc
)
{
param
.
doc
=
list
[
i
];
param
.
doc
=
list
[
i
];
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
Object
.
defineProperty
(
that
,
"
post
"
,{
Object
.
defineProperty
(
that
,
"
post
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
function
()
{
var
param
=
priv
.
getParam
(
arguments
);
var
param
=
priv
.
parametersToObject
(
arguments
);
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
priv
.
addJob
(
postCommand
,{
priv
.
addJob
(
postCommand
,{
doc
:
param
.
doc
,
doc
:
param
.
doc
,
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
Object
.
defineProperty
(
that
,
"
put
"
,{
Object
.
defineProperty
(
that
,
"
put
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
function
()
{
var
param
=
priv
.
getParam
(
arguments
);
var
param
=
priv
.
parametersToObject
(
arguments
);
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
priv
.
addJob
(
putCommand
,{
priv
.
addJob
(
putCommand
,{
doc
:
param
.
doc
,
doc
:
param
.
doc
,
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
Object
.
defineProperty
(
that
,
"
get
"
,{
Object
.
defineProperty
(
that
,
"
get
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
function
()
{
var
param
=
priv
.
getParam
(
arguments
);
var
param
=
priv
.
parametersToObject
(
arguments
);
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
3
;
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
3
;
param
.
options
.
metadata_only
=
(
param
.
options
.
metadata_only
=
(
param
.
options
.
metadata_only
!==
undefined
?
param
.
options
.
metadata_only
!==
undefined
?
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
Object
.
defineProperty
(
that
,
"
remove
"
,{
Object
.
defineProperty
(
that
,
"
remove
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
function
()
{
var
param
=
priv
.
getParam
(
arguments
);
var
param
=
priv
.
parametersToObject
(
arguments
);
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
0
;
priv
.
addJob
(
removeCommand
,{
priv
.
addJob
(
removeCommand
,{
doc
:
param
.
doc
,
doc
:
param
.
doc
,
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
Object
.
defineProperty
(
that
,
"
allDocs
"
,{
Object
.
defineProperty
(
that
,
"
allDocs
"
,{
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
configurable
:
false
,
enumerable
:
false
,
writable
:
false
,
value
:
function
()
{
function
()
{
var
param
=
priv
.
getParam
(
arguments
,
'
no doc
'
);
var
param
=
priv
.
parametersToObject
(
arguments
,
'
no doc
'
);
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
3
;
param
.
options
.
max_retry
=
param
.
options
.
max_retry
||
3
;
param
.
options
.
metadata_only
=
(
param
.
options
.
metadata_only
=
(
param
.
options
.
metadata_only
!==
undefined
?
param
.
options
.
metadata_only
!==
undefined
?
...
...
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