From b8635ebddec443d3a7b6bf0156b4510e5ede5670 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Mon, 23 Mar 2009 23:35:13 +0100 Subject: [PATCH] deprecation extension: Modified deprecation notice for Array#reduce. --- ext/update_helper/prototype_update_helper.html | 3 ++- ext/update_helper/prototype_update_helper.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/update_helper/prototype_update_helper.html b/ext/update_helper/prototype_update_helper.html index af5fda4..b2d355d 100644 --- a/ext/update_helper/prototype_update_helper.html +++ b/ext/update_helper/prototype_update_helper.html @@ -268,7 +268,8 @@ a.reduce(function(){}); this.assertErrorNotified('Array#reduce is no longer supported.\n' + - 'This is due to an infortunate naming collision with Mozilla\'s soon to be standardized (as of EcmaScript 3.1) Array#reduce implementation (whhich is similar to Prototype\'s Array#inject).') + 'This is due to an infortunate naming collision with Mozilla\'s own implementation of Array#reduce which differs completely from Prototype\'s implementation (it\'s in fact similar to Prototype\'s Array#inject).\n' + + 'Mozilla\'s Array#reduce is already implemented in Firefox 3 (as part of JavaScript 1.8) and is about to be standardized in EcmaScript 3.1.') }, testClass: function() { diff --git a/ext/update_helper/prototype_update_helper.js b/ext/update_helper/prototype_update_helper.js index 9393ed5..e5107ca 100644 --- a/ext/update_helper/prototype_update_helper.js +++ b/ext/update_helper/prototype_update_helper.js @@ -257,7 +257,8 @@ var prototypeUpdateHelper = new UpdateHelper([ methodName: 'reduce', namespace: Array.prototype, message: 'Array#reduce is no longer supported.\n' + - 'This is due to an infortunate naming collision with Mozilla\'s soon to be standardized (as of EcmaScript 3.1) Array#reduce implementation (whhich is similar to Prototype\'s Array#inject).', + 'This is due to an infortunate naming collision with Mozilla\'s own implementation of Array#reduce which differs completely from Prototype\'s implementation (it\'s in fact similar to Prototype\'s Array#inject).\n' + + 'Mozilla\'s Array#reduce is already implemented in Firefox 3 (as part of JavaScript 1.8) and is about to be standardized in EcmaScript 3.1.', type: 'error' },