From 34793948c28b09fb7ce33e286c24f8b7586a259b Mon Sep 17 00:00:00 2001 From: Richard Zurad Date: Sun, 23 Oct 2011 22:25:28 +0000 Subject: [PATCH] Updating documentation so that the removal of plugin namespacing in 2.0 is stated. --- raphael.core.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/raphael.core.js b/raphael.core.js index 39ff7e2..c0c1879 100644 --- a/raphael.core.js +++ b/raphael.core.js @@ -346,9 +346,10 @@ ** * You can add your own method to the canvas. For example if you want to draw a pie chart, * you can create your own pie chart function and ship it as a Raphaël plugin. To do this - * you need to extend the `Raphael.fn` object. Please note that you can create your own namespaces - * inside the `fn` object — methods will be run in the context of canvas anyway. You should alter - * the `fn` object before a Raphaël instance is created, otherwise it will take no effect. + * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a + * Raphaël instance is created, otherwise it will take no effect. Please note that the + * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to + * ensure any namespacing ensures proper context. > Usage | Raphael.fn.arrow = function (x1, y1, x2, y2, size) { | return this.path( ... ); @@ -4638,4 +4639,4 @@ eve.on("DOMload", function () { loaded = true; }); -})(); \ No newline at end of file +})(); -- 2.39.2