Commit c8e6f53e authored by JC Brand's avatar JC Brand

Remove require.js stuff (we'll have to use shims) and update to newest versions

parent ba201a76
This diff is collapsed.
...@@ -13,21 +13,8 @@ ...@@ -13,21 +13,8 @@
* * authorize/unauthorize * * authorize/unauthorize
* * roster versioning (xep 237) * * roster versioning (xep 237)
*/ */
Strophe.addConnectionPlugin('roster',
{
// AMD/global registrations
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([
"Libraries/strophe"
], function () {
return factory(jQuery, console);
}
);
}
}(this, function ($, console) {
Strophe.addConnectionPlugin('roster',
{
_connection: null, _connection: null,
_callbacks : [], _callbacks : [],
...@@ -142,7 +129,7 @@ ...@@ -142,7 +129,7 @@
this.items = items || []; this.items = items || [];
} }
var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs); var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs);
this._connection.sendIQ(iq, return this._connection.sendIQ(iq,
this._onReceiveRosterSuccess.bind(this, userCallback), this._onReceiveRosterSuccess.bind(this, userCallback),
this._onReceiveRosterError.bind(this, userCallback)); this._onReceiveRosterError.bind(this, userCallback));
}, },
...@@ -290,7 +277,7 @@ ...@@ -290,7 +277,7 @@
{ {
iq.c('group').t(newGroups[i]).up(); iq.c('group').t(newGroups[i]).up();
} }
this._connection.sendIQ(iq, call_back, call_back); return this._connection.sendIQ(iq, call_back, call_back);
}, },
/** Function: remove /** Function: remove
* Remove roster item * Remove roster item
...@@ -448,5 +435,4 @@ ...@@ -448,5 +435,4 @@
item.groups = groups; item.groups = groups;
} }
} }
}); });
})); \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment