* Remove odd MWDeprecationWarning prefix.
* Don't mention "property". All accessors targets are properties
and saying so doesn't add much value (some of the targets are
more thought of as constructors or methods), the name should
be sufficient.
Change-Id: Ifc77d176fa830feccf13350b4fd9dbf8cb8d8046
log.deprecate = !Object.defineProperty ? function ( obj, key, val ) {
obj[key] = val;
} : function ( obj, key, val, msg ) {
- msg = 'MWDeprecationWarning: Use of "' + key + '" property is deprecated.' +
- ( msg ? ( ' ' + msg ) : '' );
+ msg = 'Use of "' + key + '" is deprecated.' + ( msg ? ( ' ' + msg ) : '' );
try {
Object.defineProperty( obj, key, {
configurable: true,