From: Jan Schneider Date: Wed, 30 Jun 2010 15:59:50 +0000 (+0200) Subject: Fix BC in Hash.toJSON(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e9da307989792c91670476750a2ba85fc7faf910;p=horde.git Fix BC in Hash.toJSON(). --- diff --git a/horde/js/prototype.js b/horde/js/prototype.js index 1f66e012e..fb0549dc5 100644 --- a/horde/js/prototype.js +++ b/horde/js/prototype.js @@ -1304,6 +1304,10 @@ var Hash = Class.create(Enumerable, (function() { return new Hash(this); } + function toJSON() { + return Object.toJSON(this._object); + } + return { initialize: initialize, _each: _each, @@ -1319,7 +1323,7 @@ var Hash = Class.create(Enumerable, (function() { update: update, toQueryString: toQueryString, inspect: inspect, - toJSON: toObject, + toJSON: toJSON, clone: clone }; })());