Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stefane Fermigier
jio
Commits
345b57d3
Commit
345b57d3
authored
Nov 23, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding and modifying some docstring
parent
80d160dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/jio.storage/localstorage.js
src/jio.storage/localstorage.js
+4
-2
No files found.
src/jio.storage/localstorage.js
View file @
345b57d3
...
@@ -78,6 +78,7 @@ var newLocalStorage = function ( spec, my ) {
...
@@ -78,6 +78,7 @@ var newLocalStorage = function ( spec, my ) {
var
storage_file_array_name
=
'
jio/local_file_name_array/
'
+
var
storage_file_array_name
=
'
jio/local_file_name_array/
'
+
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
;
priv
.
secured_username
+
'
/
'
+
priv
.
secured_applicationname
;
// Overriding serialized()
var
super_serialized
=
that
.
serialized
;
var
super_serialized
=
that
.
serialized
;
that
.
serialized
=
function
()
{
that
.
serialized
=
function
()
{
var
o
=
super_serialized
();
var
o
=
super_serialized
();
...
@@ -86,6 +87,7 @@ var newLocalStorage = function ( spec, my ) {
...
@@ -86,6 +87,7 @@ var newLocalStorage = function ( spec, my ) {
return
o
;
return
o
;
};
};
// Overrinding validateState()
that
.
validateState
=
function
()
{
that
.
validateState
=
function
()
{
if
(
priv
.
secured_username
)
{
if
(
priv
.
secured_username
)
{
return
''
;
return
''
;
...
@@ -115,11 +117,11 @@ var newLocalStorage = function ( spec, my ) {
...
@@ -115,11 +117,11 @@ var newLocalStorage = function ( spec, my ) {
/**
/**
* checks if a user exists in the user array.
* checks if a user exists in the user array.
* @method
userExists
* @method
doesUserExist
* @param {string} user_name The user name
* @param {string} user_name The user name
* @return {boolean} true if exist, else false
* @return {boolean} true if exist, else false
*/
*/
priv
.
userExists
=
function
(
user_name
)
{
priv
.
doesUserExist
=
function
(
user_name
)
{
var
user_array
=
priv
.
getUserArray
(),
i
,
l
;
var
user_array
=
priv
.
getUserArray
(),
i
,
l
;
for
(
i
=
0
,
l
=
user_array
.
length
;
i
<
l
;
i
+=
1
)
{
for
(
i
=
0
,
l
=
user_array
.
length
;
i
<
l
;
i
+=
1
)
{
if
(
user_array
[
i
]
===
user_name
)
{
if
(
user_array
[
i
]
===
user_name
)
{
...
...
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