mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
parent
4d6f5c259c
commit
b816337e18
3 changed files with 1 additions and 28 deletions
|
@ -393,7 +393,7 @@ Base.exports.PaperScript = (function() {
|
||||||
// functions:
|
// functions:
|
||||||
// https://code.google.com/p/chromium/issues/detail?id=331655
|
// https://code.google.com/p/chromium/issues/detail?id=331655
|
||||||
var script = document.createElement('script'),
|
var script = document.createElement('script'),
|
||||||
head = document.head;
|
head = document.head || document.getElementsByTagName('head')[0];
|
||||||
// Add a new-line before the code on Firefox since the error
|
// Add a new-line before the code on Firefox since the error
|
||||||
// messages appear to be aligned to line number 0...
|
// messages appear to be aligned to line number 0...
|
||||||
if (browser.firefox)
|
if (browser.firefox)
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
/*
|
|
||||||
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
||||||
* http://paperjs.org/
|
|
||||||
*
|
|
||||||
* Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey
|
|
||||||
* http://scratchdisk.com/ & http://jonathanpuckey.com/
|
|
||||||
*
|
|
||||||
* Distributed under the MIT license. See LICENSE file for details.
|
|
||||||
*
|
|
||||||
* All rights reserved.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Support for legacy browsers (mainly FF 3.6). Remove 2nd half of 2014?
|
|
||||||
|
|
||||||
if (!Array.isArray) {
|
|
||||||
Array.isArray = function(obj) {
|
|
||||||
return Object.prototype.toString.call(obj) === '[object Array]';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!document.head) {
|
|
||||||
document.head = document.getElementsByTagName('head')[0];
|
|
||||||
}
|
|
|
@ -40,10 +40,6 @@ var paper = new function(undefined) {
|
||||||
/*#*/ include('../bower_components/stats.js/build/stats.min.js');
|
/*#*/ include('../bower_components/stats.js/build/stats.min.js');
|
||||||
/*#*/ }
|
/*#*/ }
|
||||||
|
|
||||||
/*#*/ if (__options.legacy) {
|
|
||||||
/*#*/ include('legacy.js');
|
|
||||||
/*#*/ }
|
|
||||||
|
|
||||||
/*#*/ if (__options.version == 'dev') {
|
/*#*/ if (__options.version == 'dev') {
|
||||||
/*#*/ include('constants.js');
|
/*#*/ include('constants.js');
|
||||||
/*#*/ }
|
/*#*/ }
|
||||||
|
|
Loading…
Reference in a new issue