mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit df8969f1c4
This commit is contained in:
parent
8ab0473932
commit
5e1402bad4
7 changed files with 6 additions and 25 deletions
2
dist/docs/assets/js/paper.js
vendored
2
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Jul 3 13:30:56 2016 +0200
|
||||
* Date: Sun Jul 3 13:39:05 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
19
dist/node/window.js
vendored
19
dist/node/window.js
vendored
|
@ -52,25 +52,6 @@ XMLSerializer.prototype.serializeToString = function(node) {
|
|||
return text;
|
||||
};
|
||||
|
||||
function DOMParser() {
|
||||
}
|
||||
|
||||
DOMParser.prototype.parseFromString = function(string, contentType) {
|
||||
// Create a new document, since we're supposed to always return one.
|
||||
var doc = document.implementation.createHTMLDocument(''),
|
||||
body = doc.body,
|
||||
last;
|
||||
// Set the body's HTML, then change the DOM according the specs.
|
||||
body.innerHTML = string;
|
||||
// Remove all top-level children (<html><head/><body/></html>)
|
||||
while (last = doc.lastChild)
|
||||
doc.removeChild(last);
|
||||
// Insert the first child of the body at the top.
|
||||
doc.appendChild(body.firstChild);
|
||||
return doc;
|
||||
};
|
||||
|
||||
window.XMLSerializer = XMLSerializer;
|
||||
window.DOMParser = DOMParser;
|
||||
|
||||
module.exports = window;
|
||||
|
|
2
dist/paper-core.js
vendored
2
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Jul 3 13:30:56 2016 +0200
|
||||
* Date: Sun Jul 3 13:39:05 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
2
dist/paper-core.min.js
vendored
2
dist/paper-core.min.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Jul 3 13:30:56 2016 +0200
|
||||
* Date: Sun Jul 3 13:39:05 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
2
dist/paper-full.js
vendored
2
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Jul 3 13:30:56 2016 +0200
|
||||
* Date: Sun Jul 3 13:39:05 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
2
dist/paper-full.min.js
vendored
2
dist/paper-full.min.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sun Jul 3 13:30:56 2016 +0200
|
||||
* Date: Sun Jul 3 13:39:05 2016 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"node": ">=4.0.0 <7.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"jsdom": "^8.3.0",
|
||||
"jsdom": "^9.4.0",
|
||||
"source-map-support": "^0.4.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
|
Loading…
Reference in a new issue