prototype: mark Hash.toJSON() as removed.
This commit is contained in:
parent
088c049885
commit
fffb3c1e99
|
@ -1,3 +1,5 @@
|
|||
* deprecation extension: mark Hash.toJSON() as removed. [Tobie Langel]
|
||||
|
||||
* deprecation extension: mark Class.create() used without arguments as deprecated. [Tobie Langel]
|
||||
|
||||
* deprecation extension: mark Event.unloadCache as removed rather than deprecated. [Tobie Langel]
|
||||
|
|
|
@ -276,6 +276,14 @@ DeprecationNotifier.init([
|
|||
'Use the instance method Hash#toQueryString or Object.toQueryString instead.'
|
||||
},
|
||||
|
||||
{
|
||||
methodName: 'toJSON',
|
||||
namespace: Hash,
|
||||
message: 'Hash.toJSON has been removed.\n' +
|
||||
'Use the instance method Hash#toJSON or Object.toJSON instead.',
|
||||
type: 'removal'
|
||||
},
|
||||
|
||||
{
|
||||
methodName: 'remove',
|
||||
namespace: Hash.prototype,
|
||||
|
|
|
@ -219,6 +219,10 @@
|
|||
Hash.toQueryString({});
|
||||
assertDeprecationNotified('Hash.toQueryString has been deprecated.\n' +
|
||||
'Use the instance method Hash#toQueryString or Object.toQueryString instead.');
|
||||
|
||||
Hash.toJSON({});
|
||||
assertRemovalNotified('Hash.toJSON has been removed.\n' +
|
||||
'Use the instance method Hash#toJSON or Object.toJSON instead.');
|
||||
|
||||
var h = $H({ foo: 2 });
|
||||
|
||||
|
|
Loading…
Reference in New Issue