Permalink
Browse files

Fixed #503: Removed trailing commas and the use of keyword `import` as

  property, as this gives issues with old JavaScript engines
  • Loading branch information...
1 parent 1572428 commit 526c1ddfc8f2d152b77e8254e1c2fbec377014d4 @josdejong committed Nov 13, 2015
View
@@ -4,6 +4,8 @@
## not yet released, version 2.4.2
- Fixed #502: Issue with `format` in some JavaScript engines.
+- Fixed #503: Removed trailing commas and the use of keyword `import` as
+ property, as this gives issues with old JavaScript engines.
## 2015-10-29, version 2.4.1
View
@@ -29,7 +29,7 @@ function create (config) {
math.create = create;
// import data types, functions, constants, expression parser, etc.
- math.import(require('./lib'));
+ math['import'](require('./lib'));
return math;
}
@@ -9,7 +9,7 @@ module.exports = {
'examples': [
'lup([[2, 1], [1, 4]])',
'lup(matrix([[2, 1], [1, 4]]))',
- 'lup(sparse([[2, 1], [1, 4]]))',
+ 'lup(sparse([[2, 1], [1, 4]]))'
],
'seealso': [
'lusolve', 'lsolve', 'usolve', 'matrix', 'sparse', 'slu'
@@ -7,7 +7,7 @@ module.exports = {
'description':
'Solves the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.',
'examples': [
- 'x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])',
+ 'x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])'
],
'seealso': [
'lup', 'lusolve', 'lsolve', 'matrix', 'sparse'
@@ -184,7 +184,7 @@ var properties = [
'OperatorNode:pow': {
associativity: 'right',
associativeWith: [],
- latexRightParens: false,
+ latexRightParens: false
//the exponent doesn't need parentheses in
//LaTeX because it's 2 dimensional
//(it's on top)
@@ -90,7 +90,7 @@ function factory (type, config, load, typed) {
0: '0',
1: '\\left(${args[0]}\\right)',
2: '\\left(\\left(${args[0]}\\right)+'
- + latex.symbols['i'] + '\\cdot\\left(${args[1]}\\right)\\right)',
+ + latex.symbols['i'] + '\\cdot\\left(${args[1]}\\right)\\right)'
};
return complex;
@@ -792,7 +792,7 @@ function factory (type, config, load, typed) {
this.units = [{
unit: matchingUnit.unit,
prefix: matchingUnit.prefix,
- power: 1.0,
+ power: 1.0
}];
}
else {
@@ -819,8 +819,7 @@ function factory (type, config, load, typed) {
}
this.isUnitListSimplified = true;
- return;
- }
+ };
/**
* Get a string representation of the units of this Unit, without the value.
@@ -2162,7 +2161,7 @@ function factory (type, config, load, typed) {
base: BASE_UNITS.ELECTRIC_CHARGE,
prefixes: PREFIXES.LONG,
value: 1,
- offset: 0,
+ offset: 0
},
C: {
name: 'C',

0 comments on commit 526c1dd

Please sign in to comment.