fix spelling

This commit is contained in:
Patrick Arlt 2014-10-15 08:44:59 -07:00
parent 2c7eda825d
commit 957097cd2a

View File

@ -154,9 +154,9 @@ Here is an example of a `package.json` file for a Leaflet plugin.
## Module Loaders ## Module Loaders
Module loaders such as [RequireJS](http://requirejs.org/) and [Browserify](http://browserify.org/) impliment module systems like AMD (Asyncronous Module Definition) and CommonJS to allow developers to modularize and load their code. Module loaders such as [RequireJS](http://requirejs.org/) and [Browserify](http://browserify.org/) implement module systems like AMD (Asynchronous Module Definition) and CommonJS to allow developers to modularize and load their code.
You can add support for AMD/CommonJS loaders to your Leaflet plugin by follwoing this pattern based on the [Universal Module Definition](https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js) You can add support for AMD/CommonJS loaders to your Leaflet plugin by following this pattern based on the [Universal Module Definition](https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js)
```js ```js
(function (factory, window) { (function (factory, window) {
@ -179,7 +179,7 @@ You can add support for AMD/CommonJS loaders to your Leaflet plugin by follwoing
} }
}(function (L) { }(function (L) {
var MyLeafletPlugin = {}; var MyLeafletPlugin = {};
// impliment your plguin // implement your plugin
// return your plugin when you are done // return your plugin when you are done
return MyLeafletPlugin; return MyLeafletPlugin;