fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git@github.com:fnp/redakcja
[redakcja.git]
/
redakcja
/
static
/
js
/
lib
/
codemirror
/
util.js
diff --git
a/redakcja/static/js/lib/codemirror/util.js
b/redakcja/static/js/lib/codemirror/util.js
index
796025e
..
c7021c2
100644
(file)
--- a/
redakcja/static/js/lib/codemirror/util.js
+++ b/
redakcja/static/js/lib/codemirror/util.js
@@
-1,9
+1,5
@@
/* A few useful utility functions. */
/* A few useful utility functions. */
-var internetExplorer = document.selection && window.ActiveXObject && /MSIE/.test(navigator.userAgent);
-var webkit = /AppleWebKit/.test(navigator.userAgent);
-var safari = /Apple Computers, Inc/.test(navigator.vendor);
-
// Capture a method on an object.
function method(obj, name) {
return function() {obj[name].apply(obj, arguments);};
// Capture a method on an object.
function method(obj, name) {
return function() {obj[name].apply(obj, arguments);};
@@
-123,3
+119,12
@@
function nodeTop(node) {
}
return top;
}
}
return top;
}
+
+function isBR(node) {
+ var nn = node.nodeName;
+ return nn == "BR" || nn == "br";
+}
+function isSpan(node) {
+ var nn = node.nodeName;
+ return nn == "SPAN" || nn == "span";
+}