prototype: mark Hash.toJSON() as removed.

This commit is contained in:
Tobie Langel 2008-02-29 06:53:30 +00:00
parent 088c049885
commit fffb3c1e99
3 changed files with 14 additions and 0 deletions

View File

@ -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]

View File

@ -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,

View File

@ -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 });