projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37afb5
)
Fix BC in Hash.toJSON().
author
Jan Schneider
<jan@horde.org>
Wed, 30 Jun 2010 15:59:50 +0000
(17:59 +0200)
committer
Jan Schneider
<jan@horde.org>
Wed, 30 Jun 2010 15:59:50 +0000
(17:59 +0200)
horde/js/prototype.js
patch
|
blob
|
history
diff --git
a/horde/js/prototype.js
b/horde/js/prototype.js
index
1f66e01
..
fb0549d
100644
(file)
--- 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: to
Object
,
+ toJSON: to
JSON
,
clone: clone
};
})());