mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Minor cleanup.
This commit is contained in:
parent
8f0a2f37a0
commit
6a0222ff21
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,6 @@ gulp.task('build',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Get the date of the last commit from git.
|
|
||||||
buildNames.forEach(function(name) {
|
buildNames.forEach(function(name) {
|
||||||
gulp.task('build:' + name, ['build:start'], function() {
|
gulp.task('build:' + name, ['build:start'], function() {
|
||||||
return gulp.src('src/paper.js')
|
return gulp.src('src/paper.js')
|
||||||
|
|
|
@ -14,12 +14,13 @@
|
||||||
// the browser, avoiding the step of having to manually preprocess it after each
|
// the browser, avoiding the step of having to manually preprocess it after each
|
||||||
// change. This is very useful during development of the library itself.
|
// change. This is very useful during development of the library itself.
|
||||||
if (typeof window === 'object') {
|
if (typeof window === 'object') {
|
||||||
|
// Browser based loading through Prepro.js:
|
||||||
|
|
||||||
/* jshint -W082 */
|
/* jshint -W082 */
|
||||||
function load(src) {
|
function load(src) {
|
||||||
document.write('<script src="' + src + '"></script>');
|
document.write('<script src="' + src + '"></script>');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Browser based loading through Prepro.js:
|
|
||||||
if (!window.include) {
|
if (!window.include) {
|
||||||
// Get the last script tag and assume it's the one that loaded this file
|
// 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.
|
// then get its src attribute and figure out the location of our root.
|
||||||
|
|
Loading…
Reference in a new issue