From fe6ffb0ed5606a8f03a81d8fd9753f40a2253ada Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Mon, 12 Nov 2012 17:48:24 +1100 Subject: [PATCH] Add IE10 compatibility. * All UA detection moved into a separate file. --- Makefile | 2 +- build/document.html | 4 +- build/squire.js | 2 +- source/Editor.js | 32 ++++--- source/Node.js | 19 ++--- source/Range.js | 24 +++--- source/TreeWalker.js | 199 ++++++++++++++++++------------------------- source/UA.js | 29 +++++++ source/document.html | 3 - 9 files changed, 151 insertions(+), 163 deletions(-) create mode 100644 source/UA.js diff --git a/Makefile b/Makefile index 09c2692..479bc24 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ build/ie8.js: source/ie8types.js source/ie8dom.js source/ie8range.js mkdir -p $(@D) cat $^ | uglifyjs > $@ -build/squire.js: source/TreeWalker.js source/Node.js source/Range.js source/Editor.js +build/squire.js: source/UA.js source/TreeWalker.js source/Node.js source/Range.js source/Editor.js mkdir -p $(@D) cat $^ | uglifyjs > $@ diff --git a/build/document.html b/build/document.html index aa87ea9..428e909 100644 --- a/build/document.html +++ b/build/document.html @@ -2,6 +2,7 @@ +