Commit e403eed5 by Dmitry Baranovskiy

Merge pull request #430 from rzurad/nsdocfix

Updating documentation for removal of namespaced plugins in 2.0
parents 0c722d58 34793948
...@@ -346,9 +346,10 @@ ...@@ -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 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 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 * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a
* inside the `fn` object — methods will be run in the context of canvas anyway. You should alter * Raphaël instance is created, otherwise it will take no effect. Please note that the
* the `fn` object before a Raphaël instance is created, otherwise it will take no effect. * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to
* ensure any namespacing ensures proper context.
> Usage > Usage
| Raphael.fn.arrow = function (x1, y1, x2, y2, size) { | Raphael.fn.arrow = function (x1, y1, x2, y2, size) {
| return this.path( ... ); | return this.path( ... );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment