Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RF-12425 Remove use of require.js from SyntaxHighlighter

  • Loading branch information...
commit e10d896bf863cebfb710b044e2d9837b4d3ad603 1 parent c4f9c9d
@kenfinnigan kenfinnigan authored lfryc committed
View
3  src/main/webapp/resources/js/shBrushCss.js
@@ -16,9 +16,6 @@
*/
;(function()
{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
function Brush()
{
function getKeywordsCSS(str)
View
3  src/main/webapp/resources/js/shBrushJScript.js
@@ -16,9 +16,6 @@
*/
;(function()
{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
function Brush()
{
var keywords = 'break case catch continue ' +
View
3  src/main/webapp/resources/js/shBrushJava.js
@@ -16,9 +16,6 @@
*/
;(function()
{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
function Brush()
{
var keywords = 'abstract assert boolean break byte case catch char class const ' +
View
3  src/main/webapp/resources/js/shBrushPlain.js
@@ -16,9 +16,6 @@
*/
;(function()
{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
function Brush()
{
};
View
3  src/main/webapp/resources/js/shBrushXml.js
@@ -16,9 +16,6 @@
*/
;(function()
{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
function Brush()
{
function process(match, regexInfo)
View
6 src/main/webapp/resources/js/shCore.js
@@ -19,12 +19,6 @@
//
var SyntaxHighlighter = function() {
-// CommonJS
-if (typeof(require) != 'undefined' && typeof(XRegExp) == 'undefined')
-{
- XRegExp = require('XRegExp').XRegExp;
-}
-
// Shortcut object which will be assigned to the SyntaxHighlighter variable.
// This is a shorthand for local reference in order to avoid long namespace
// references to SyntaxHighlighter.whatever...
Please sign in to comment.
Something went wrong with that request. Please try again.