Minor cleanup.

This commit is contained in:
Jürg Lehni 2016-01-18 11:03:30 +01:00
parent 8f0a2f37a0
commit 6a0222ff21
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,6 @@ gulp.task('build',
})
);
// Get the date of the last commit from git.
buildNames.forEach(function(name) {
gulp.task('build:' + name, ['build:start'], function() {
return gulp.src('src/paper.js')

View file

@ -14,12 +14,13 @@
// the browser, avoiding the step of having to manually preprocess it after each
// change. This is very useful during development of the library itself.
if (typeof window === 'object') {
// Browser based loading through Prepro.js:
/* jshint -W082 */
function load(src) {
document.write('<script src="' + src + '"></script>');
}
// Browser based loading through Prepro.js:
if (!window.include) {
// Get the last script tag and assume it's the one that loaded this file
// then get its src attribute and figure out the location of our root.