From 1419934598db287a4851181e59a8bf23e1823e85 Mon Sep 17 00:00:00 2001 From: Andrea Giammarchi Date: Thu, 10 Mar 2016 09:38:55 +0000 Subject: [PATCH] using tiny-cdn. Fixed jshint gotchas --- Makefile | 8 ++++---- README.md | 8 +++++++- build/ie8.js | 2 +- build/ie8.max.js | 15 ++++++++++----- package.json | 4 ++-- src/ie8.js | 15 ++++++++++----- 6 files changed, 34 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 69b9038..2fc3bce 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ build: # make node # make amd # make test -# make hint + make hint make size # build generic version @@ -66,9 +66,9 @@ clean: test: npm test -# launch polpetta (ctrl+click to open the page) +# launch tiny-cdn (ctrl+click to open the page) web: - node node_modules/polpetta/build/polpetta ./ + ./node_modules/.bin/tiny-cdn run ./ # markdown the readme and view it preview: @@ -103,7 +103,7 @@ dependencies: rm -rf node_modules mkdir node_modules npm install wru - npm install polpetta + npm install tiny-cdn npm install uglify-js@1 npm install jshint npm install markdown diff --git a/README.md b/README.md index 1c329d3..18ced0e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The file can be either the [full version](build/ie8.max.js) or [the minified one It is now possible to include this file through [cdnjs](http://www.cdnjs.com) ```html ``` @@ -46,6 +46,12 @@ This polyfill normalize the [EventTarget interface](http://www.w3.org/TR/DOM-Lev This shim normalizes the DOM Level 2 [Event interface](http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface) too, adding an **extra** DOM Level 3 [.stopImmediatePropagation()](http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-stopImmediatePropagation) as bonus. +#### W3C DOM Level.next +If you'd like to upgrade even more IE8 capabilities, consider adding [dom4](https://github.com/WebReflection/dom4#dom4) polyfills **after** `ie8.js` file. + +That would provide enough horse-powers to hazard [CustomElement](https://github.com/WebReflection/document-register-element#document-register-element) polyfill on top. + + ### known gotchas Here a humble list of things what won't probably ever be fixed in IE8 diff --git a/build/ie8.js b/build/ie8.js index 5a19d7a..53bf54b 100644 --- a/build/ie8.js +++ b/build/ie8.js @@ -1,2 +1,2 @@ /*! (C) WebReflection Mit Style License */ -(function(e){function b(e,t,n,r){for(var i,s=n.slice(),o=S(t,e),u=0,a=s.length;u