From 4e21a3b54b72894d409891b622c9d495d79f0ec2 Mon Sep 17 00:00:00 2001 From: Jan Pieter Waagmeester Date: Thu, 26 Feb 2015 15:58:22 +0100 Subject: [PATCH] Update PLUGIN-GUIDE.md whitespace in plugin example --- PLUGIN-GUIDE.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PLUGIN-GUIDE.md b/PLUGIN-GUIDE.md index f7c35116..742583d0 100644 --- a/PLUGIN-GUIDE.md +++ b/PLUGIN-GUIDE.md @@ -168,12 +168,11 @@ You can add support for AMD/CommonJS loaders to your Leaflet plugin by following // define a Common JS module that relies on 'leaflet' } else if (typeof exports === 'object') { module.exports = factory(require('leaflet')); - } // attach your plugin to the global 'L' variable - if(typeof window !== 'undefined' && window.L){ - window.L.YourPlugin = factory(L); + if (typeof window !== 'undefined' && window.L) { + window.L.YourPlugin = factory(L); } }(function (L) { var MyLeafletPlugin = {};