---
layout: api
title: "v2.2.0 JavaScript Library: L.noConflict"
categories: api
version: v2.2.0
permalink: /api/v2.2.0/l-noconflict/
---
<h2 id="noconflict">noConflict</h2>

<p>This method restores the L global variable to the original value it had before Leaflet inclusion, and returns the real Leaflet namespace so you can put it elsewhere, like this:<p>

<pre><code>// L points to some other library
...
// you include Leaflet, it replaces the L variable to Leaflet namespace

var Leaflet = L.noConfl