Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed inheritance regression introduced back when adding a base OX.Di…

…rectories.Item for documentation purposes.
  • Loading branch information...
commit e7973ac1980a61737f56d8b8b1dbc937d2ec7708 1 parent c08f813
Tim Evans authored
View
2  src/mixins/subscribable.js
@@ -475,7 +475,7 @@ OX.Mixin.Subscribable = (function () {
var handler = function () {
jidHandler.apply(that, arguments);
};
- this.connection.registerJIDHandler(uri.path, handler);
+ this.connection.registerJIDHandler(uri.path, handler, this.connection);
}
$super();
View
2  src/services/directories.js
@@ -51,7 +51,7 @@ OX.Service.Directories.mixin(/** @lends OX.Service.Directories */{
* An alias for a contact.
* @extends OX.Service.Directories.Item
*/
- AliasItem: OX.Service.Directories.extend(/** @lends OX.Service.Directories.AliasItem# */{
+ AliasItem: OX.Service.Directories.Item.extend(/** @lends OX.Service.Directories.AliasItem# */{
/**
* The XMPP URI of the alias.
* @type {OX.URI}
View
2  test/directories.js
@@ -94,6 +94,7 @@ OXTest.Directories = new YAHOO.tool.TestCase({
var item = this.Directories.itemFromElement(element.doc);
Assert.isObject(item, 'Directories.itemFromElement did not return an object.');
+ Assert.isFunction(item.id, 'item should have a function id.');
Assert.areSame('sip:hiro@example.onsip.com', item.sipURI, 'sipURI is incorrect');
Assert.areSame('Hiro Protagonist', item.name, 'name is incorrect');
@@ -105,6 +106,7 @@ OXTest.Directories = new YAHOO.tool.TestCase({
var item = this.Directories.itemFromElement(element.doc);
Assert.isObject(item, 'Directories.itemFromElement did not return an object.');
+ Assert.isFunction(item.id, 'item should have a function id.');
Assert.isObject(item.xmppURI, 'item xmppURI is not an object');
Assert.areSame('sip:7002@example.onsip.com', item.sipURI, 'sipURI is incorrect');
Please sign in to comment.
Something went wrong with that request. Please try again.