From a8be54b0fe59296e7a04e58e9933e4fbc2743f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 9 Dec 2011 00:09:04 +0100 Subject: [PATCH] deprecate Rico itself --- lib/Rico/Color.js | 4 ++++ lib/Rico/Corner.js | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Rico/Color.js b/lib/Rico/Color.js index 6741e7c014..12f5284f77 100644 --- a/lib/Rico/Color.js +++ b/lib/Rico/Color.js @@ -1,4 +1,5 @@ /** + * @requires OpenLayers/Console.js * @requires OpenLayers/BaseTypes/Class.js * @requires OpenLayers/BaseTypes/Element.js */ @@ -10,6 +11,9 @@ * * This file is licensed under the Apache License, Version 2.0. */ + +OpenLayers.Console.warn("OpenLayers.Rico is deprecated"); + OpenLayers.Rico = OpenLayers.Rico || {}; OpenLayers.Rico.Color = OpenLayers.Class({ diff --git a/lib/Rico/Corner.js b/lib/Rico/Corner.js index 729017b130..e5479e5b35 100644 --- a/lib/Rico/Corner.js +++ b/lib/Rico/Corner.js @@ -1,4 +1,5 @@ /** + * @requires OpenLayers/Console.js * @requires Rico/Color.js */ @@ -22,6 +23,9 @@ * permissions * and limitations under the License. * */ + +OpenLayers.Console.warn("OpenLayers.Rico is deprecated"); + OpenLayers.Rico = OpenLayers.Rico || {}; OpenLayers.Rico.Corner = { @@ -332,4 +336,4 @@ OpenLayers.Rico.Corner = { _isTopRounded: function() { return this._hasString(this.options.corners, "all", "top", "tl", "tr"); }, _isBottomRounded: function() { return this._hasString(this.options.corners, "all", "bottom", "bl", "br"); }, _hasSingleTextChild: function(el) { return el.childNodes.length == 1 && el.childNodes[0].nodeType == 3; } -}; \ No newline at end of file +};