refactor(Angular.js): remove code duplication

Closes #2890
This commit is contained in:
Eric Subach 2013-06-12 21:31:10 -04:00 committed by Pawel Kozlowski
parent e82d780c2e
commit a83ed0e6c3

View file

@ -256,12 +256,6 @@ function inherit(parent, extra) {
return extend(new (extend(function() {}, {prototype:parent}))(), extra);
}
var START_SPACE = /^\s*/;
var END_SPACE = /\s*$/;
function stripWhitespace(str) {
return isString(str) ? str.replace(START_SPACE, '').replace(END_SPACE, '') : str;
}
/**
* @ngdoc function
* @name angular.noop