Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Removed unused functions; started to simplify JS inclusions.

AuthorDave Jarvis <email>
Date2015-01-15 16:43:31 GMT-0800
Commit03d8ea77606d7a07e95529dc1ae29e7668743844
Parent8e7f479
source/js/common.js
*/
-/*jslint browser: true, devel: true, white: true, unparam: true, plusplus: true */
+/*jslint browser: true, devel: true, white: true, unparam: true */
/*global $, jQuery, ActiveXObject */
var i;
- for( i = 0; i < REQ_OBJECTS.length; i++ ) {
+ for( i = 0; i < REQ_OBJECTS.length; i += 1 ) {
try {
return REQ_OBJECTS[ i ]();
var src = type + '/' + file.substr( 0, file.lastIndexOf( '.' ) ) + '.' + type;
include( src, type, callback );
-}
-
-/**
- * Returns the last directory name from the URL so that relative files can
- * be referenced.
- */
-function path() {
- return location.pathname.split( '/' ).pop();
}
-include_file( path(), 'css' );
-include_file( path(), 'js' );
source/js/support.js
"use strict";
-include_file( '/js/editor.min.js', 'js', function() {
- aloha( document.querySelector('.support') );
-});
+aloha( document.querySelector('.support') );
source/xsl/support.xsl
<artefacts>
<css>support</css>
- <js>common</js>
+ <js>editor.min</js>
<js>support</js>
</artefacts>
Delta4 lines added, 16 lines removed, 12-line decrease