Cleanup example modules (todo: add in documentation)

This commit is contained in:
Dominic Lord
2017-03-02 08:53:44 -05:00
parent c9cedfa727
commit cc547e484b
2 changed files with 4 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/* jshint esnext: true */
import { $document, $window, $html, $body } from '../utils/environment';
let uid = 0;
/**
* Abstract Module
@@ -10,6 +10,9 @@ export default class
{
this.$el = options.$el || null;
this.el = options.el || null;
// Generate a unique module identifier
this.uid = 'm-' + uid++;
}
destroy()

View File

@@ -15,12 +15,6 @@
<link rel="stylesheet" href="assets/styles/main.css">
</head>
<body>
<div data-module="Title">
<h1 class="js-label">Locomotive's Boilerplate</h1>
</div>
<button data-module="Button" type="button" value="Clicked! Title destroyed">Change value and destroy Title()</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/scripts/jquery-3.0.0.min.js"><\/script>')</script>
<script src="assets/scripts/vendors.js"></script>