wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/resources/experts/Property.js

Summary

Maintainability
B
4 hrs
Test Coverage
module.exports = ( function ( wb, vv ) {
    'use strict';

    var MODULE = wb.experts,
        PARENT = wb.experts.Entity;

    /**
     * `valueview` `Expert` for specifying a reference to a Wikibase `Property`.
     *
     * @see jQuery.valueview.expert
     * @see jQuery.valueview.Expert
     * @class wikibase.experts.Property
     * @extends wikibase.experts.Entity
     * @uses jQuery.valueview
     * @license GPL-2.0-or-later
     * @author H. Snater < mediawiki@snater.com >
     */
    var SELF = MODULE.Property = vv.expert( 'wikibaseproperty', PARENT, {
        /**
         * @inheritdoc
         */
        _init: function () {
            PARENT.prototype._initEntityExpert.call( this );
        }
    } );

    /**
     * @inheritdoc
     */
    SELF.TYPE = 'property';

    return SELF;

}( wikibase, $.valueview ) );