Skip to content

Commit 7ec0668

Browse files
authored
Merge pull request #64 from wmde/docs
Add some documentation lines
2 parents e8414cf + a11ab27 commit 7ec0668

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Map.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ $.extend( SELF.prototype, {
6666
/**
6767
* @param {string} key
6868
* @param {Object} item
69+
* @throws {Error} if the item is not an instance of the constructor registered with the Map
70+
* object.
6971
* @return {boolean}
7072
*/
7173
hasItem: function( key, item ) {
@@ -77,6 +79,8 @@ $.extend( SELF.prototype, {
7779
* @param {string} key
7880
* @param {Object} item
7981
*
82+
* @throws {Error} if the item is not an instance of the constructor registered with the Map
83+
* object.
8084
* @throws {Error} if an item for the specified key is registered already.
8185
*/
8286
addItem: function( key, item ) {
@@ -144,6 +148,8 @@ $.extend( SELF.prototype, {
144148
/**
145149
* @param {string} key
146150
* @param {Object} item
151+
* @throws {Error} if the item is not an instance of the constructor registered with the Map
152+
* object.
147153
*/
148154
setItem: function( key, item ) {
149155
this._assertIsItem( item );

src/Statement.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ var SELF = wb.datamodel.Statement = function WbDataModelStatement( claim, refere
2121
this.setRank( rank === undefined ? wb.datamodel.Statement.RANK.NORMAL : rank );
2222
};
2323

24+
/**
25+
* @class wikibase.datamodel.Statement
26+
*/
2427
$.extend( SELF.prototype, {
2528
/**
2629
* @property {wikibase.datamodel.Claim}

0 commit comments

Comments
 (0)