Cleanup example modules (todo: add in documentation)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user