From a15c39c426ef7daa4791ee180ceb7b7b3296df46 Mon Sep 17 00:00:00 2001 From: Gary Burgess Date: Mon, 16 May 2016 12:30:19 +0100 Subject: [PATCH] Update build --- .gitignore | 2 ++ .jscsrc | 17 ++++++++++ .jshintrc | 20 +++++++++++ .travis.yml | 26 +++++---------- gulpfile.js | 31 ----------------- package.json | 12 +++++-- src/DOM/Event/DragEvent/DataTransfer.js | 6 ++-- src/DOM/Event/Event.js | 1 - src/DOM/Event/EventTarget.js | 1 - src/DOM/Event/Types.js | 2 +- src/DOM/File/Blob.js | 6 ++-- src/DOM/File/File.js | 8 +++-- src/DOM/File/FileList.js | 10 +++--- src/DOM/HTML.js | 2 +- src/DOM/HTML/Document.js | 1 - src/DOM/HTML/HTMLAnchorElement.js | 1 - src/DOM/HTML/HTMLAreaElement.js | 1 - src/DOM/HTML/HTMLBaseElement.js | 1 - src/DOM/HTML/HTMLButtonElement.js | 1 - src/DOM/HTML/HTMLCanvasElement.js | 1 - src/DOM/HTML/HTMLDataElement.js | 1 - src/DOM/HTML/HTMLDataListElement.js | 1 - src/DOM/HTML/HTMLEmbedElement.js | 1 - src/DOM/HTML/HTMLFieldSetElement.js | 1 - src/DOM/HTML/HTMLFormElement.js | 1 - src/DOM/HTML/HTMLIFrameElement.js | 1 - src/DOM/HTML/HTMLImageElement.js | 2 +- src/DOM/HTML/HTMLInputElement.js | 5 ++- src/DOM/HTML/HTMLKeygenElement.js | 1 - src/DOM/HTML/HTMLLIElement.js | 1 - src/DOM/HTML/HTMLLabelElement.js | 1 - src/DOM/HTML/HTMLLegendElement.js | 1 - src/DOM/HTML/HTMLLinkElement.js | 1 - src/DOM/HTML/HTMLMapElement.js | 1 - src/DOM/HTML/HTMLMediaElement.js | 2 -- src/DOM/HTML/HTMLMetaElement.js | 1 - src/DOM/HTML/HTMLMeterElement.js | 1 - src/DOM/HTML/HTMLModElement.js | 1 - src/DOM/HTML/HTMLOListElement.js | 1 - src/DOM/HTML/HTMLObjectElement.js | 1 - src/DOM/HTML/HTMLOptGroupElement.js | 1 - src/DOM/HTML/HTMLOptionElement.js | 1 - src/DOM/HTML/HTMLOutputElement.js | 1 - src/DOM/HTML/HTMLParamElement.js | 1 - src/DOM/HTML/HTMLProgressElement.js | 1 - src/DOM/HTML/HTMLQuoteElement.js | 1 - src/DOM/HTML/HTMLScriptElement.js | 1 - src/DOM/HTML/HTMLSelectElement.js | 1 - src/DOM/HTML/HTMLSourceElement.js | 1 - src/DOM/HTML/HTMLStyleElement.js | 1 - src/DOM/HTML/HTMLTableCellElement.js | 1 - src/DOM/HTML/HTMLTableColElement.js | 1 - src/DOM/HTML/HTMLTableElement.js | 1 - src/DOM/HTML/HTMLTableHeaderCellElement.js | 1 - src/DOM/HTML/HTMLTableRowElement.js | 1 - src/DOM/HTML/HTMLTableSectionElement.js | 1 - src/DOM/HTML/HTMLTemplateElement.js | 1 - src/DOM/HTML/HTMLTextAreaElement.js | 5 ++- src/DOM/HTML/HTMLTimeElement.js | 1 - src/DOM/HTML/HTMLTitleElement.js | 1 - src/DOM/HTML/HTMLTrackElement.js | 1 - src/DOM/HTML/HTMLVideoElement.js | 1 - src/DOM/HTML/Location.js | 3 +- src/DOM/HTML/Navigator.js | 1 - src/DOM/HTML/Types.js | 1 - src/DOM/HTML/Window.js | 1 - src/DOM/Node/ChildNode.js | 1 - src/DOM/Node/Document.js | 1 - src/DOM/Node/DocumentType.js | 1 - src/DOM/Node/Element.js | 1 - src/DOM/Node/HTMLCollection.js | 1 - src/DOM/Node/Node.js | 1 - src/DOM/Node/NodeList.js | 1 - src/DOM/Node/NonDocumentTypeChildNode.js | 1 - src/DOM/Node/NonElementParentNode.js | 1 - src/DOM/Node/ParentNode.js | 1 - src/DOM/XHR/FormData.js | 39 +++++++++++----------- 77 files changed, 103 insertions(+), 154 deletions(-) create mode 100644 .jscsrc create mode 100644 .jshintrc delete mode 100644 gulpfile.js diff --git a/.gitignore b/.gitignore index 307f9c0..e306283 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ /.* !/.gitignore +!/.jscsrc +!/.jshintrc !/.travis.yml /bower_components/ /node_modules/ diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..2561ce9 --- /dev/null +++ b/.jscsrc @@ -0,0 +1,17 @@ +{ + "preset": "grunt", + "disallowSpacesInFunctionExpression": null, + "requireSpacesInFunctionExpression": { + "beforeOpeningRoundBrace": true, + "beforeOpeningCurlyBrace": true + }, + "disallowSpacesInAnonymousFunctionExpression": null, + "requireSpacesInAnonymousFunctionExpression": { + "beforeOpeningRoundBrace": true, + "beforeOpeningCurlyBrace": true + }, + "disallowSpacesInsideObjectBrackets": null, + "requireSpacesInsideObjectBrackets": "all", + "validateQuoteMarks": "\"", + "requireCurlyBraces": null +} diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..620d8d7 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,20 @@ +{ + "bitwise": true, + "eqeqeq": true, + "forin": true, + "freeze": true, + "funcscope": true, + "futurehostile": true, + "strict": "global", + "latedef": true, + "maxparams": 1, + "noarg": true, + "nocomma": true, + "nonew": true, + "notypeof": true, + "singleGroups": true, + "undef": true, + "unused": true, + "eqnull": true, + "predef": ["exports"] +} diff --git a/.travis.yml b/.travis.yml index a425279..d09d9fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,15 @@ language: node_js -sudo: false -node_js: - - 4 -env: - - PATH=$HOME/purescript:$PATH +dist: trusty +sudo: required +node_js: 5 install: - - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') - - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - - chmod a+x $HOME/purescript - - npm install bower gulp -g - - npm install && bower install + - npm install + - npm install -g bower + - bower install script: - - gulp + - npm run build after_success: - >- test $TRAVIS_TAG && - psc-publish > .pursuit.json && - curl -X POST http://pursuit.purescript.org/packages \ - -d @.pursuit.json \ - -H 'Accept: application/json' \ - -H "Authorization: token ${GITHUB_TOKEN}" + echo $GITHUB_TOKEN | pulp login && + echo y | pulp publish --no-push diff --git a/gulpfile.js b/gulpfile.js deleted file mode 100644 index 2026e73..0000000 --- a/gulpfile.js +++ /dev/null @@ -1,31 +0,0 @@ -/* jshint node: true */ -"use strict"; - -var gulp = require("gulp"); -var purescript = require("gulp-purescript"); -var rimraf = require("rimraf"); - -var sources = [ - "src/**/*.purs", - "bower_components/purescript-*/src/**/*.purs" -]; - -var foreigns = [ - "src/**/*.js", - "bower_components/purescript-*/src/**/*.js" -]; - -gulp.task("clean", function (cb) { - rimraf("output", cb); -}); - -gulp.task("make", function() { - return purescript.psc({ src: sources, ffi: foreigns }); -}); - -gulp.task("dotpsci", function () { - return purescript.psci({ src: sources, ffi: foreigns }) - .pipe(gulp.dest(".")); -}); - -gulp.task("default", ["make", "dotpsci"]); diff --git a/package.json b/package.json index 4c22dd2..9fe6391 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,14 @@ { "private": true, + "scripts": { + "clean": "rimraf output && rimraf .pulp-cache", + "build": "jshint src && jscs src && pulp build" + }, "devDependencies": { - "gulp": "^3.8.11", - "gulp-purescript": "^0.8.0", - "rimraf": "^2.3.3" + "jscs": "^2.8.0", + "jshint": "^2.9.1", + "pulp": "^8.2.0", + "purescript": "^0.7.6", + "rimraf": "^2.4.1" } } diff --git a/src/DOM/Event/DragEvent/DataTransfer.js b/src/DOM/Event/DragEvent/DataTransfer.js index d827b03..eca2370 100644 --- a/src/DOM/Event/DragEvent/DataTransfer.js +++ b/src/DOM/Event/DragEvent/DataTransfer.js @@ -1,5 +1,7 @@ +"use strict"; + // module DOM.Event.DragEvent.DataTransfer -exports.files = function(dataTransfer) { +exports.files = function (dataTransfer) { return dataTransfer.files; -} +}; diff --git a/src/DOM/Event/Event.js b/src/DOM/Event/Event.js index d8c1c34..c3c9a19 100644 --- a/src/DOM/Event/Event.js +++ b/src/DOM/Event/Event.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Event.Event diff --git a/src/DOM/Event/EventTarget.js b/src/DOM/Event/EventTarget.js index ece64a2..49a19a3 100644 --- a/src/DOM/Event/EventTarget.js +++ b/src/DOM/Event/EventTarget.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Event.EventTarget diff --git a/src/DOM/Event/Types.js b/src/DOM/Event/Types.js index 3de90af..1c139a7 100644 --- a/src/DOM/Event/Types.js +++ b/src/DOM/Event/Types.js @@ -1,4 +1,4 @@ -/* global exports, EventTarget */ +/* global EventTarget */ "use strict"; // module DOM.Event.Types diff --git a/src/DOM/File/Blob.js b/src/DOM/File/Blob.js index 70c3228..08a18df 100644 --- a/src/DOM/File/Blob.js +++ b/src/DOM/File/Blob.js @@ -1,5 +1,7 @@ +"use strict"; + // module DOM.File.Blob -exports.typeImpl = function(blob) { return blob.type }; +exports.typeImpl = function (blob) { return blob.type; }; -exports.size = function(blob) { return blob.size }; +exports.size = function (blob) { return blob.size; }; diff --git a/src/DOM/File/File.js b/src/DOM/File/File.js index 4cd8946..e468083 100644 --- a/src/DOM/File/File.js +++ b/src/DOM/File/File.js @@ -1,5 +1,7 @@ +"use strict"; + // module DOM.File.File -exports.name = function(file) { return file.name }; -exports.lastModifiedDate = function(file) { return file.lastModifiedDate } -exports.lastModified = function(file) { return file.lastModified } +exports.name = function (file) { return file.name; }; +exports.lastModifiedDate = function (file) { return file.lastModifiedDate; }; +exports.lastModified = function (file) { return file.lastModified; }; diff --git a/src/DOM/File/FileList.js b/src/DOM/File/FileList.js index 885dd6c..7d5308d 100644 --- a/src/DOM/File/FileList.js +++ b/src/DOM/File/FileList.js @@ -1,9 +1,11 @@ +"use strict"; + // module DOM.File.FileList -exports.length = function(fileList) { return fileList.length; }; +exports.length = function (fileList) { return fileList.length; }; -exports.item = function(index) { - return function(fileList) { +exports.item = function (index) { + return function (fileList) { return fileList.item(index); - } + }; }; diff --git a/src/DOM/HTML.js b/src/DOM/HTML.js index d10018a..0d74910 100644 --- a/src/DOM/HTML.js +++ b/src/DOM/HTML.js @@ -1,4 +1,4 @@ -/* global exports, window */ +/* global window */ "use strict"; // module DOM.HTML diff --git a/src/DOM/HTML/Document.js b/src/DOM/HTML/Document.js index 035340b..a9fe987 100644 --- a/src/DOM/HTML/Document.js +++ b/src/DOM/HTML/Document.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.Document diff --git a/src/DOM/HTML/HTMLAnchorElement.js b/src/DOM/HTML/HTMLAnchorElement.js index a32f9ec..c4df5b8 100644 --- a/src/DOM/HTML/HTMLAnchorElement.js +++ b/src/DOM/HTML/HTMLAnchorElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLAnchorElement diff --git a/src/DOM/HTML/HTMLAreaElement.js b/src/DOM/HTML/HTMLAreaElement.js index a4afc40..1af034d 100644 --- a/src/DOM/HTML/HTMLAreaElement.js +++ b/src/DOM/HTML/HTMLAreaElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLAreaElement diff --git a/src/DOM/HTML/HTMLBaseElement.js b/src/DOM/HTML/HTMLBaseElement.js index 2c67ae9..df70233 100644 --- a/src/DOM/HTML/HTMLBaseElement.js +++ b/src/DOM/HTML/HTMLBaseElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLBaseElement diff --git a/src/DOM/HTML/HTMLButtonElement.js b/src/DOM/HTML/HTMLButtonElement.js index c910ddf..467b916 100644 --- a/src/DOM/HTML/HTMLButtonElement.js +++ b/src/DOM/HTML/HTMLButtonElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLButtonElement diff --git a/src/DOM/HTML/HTMLCanvasElement.js b/src/DOM/HTML/HTMLCanvasElement.js index 00e7d45..e506033 100644 --- a/src/DOM/HTML/HTMLCanvasElement.js +++ b/src/DOM/HTML/HTMLCanvasElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLCanvasElement diff --git a/src/DOM/HTML/HTMLDataElement.js b/src/DOM/HTML/HTMLDataElement.js index 430e428..b5334b8 100644 --- a/src/DOM/HTML/HTMLDataElement.js +++ b/src/DOM/HTML/HTMLDataElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLDataElement diff --git a/src/DOM/HTML/HTMLDataListElement.js b/src/DOM/HTML/HTMLDataListElement.js index a1f2eab..d7fcb56 100644 --- a/src/DOM/HTML/HTMLDataListElement.js +++ b/src/DOM/HTML/HTMLDataListElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLDataListElement diff --git a/src/DOM/HTML/HTMLEmbedElement.js b/src/DOM/HTML/HTMLEmbedElement.js index 2e26b21..82bf4f3 100644 --- a/src/DOM/HTML/HTMLEmbedElement.js +++ b/src/DOM/HTML/HTMLEmbedElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLEmbedElement diff --git a/src/DOM/HTML/HTMLFieldSetElement.js b/src/DOM/HTML/HTMLFieldSetElement.js index 3306f2d..bc5d51b 100644 --- a/src/DOM/HTML/HTMLFieldSetElement.js +++ b/src/DOM/HTML/HTMLFieldSetElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLFieldSetElement diff --git a/src/DOM/HTML/HTMLFormElement.js b/src/DOM/HTML/HTMLFormElement.js index 75a4cb2..3eae7a5 100644 --- a/src/DOM/HTML/HTMLFormElement.js +++ b/src/DOM/HTML/HTMLFormElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLFormElement diff --git a/src/DOM/HTML/HTMLIFrameElement.js b/src/DOM/HTML/HTMLIFrameElement.js index faee712..d71be93 100644 --- a/src/DOM/HTML/HTMLIFrameElement.js +++ b/src/DOM/HTML/HTMLIFrameElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLIFrameElement diff --git a/src/DOM/HTML/HTMLImageElement.js b/src/DOM/HTML/HTMLImageElement.js index bdc0335..557130b 100644 --- a/src/DOM/HTML/HTMLImageElement.js +++ b/src/DOM/HTML/HTMLImageElement.js @@ -1,4 +1,4 @@ -/* global exports, Image */ +/* global Image */ "use strict"; // module DOM.HTML.HTMLImageElement diff --git a/src/DOM/HTML/HTMLInputElement.js b/src/DOM/HTML/HTMLInputElement.js index d7e9f8a..13937a4 100644 --- a/src/DOM/HTML/HTMLInputElement.js +++ b/src/DOM/HTML/HTMLInputElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLInputElement @@ -727,7 +726,7 @@ exports["setRangeText'"] = function (replacement) { return function (selectionMode) { return function (input) { return function () { - input.setRangeText(replacement); + input.setRangeText(replacement, start, end, selectionMode, input); }; }; }; @@ -742,7 +741,7 @@ exports.setSelectionRange = function (start) { return function (direction) { return function (input) { return function () { - input.setRangeText(replacement); + input.setSelectionRange(start, end, direction, input); }; }; }; diff --git a/src/DOM/HTML/HTMLKeygenElement.js b/src/DOM/HTML/HTMLKeygenElement.js index cf3c90a..14376b1 100644 --- a/src/DOM/HTML/HTMLKeygenElement.js +++ b/src/DOM/HTML/HTMLKeygenElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLKeygenElement diff --git a/src/DOM/HTML/HTMLLIElement.js b/src/DOM/HTML/HTMLLIElement.js index 46a9253..b37c6d3 100644 --- a/src/DOM/HTML/HTMLLIElement.js +++ b/src/DOM/HTML/HTMLLIElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLLIElement diff --git a/src/DOM/HTML/HTMLLabelElement.js b/src/DOM/HTML/HTMLLabelElement.js index ba83482..aba20c8 100644 --- a/src/DOM/HTML/HTMLLabelElement.js +++ b/src/DOM/HTML/HTMLLabelElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLLabelElement diff --git a/src/DOM/HTML/HTMLLegendElement.js b/src/DOM/HTML/HTMLLegendElement.js index d20fd25..842cd49 100644 --- a/src/DOM/HTML/HTMLLegendElement.js +++ b/src/DOM/HTML/HTMLLegendElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLLegendElement diff --git a/src/DOM/HTML/HTMLLinkElement.js b/src/DOM/HTML/HTMLLinkElement.js index f8bfe1d..75a614d 100644 --- a/src/DOM/HTML/HTMLLinkElement.js +++ b/src/DOM/HTML/HTMLLinkElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLLinkElement diff --git a/src/DOM/HTML/HTMLMapElement.js b/src/DOM/HTML/HTMLMapElement.js index 2f74392..296a789 100644 --- a/src/DOM/HTML/HTMLMapElement.js +++ b/src/DOM/HTML/HTMLMapElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLMapElement diff --git a/src/DOM/HTML/HTMLMediaElement.js b/src/DOM/HTML/HTMLMediaElement.js index dc758a0..d886406 100644 --- a/src/DOM/HTML/HTMLMediaElement.js +++ b/src/DOM/HTML/HTMLMediaElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLMediaElement @@ -219,7 +218,6 @@ exports.play = function (media) { }; }; - // ---------------------------------------------------------------------------- exports.pause = function (media) { diff --git a/src/DOM/HTML/HTMLMetaElement.js b/src/DOM/HTML/HTMLMetaElement.js index 322c257..10aed36 100644 --- a/src/DOM/HTML/HTMLMetaElement.js +++ b/src/DOM/HTML/HTMLMetaElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLMetaElement diff --git a/src/DOM/HTML/HTMLMeterElement.js b/src/DOM/HTML/HTMLMeterElement.js index 881b0b4..4d5c1eb 100644 --- a/src/DOM/HTML/HTMLMeterElement.js +++ b/src/DOM/HTML/HTMLMeterElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLMeterElement diff --git a/src/DOM/HTML/HTMLModElement.js b/src/DOM/HTML/HTMLModElement.js index 017e820..0d86cf1 100644 --- a/src/DOM/HTML/HTMLModElement.js +++ b/src/DOM/HTML/HTMLModElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLModElement diff --git a/src/DOM/HTML/HTMLOListElement.js b/src/DOM/HTML/HTMLOListElement.js index 776f5ce..21fb234 100644 --- a/src/DOM/HTML/HTMLOListElement.js +++ b/src/DOM/HTML/HTMLOListElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLOListElement diff --git a/src/DOM/HTML/HTMLObjectElement.js b/src/DOM/HTML/HTMLObjectElement.js index 15994ec..4cf2fcf 100644 --- a/src/DOM/HTML/HTMLObjectElement.js +++ b/src/DOM/HTML/HTMLObjectElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLObjectElement diff --git a/src/DOM/HTML/HTMLOptGroupElement.js b/src/DOM/HTML/HTMLOptGroupElement.js index cc88703..b9464ce 100644 --- a/src/DOM/HTML/HTMLOptGroupElement.js +++ b/src/DOM/HTML/HTMLOptGroupElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLOptGroupElement diff --git a/src/DOM/HTML/HTMLOptionElement.js b/src/DOM/HTML/HTMLOptionElement.js index c93f828..d3c3572 100644 --- a/src/DOM/HTML/HTMLOptionElement.js +++ b/src/DOM/HTML/HTMLOptionElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLOptionElement diff --git a/src/DOM/HTML/HTMLOutputElement.js b/src/DOM/HTML/HTMLOutputElement.js index 0c6a10e..759d687 100644 --- a/src/DOM/HTML/HTMLOutputElement.js +++ b/src/DOM/HTML/HTMLOutputElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLOutputElement diff --git a/src/DOM/HTML/HTMLParamElement.js b/src/DOM/HTML/HTMLParamElement.js index 6f82b2b..185e9d7 100644 --- a/src/DOM/HTML/HTMLParamElement.js +++ b/src/DOM/HTML/HTMLParamElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLParamElement diff --git a/src/DOM/HTML/HTMLProgressElement.js b/src/DOM/HTML/HTMLProgressElement.js index f702ef8..2ff40fe 100644 --- a/src/DOM/HTML/HTMLProgressElement.js +++ b/src/DOM/HTML/HTMLProgressElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLProgressElement diff --git a/src/DOM/HTML/HTMLQuoteElement.js b/src/DOM/HTML/HTMLQuoteElement.js index 3e09c3d..0f195df 100644 --- a/src/DOM/HTML/HTMLQuoteElement.js +++ b/src/DOM/HTML/HTMLQuoteElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLQuoteElement diff --git a/src/DOM/HTML/HTMLScriptElement.js b/src/DOM/HTML/HTMLScriptElement.js index f598e59..cc81e62 100644 --- a/src/DOM/HTML/HTMLScriptElement.js +++ b/src/DOM/HTML/HTMLScriptElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLScriptElement diff --git a/src/DOM/HTML/HTMLSelectElement.js b/src/DOM/HTML/HTMLSelectElement.js index 1e3a714..58bb9e6 100644 --- a/src/DOM/HTML/HTMLSelectElement.js +++ b/src/DOM/HTML/HTMLSelectElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLSelectElement diff --git a/src/DOM/HTML/HTMLSourceElement.js b/src/DOM/HTML/HTMLSourceElement.js index cddcdc5..385c04b 100644 --- a/src/DOM/HTML/HTMLSourceElement.js +++ b/src/DOM/HTML/HTMLSourceElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLSourceElement diff --git a/src/DOM/HTML/HTMLStyleElement.js b/src/DOM/HTML/HTMLStyleElement.js index a45c6e7..1420f21 100644 --- a/src/DOM/HTML/HTMLStyleElement.js +++ b/src/DOM/HTML/HTMLStyleElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLStyleElement diff --git a/src/DOM/HTML/HTMLTableCellElement.js b/src/DOM/HTML/HTMLTableCellElement.js index ce80511..a66e535 100644 --- a/src/DOM/HTML/HTMLTableCellElement.js +++ b/src/DOM/HTML/HTMLTableCellElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableCellElement diff --git a/src/DOM/HTML/HTMLTableColElement.js b/src/DOM/HTML/HTMLTableColElement.js index 7bb537d..60bca02 100644 --- a/src/DOM/HTML/HTMLTableColElement.js +++ b/src/DOM/HTML/HTMLTableColElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableColElement diff --git a/src/DOM/HTML/HTMLTableElement.js b/src/DOM/HTML/HTMLTableElement.js index b2476a1..e3eb9ae 100644 --- a/src/DOM/HTML/HTMLTableElement.js +++ b/src/DOM/HTML/HTMLTableElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableElement diff --git a/src/DOM/HTML/HTMLTableHeaderCellElement.js b/src/DOM/HTML/HTMLTableHeaderCellElement.js index 78cd335..a439fd6 100644 --- a/src/DOM/HTML/HTMLTableHeaderCellElement.js +++ b/src/DOM/HTML/HTMLTableHeaderCellElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableHeaderCellElement diff --git a/src/DOM/HTML/HTMLTableRowElement.js b/src/DOM/HTML/HTMLTableRowElement.js index 85014fb..6f465d1 100644 --- a/src/DOM/HTML/HTMLTableRowElement.js +++ b/src/DOM/HTML/HTMLTableRowElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableRowElement diff --git a/src/DOM/HTML/HTMLTableSectionElement.js b/src/DOM/HTML/HTMLTableSectionElement.js index d3db3c4..1c72b18 100644 --- a/src/DOM/HTML/HTMLTableSectionElement.js +++ b/src/DOM/HTML/HTMLTableSectionElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTableSectionElement diff --git a/src/DOM/HTML/HTMLTemplateElement.js b/src/DOM/HTML/HTMLTemplateElement.js index f2dbe67..235bc40 100644 --- a/src/DOM/HTML/HTMLTemplateElement.js +++ b/src/DOM/HTML/HTMLTemplateElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTemplateElement diff --git a/src/DOM/HTML/HTMLTextAreaElement.js b/src/DOM/HTML/HTMLTextAreaElement.js index edbc9b3..de4ca83 100644 --- a/src/DOM/HTML/HTMLTextAreaElement.js +++ b/src/DOM/HTML/HTMLTextAreaElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTextAreaElement @@ -387,7 +386,7 @@ exports["setRangeText'"] = function (replacement) { return function (selectionMode) { return function (textarea) { return function () { - textarea.setRangeText(replacement); + textarea.setRangeText(replacement, start, end, selectionMode); }; }; }; @@ -402,7 +401,7 @@ exports.setSelectionRange = function (start) { return function (direction) { return function (textarea) { return function () { - textarea.setRangeText(replacement); + textarea.setSelectionRange(start, end, direction); }; }; }; diff --git a/src/DOM/HTML/HTMLTimeElement.js b/src/DOM/HTML/HTMLTimeElement.js index 6dca740..8f86fc2 100644 --- a/src/DOM/HTML/HTMLTimeElement.js +++ b/src/DOM/HTML/HTMLTimeElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTimeElement diff --git a/src/DOM/HTML/HTMLTitleElement.js b/src/DOM/HTML/HTMLTitleElement.js index 48478d8..e88beca 100644 --- a/src/DOM/HTML/HTMLTitleElement.js +++ b/src/DOM/HTML/HTMLTitleElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTitleElement diff --git a/src/DOM/HTML/HTMLTrackElement.js b/src/DOM/HTML/HTMLTrackElement.js index 57d27bc..606178d 100644 --- a/src/DOM/HTML/HTMLTrackElement.js +++ b/src/DOM/HTML/HTMLTrackElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLTrackElement diff --git a/src/DOM/HTML/HTMLVideoElement.js b/src/DOM/HTML/HTMLVideoElement.js index 2edc029..1ace696 100644 --- a/src/DOM/HTML/HTMLVideoElement.js +++ b/src/DOM/HTML/HTMLVideoElement.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.HTMLVideoElement diff --git a/src/DOM/HTML/Location.js b/src/DOM/HTML/Location.js index 6c9e2f9..49de2d7 100644 --- a/src/DOM/HTML/Location.js +++ b/src/DOM/HTML/Location.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.Location @@ -168,7 +167,7 @@ exports.replace = function (url) { // ---------------------------------------------------------------------------- exports.reload = function (location) { - return function() { + return function () { location.reload(); }; }; diff --git a/src/DOM/HTML/Navigator.js b/src/DOM/HTML/Navigator.js index 8adfbbf..c8f45f6 100644 --- a/src/DOM/HTML/Navigator.js +++ b/src/DOM/HTML/Navigator.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.Navigator diff --git a/src/DOM/HTML/Types.js b/src/DOM/HTML/Types.js index e088862..8b6109e 100644 --- a/src/DOM/HTML/Types.js +++ b/src/DOM/HTML/Types.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.Types diff --git a/src/DOM/HTML/Window.js b/src/DOM/HTML/Window.js index 7d401dd..e23f6d6 100644 --- a/src/DOM/HTML/Window.js +++ b/src/DOM/HTML/Window.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.HTML.Window diff --git a/src/DOM/Node/ChildNode.js b/src/DOM/Node/ChildNode.js index 19cd941..abf2e9d 100644 --- a/src/DOM/Node/ChildNode.js +++ b/src/DOM/Node/ChildNode.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.ChildNode diff --git a/src/DOM/Node/Document.js b/src/DOM/Node/Document.js index 0463a0a..51a9765 100644 --- a/src/DOM/Node/Document.js +++ b/src/DOM/Node/Document.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.Document diff --git a/src/DOM/Node/DocumentType.js b/src/DOM/Node/DocumentType.js index a759184..23f431a 100644 --- a/src/DOM/Node/DocumentType.js +++ b/src/DOM/Node/DocumentType.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.DocumentType diff --git a/src/DOM/Node/Element.js b/src/DOM/Node/Element.js index b4e3a24..6e89d97 100644 --- a/src/DOM/Node/Element.js +++ b/src/DOM/Node/Element.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.Element diff --git a/src/DOM/Node/HTMLCollection.js b/src/DOM/Node/HTMLCollection.js index 70c2e13..e8780ed 100644 --- a/src/DOM/Node/HTMLCollection.js +++ b/src/DOM/Node/HTMLCollection.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.HTMLCollection diff --git a/src/DOM/Node/Node.js b/src/DOM/Node/Node.js index f30fb35..4c13c7f 100644 --- a/src/DOM/Node/Node.js +++ b/src/DOM/Node/Node.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.Node diff --git a/src/DOM/Node/NodeList.js b/src/DOM/Node/NodeList.js index de20425..16730b0 100644 --- a/src/DOM/Node/NodeList.js +++ b/src/DOM/Node/NodeList.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.NodeList diff --git a/src/DOM/Node/NonDocumentTypeChildNode.js b/src/DOM/Node/NonDocumentTypeChildNode.js index 9c49b1f..f8892d9 100644 --- a/src/DOM/Node/NonDocumentTypeChildNode.js +++ b/src/DOM/Node/NonDocumentTypeChildNode.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.NonDocumentTypeChildNode diff --git a/src/DOM/Node/NonElementParentNode.js b/src/DOM/Node/NonElementParentNode.js index 8793aee..12d39a2 100644 --- a/src/DOM/Node/NonElementParentNode.js +++ b/src/DOM/Node/NonElementParentNode.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.NonElementParentNode diff --git a/src/DOM/Node/ParentNode.js b/src/DOM/Node/ParentNode.js index fdb13e7..30cbe81 100644 --- a/src/DOM/Node/ParentNode.js +++ b/src/DOM/Node/ParentNode.js @@ -1,4 +1,3 @@ -/* global exports */ "use strict"; // module DOM.Node.ParentNode diff --git a/src/DOM/XHR/FormData.js b/src/DOM/XHR/FormData.js index c368430..852279b 100644 --- a/src/DOM/XHR/FormData.js +++ b/src/DOM/XHR/FormData.js @@ -1,29 +1,28 @@ - +/* global FormData */ "use strict"; // module DOM.XHR.FormData -exports.newFormData = function() { - return new FormData(); +exports.newFormData = function () { + return new FormData(); }; -exports.appendString = function(form) { - return function( key) { - return function( val) { - form.append( key, val); - return {}; - }; - }; +exports.appendString = function (form) { + return function (key) { + return function (val) { + form.append(key, val); + return {}; + }; + }; }; -exports.appendWithName = function(form) { - return function( key) { - return function( val) { - return function( name) { - form.append( key, val, name); - return {}; - }; - }; - }; +exports.appendWithName = function (form) { + return function (key) { + return function (val) { + return function (name) { + form.append(key, val, name); + return {}; + }; + }; + }; }; -