Add namespace

Add a namespace to allow storing the colorpicker into "namespace" instead "window".
pull/47/head
Ruben Almeida 7 years ago committed by GitHub
parent b09e9c9b3c
commit f075a98153

@ -26,6 +26,9 @@ Calling the colorPicker on all inputs with the calssName 'color': <pre>$('input.
<input class="color" value="hsl(32, 95%, 23%)" />
</p>
<!-- <button onclick="$colors.colorPicker('destroy')">destroy</button> -->
<script type="text/javascript">
var CPNamespace = window;
</script>
<script type="text/javascript" src="../colors.js"></script>
<script type="text/javascript" src="../colorPicker.data.js"></script>
<script type="text/javascript" src="../colorPicker.js"></script>

Loading…
Cancel
Save