update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov
2018-11-08 09:15:47 -05:00
parent b085ece741
commit 8327371bd6
3 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [new version][unreleased] ## [new version][unreleased]
## [2.5.1][2018-11-08]
### Changed ### Changed
* Use custom functions for `trimRight` and `trimLeft` (for better browsers support) * Use custom functions for `trimRight` and `trimLeft` (for better browsers support)

View File

@@ -1025,10 +1025,10 @@
return retObj; return retObj;
}, },
trimRight: function(str) { trimRight: function(str) {
return str.replace(/\s+$/, ""); return str.replace(/\s+$/, '');
}, },
trimLeft: function(str) { trimLeft: function(str) {
return str.replace(/^\s+/, ""); return str.replace(/^\s+/, '');
}, },
/** /**
* check intersection of two client rectangles * check intersection of two client rectangles

View File

@@ -765,10 +765,10 @@
return retObj; return retObj;
}, },
trimRight: function(str) { trimRight: function(str) {
return str.replace(/\s+$/, ""); return str.replace(/\s+$/, '');
}, },
trimLeft: function(str) { trimLeft: function(str) {
return str.replace(/^\s+/, ""); return str.replace(/^\s+/, '');
}, },
/** /**
* check intersection of two client rectangles * check intersection of two client rectangles