Skip to content

Commit 7528784

Browse files
committed
Build v1.5.1
1 parent b6a3d00 commit 7528784

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/teamsnap.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ exports.getAssignmentSort = function(reverse) {
387387
valueA = _this.memberName(itemA.member, reverse).toLowerCase();
388388
valueB = _this.memberName(itemB.member, reverse).toLowerCase();
389389
}
390-
if (typeof valueA.localeCompare === 'function') {
390+
if (typeof (valueA != null ? valueA.localeCompare : void 0) === 'function') {
391391
return valueA.localeCompare(valueB);
392392
} else {
393393
if (valueA === valueB) {
@@ -1693,7 +1693,7 @@ exports.getMemberSort = function(reverse) {
16931693
valueA = _this.memberName(itemA, reverse, true).toLowerCase();
16941694
valueB = _this.memberName(itemB, reverse, true).toLowerCase();
16951695
}
1696-
if (typeof valueA.localeCompare === 'function') {
1696+
if (typeof (valueA != null ? valueA.localeCompare : void 0) === 'function') {
16971697
return valueA.localeCompare(valueB);
16981698
} else {
16991699
if (valueA === valueB) {
@@ -4715,7 +4715,7 @@ TeamSnap.prototype.getNameSort = function() {
47154715
valueB = itemB.id;
47164716
}
47174717
}
4718-
if (typeof valueA.localeCompare === 'function') {
4718+
if (typeof (valueA != null ? valueA.localeCompare : void 0) === 'function') {
47194719
return valueA.localeCompare(valueB);
47204720
} else {
47214721
if (valueA === valueB) {
@@ -4750,7 +4750,7 @@ TeamSnap.prototype.getDefaultSort = function() {
47504750
valueB = itemB.id;
47514751
}
47524752
}
4753-
if (typeof valueA.localeCompare === 'function') {
4753+
if (typeof (valueA != null ? valueA.localeCompare : void 0) === 'function') {
47544754
return valueA.localeCompare(valueB);
47554755
} else {
47564756
if (valueA === valueB) {
@@ -4942,7 +4942,7 @@ ref = require('./model'), Collection = ref.Collection, Item = ref.Item;
49424942
require('./errors');
49434943

49444944
TeamSnap = (function() {
4945-
TeamSnap.prototype.version = '1.4.1';
4945+
TeamSnap.prototype.version = '1.5.1';
49464946

49474947
TeamSnap.prototype.promises = promises;
49484948

0 commit comments

Comments
 (0)