Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xmpp-pane
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Adrien Dorsaz
xmpp-pane
Commits
4e43c3d4
Commit
4e43c3d4
authored
Mar 07, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discover: small updates to precise that Entity is just a XML parser
parent
4c15b7fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/xmpp/discover/entity.js
src/xmpp/discover/entity.js
+5
-6
No files found.
src/xmpp/discover/entity.js
View file @
4e43c3d4
/*
* Entity as defined by XMPP Discover
*
* This class is used to parse data received from XMPP Discover.
* Data will be saved then in the Network.
* Then instances of this class are droped.
*
* [XEP-0030](https://xmpp.org/extensions/xep-0030.html)
*/
class
Entity
{
...
...
@@ -9,11 +13,6 @@ class Entity {
// Features and protocols supported by the entity
this
.
features
=
[];
this
.
protocols
=
{};
// Items owned by the entity
this
.
items
=
{};
// Childs are Entity linked to this one
this
.
childs
=
{};
}
/*
...
...
@@ -27,7 +26,7 @@ class Entity {
let
identity
;
let
found
=
false
;
for
(
identity
of
this
.
identities
){
for
(
let
identity
of
this
.
identities
){
if
(
identity
.
type
===
type
&&
identity
.
category
===
category
)
{
...
...
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