Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441ab52 commit e6a9f9eCopy full SHA for e6a9f9e
src/Angular.js
@@ -575,19 +575,9 @@ function isPromiseLike(obj) {
575
}
576
577
578
-var trim = (function() {
579
- // native trim is way faster: http://jsperf.com/angular-trim-test
580
- // but IE doesn't have it... :-(
581
- // TODO: we should move this into IE/ES5 polyfill
582
- if (!String.prototype.trim) {
583
- return function(value) {
584
- return isString(value) ? value.replace(/^\s\s*/, '').replace(/\s\s*$/, '') : value;
585
- };
586
- }
587
588
- return isString(value) ? value.trim() : value;
589
590
-})();
+var trim = function(value) {
+ return isString(value) ? value.trim() : value;
+};
591
592
593
/**
0 commit comments