Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build/MathBox-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -40269,7 +40269,7 @@ window.ThreeRTT = window.ThreeRTT || {};
// or pass through string if not exists.
ThreeRTT.getShader = function (id) {
var elem = document.getElementById(id);
return elem && elem.innerText || id;
return elem && elem.textContent || id;
};

// Simple loop helper
Expand All @@ -40280,7 +40280,7 @@ _.loop = function (n, callback) {
// Fetch shader from <script> tag by id
ThreeRTT.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};
// Check for a power of two.
ThreeRTT.isPowerOfTwo = function (value) {
Expand Down Expand Up @@ -41476,7 +41476,7 @@ window.ShaderGraph = {};
// Fetch shader from <script> tag by id
ShaderGraph.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};(function ($) {

/**
Expand Down Expand Up @@ -42649,7 +42649,7 @@ window.mathBox = function (element, options) {
// Fetch shader from <script> tag by id
MathBox.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};

Math.sign = function (x) {
Expand Down
2 changes: 1 addition & 1 deletion build/MathBox-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ window.mathBox = function (element, options) {
// Fetch shader from <script> tag by id
MathBox.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};

Math.sign = function (x) {
Expand Down
8 changes: 4 additions & 4 deletions build/MathBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ window.ThreeRTT = window.ThreeRTT || {};
// or pass through string if not exists.
ThreeRTT.getShader = function (id) {
var elem = document.getElementById(id);
return elem && elem.innerText || id;
return elem && elem.textContent || id;
};

// Simple loop helper
Expand All @@ -652,7 +652,7 @@ _.loop = function (n, callback) {
// Fetch shader from <script> tag by id
ThreeRTT.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};
// Check for a power of two.
ThreeRTT.isPowerOfTwo = function (value) {
Expand Down Expand Up @@ -1848,7 +1848,7 @@ window.ShaderGraph = {};
// Fetch shader from <script> tag by id
ShaderGraph.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};(function ($) {

/**
Expand Down Expand Up @@ -3021,7 +3021,7 @@ window.mathBox = function (element, options) {
// Fetch shader from <script> tag by id
MathBox.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};

Math.sign = function (x) {
Expand Down
2 changes: 1 addition & 1 deletion src/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ window.mathBox = function (element, options) {
// Fetch shader from <script> tag by id
MathBox.getShader = function (id) {
var elem = document.getElementById(id);
return elem && (elem.innerText || elem.textContent) || id;
return elem && elem.textContent || id;
};

Math.sign = function (x) {
Expand Down