Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.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
nexedi
converse.js
Commits
bd0d7ace
Commit
bd0d7ace
authored
Feb 27, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old, deprecated API methods. updates #46
parent
387bb6f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
converse.js
converse.js
+0
-36
No files found.
converse.js
View file @
bd0d7ace
...
...
@@ -5350,42 +5350,6 @@
'
$msg
'
:
$msg
,
'
_
'
:
_
,
'
b64_sha1
'
:
b64_sha1
},
// Deprecated API methods
'
getBuddy
'
:
function
(
jid
)
{
converse
.
log
(
'
WARNING: the "getBuddy" API method has been deprecated. Please use "contacts.get" instead
'
);
return
this
.
contacts
.
get
(
jid
);
},
'
getChatBox
'
:
function
(
jid
)
{
converse
.
log
(
'
WARNING: the "getChatBox" API method has been deprecated. Please use "chats.get" instead
'
);
return
this
.
chats
.
get
(
jid
);
},
'
openChatBox
'
:
function
(
jid
)
{
converse
.
log
(
'
WARNING: the "openChatBox" API method has been deprecated. Please use "chats.get(jid).open()" instead
'
);
var
chat
=
this
.
chats
.
get
(
jid
);
if
(
chat
)
{
chat
.
open
();
}
return
chat
;
},
'
getRID
'
:
function
()
{
converse
.
log
(
'
WARNING: the "getRID" API method has been deprecated. Please use "tokens.get(
\'
rid
\'
)" instead
'
);
return
this
.
tokens
.
get
(
'
rid
'
);
},
'
getSID
'
:
function
()
{
converse
.
log
(
'
WARNING: the "getSID" API method has been deprecated. Please use "tokens.get(
\'
sid
\'
)" instead
'
);
return
this
.
tokens
.
get
(
'
sid
'
);
},
'
once
'
:
function
(
evt
,
handler
)
{
converse
.
log
(
'
WARNING: the "one" API method has been deprecated. Please use "listen.once" instead
'
);
return
this
.
listen
.
once
(
evt
,
handler
);
},
'
on
'
:
function
(
evt
,
handler
)
{
converse
.
log
(
'
WARNING: the "on" API method has been deprecated. Please use "listen.on" instead
'
);
return
this
.
listen
.
on
(
evt
,
handler
);
},
'
off
'
:
function
(
evt
,
handler
)
{
converse
.
log
(
'
WARNING: the "off" API method has been deprecated. Please use "listen.not" instead
'
);
return
this
.
listen
.
not
(
evt
,
handler
);
}
};
}));
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