Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8948

Show
Ignore:
Timestamp:
02/29/08 06:53:30 (6 months ago)
Author:
tobie
Message:

prototype: mark Hash.toJSON() as removed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/CHANGELOG

    r8930 r8948  
     1* deprecation extension: mark Hash.toJSON() as removed. [Tobie Langel] 
     2 
    13* deprecation extension: mark Class.create() used without arguments as deprecated. [Tobie Langel] 
    24 
  • spinoffs/prototype/trunk/ext/deprecation/deprecation_test.html

    r8930 r8948  
    220220      assertDeprecationNotified('Hash.toQueryString has been deprecated.\n' +  
    221221        'Use the instance method Hash#toQueryString or Object.toQueryString instead.'); 
     222 
     223     Hash.toJSON({}); 
     224      assertRemovalNotified('Hash.toJSON has been removed.\n' +  
     225        'Use the instance method Hash#toJSON or Object.toJSON instead.'); 
    222226       
    223227      var h = $H({ foo: 2 }); 
  • spinoffs/prototype/trunk/ext/deprecation/deprecation.js

    r8930 r8948  
    278278   
    279279  { 
     280    methodName: 'toJSON', 
     281    namespace: Hash, 
     282    message: 'Hash.toJSON has been removed.\n' +  
     283      'Use the instance method Hash#toJSON or Object.toJSON instead.', 
     284    type: 'removal' 
     285  }, 
     286   
     287  { 
    280288    methodName: 'remove', 
    281289    namespace: Hash.prototype,