mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 03:00:11 +00:00
No need for jquery
This commit is contained in:
parent
6374fa4c21
commit
fb45991a24
2 changed files with 5 additions and 6 deletions
|
@ -46,7 +46,6 @@
|
|||
<script src="//cdnjs.cloudflare.com/ajax/libs/mithril/0.1.28/mithril.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/Cookies.js/1.1.0/cookies.min.js"></script>
|
||||
<script src="js/melpa.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* global window */
|
||||
(function(m, document, _, moment, jQuery, Cookies){
|
||||
(function(m, document, _, moment, Cookies){
|
||||
"use strict";
|
||||
|
||||
// TODO Disqus
|
||||
|
@ -455,14 +455,14 @@
|
|||
return m("span", ctrl.archiveName());
|
||||
};
|
||||
|
||||
jQuery(window).load(function() {
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
document.title = (new melpa.archivename.controller()).archiveName();
|
||||
jQuery(".archive-name").each(function(i, e) {
|
||||
_.map(document.getElementsByClassName('archive-name'), function (e) {
|
||||
// jshint unused: false
|
||||
m.module(e, melpa.archivename);
|
||||
});
|
||||
if (melpa.stable()) {
|
||||
jQuery("html").addClass("stable");
|
||||
document.getElementsByTagName("html")[0].className += " stable";
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -536,4 +536,4 @@
|
|||
"/getting-started": melpa.gettingstarted,
|
||||
"/:package": melpa.packagedetails
|
||||
});
|
||||
})(window.m, window.document, window._, window.moment, window.jQuery, window.Cookies);
|
||||
})(window.m, window.document, window._, window.moment, window.Cookies);
|
||||
|
|
Loading…
Reference in a new issue