Remove legay.js since we're about to hit 2015.

Closes #592
This commit is contained in:
Jürg Lehni 2014-12-26 06:21:56 +01:00
parent 4d6f5c259c
commit b816337e18
3 changed files with 1 additions and 28 deletions

View file

@ -393,7 +393,7 @@ Base.exports.PaperScript = (function() {
// functions:
// https://code.google.com/p/chromium/issues/detail?id=331655
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
// messages appear to be aligned to line number 0...
if (browser.firefox)

View file

@ -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];
}

View file

@ -40,10 +40,6 @@ var paper = new function(undefined) {
/*#*/ include('../bower_components/stats.js/build/stats.min.js');
/*#*/ }
/*#*/ if (__options.legacy) {
/*#*/ include('legacy.js');
/*#*/ }
/*#*/ if (__options.version == 'dev') {
/*#*/ include('constants.js');
/*#*/ }