Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
nexedi
officejs
Commits
3c4f9683
Commit
3c4f9683
authored
May 24, 2012
by
Tristan Cavelier
Committed by
Sebastien Robin
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug: error message when parameter is undefined.
parent
27646bab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
OfficeJS/src/jio.js
OfficeJS/src/jio.js
+16
-5
No files found.
OfficeJS/src/jio.js
View file @
3c4f9683
...
...
@@ -925,6 +925,17 @@ var JIO =
var
that
=
{},
priv
=
{};
priv
.
wrongParametersError
=
function
(
settings
)
{
var
m
=
'
Method:
'
+
settings
.
method
+
'
, One or some parameters are undefined.
'
;
console
.
error
(
m
);
settings
.
callback
({
status
:
'
fail
'
,
error
:
{
status
:
0
,
statusText
:
'
Undefined Parameter
'
,
message
:
m
}});
return
null
;
};
//// Getters Setters
that
.
getID
=
function
()
{
return
priv
.
id
;
...
...
@@ -1036,7 +1047,7 @@ var JIO =
settings
.
storage
&&
settings
.
applicant
)
{
return
priv
.
queue
.
createJob
(
settings
);
}
return
null
;
return
priv
.
wrongParametersError
(
settings
)
;
};
that
.
saveDocument
=
function
(
options
)
{
...
...
@@ -1068,7 +1079,7 @@ var JIO =
settings
.
storage
&&
settings
.
applicant
)
{
return
priv
.
queue
.
createJob
(
settings
);
}
return
null
;
return
priv
.
wrongParametersError
(
settings
)
;
};
that
.
loadDocument
=
function
(
options
)
{
...
...
@@ -1105,7 +1116,7 @@ var JIO =
settings
.
storage
&&
settings
.
applicant
)
{
return
priv
.
queue
.
createJob
(
settings
);
}
return
null
;
return
priv
.
wrongParametersError
(
settings
)
;
};
that
.
getDocumentList
=
function
(
options
)
{
...
...
@@ -1138,7 +1149,7 @@ var JIO =
if
(
that
.
isReady
()
&&
settings
.
storage
&&
settings
.
applicant
)
{
return
priv
.
queue
.
createJob
(
settings
);
}
return
null
;
return
priv
.
wrongParametersError
(
settings
)
;
};
that
.
removeDocument
=
function
(
options
)
{
...
...
@@ -1168,7 +1179,7 @@ var JIO =
settings
.
storage
&&
settings
.
applicant
)
{
return
priv
.
queue
.
createJob
(
settings
);
}
return
null
;
return
priv
.
wrongParametersError
(
settings
)
;
};
//// end Methods
...
...
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