diff options
| author | Ken Sheedlo | 2013-08-01 15:19:06 -0700 | 
|---|---|---|
| committer | Ken Sheedlo | 2013-08-01 15:32:46 -0700 | 
| commit | 3c0c7165e26ec53bc408a6cca367e11f0433682a (patch) | |
| tree | e4b2772f8cf8f24b7411f157df7d1f8d2d416a4e /docs/src/templates | |
| parent | 705c9d95bc3157547ac6008d2f0a6a0c0e0ca60a (diff) | |
| download | angular.js-3c0c7165e26ec53bc408a6cca367e11f0433682a.tar.bz2 | |
fix(docs): handle the empty string in errorDisplay
Diffstat (limited to 'docs/src/templates')
| -rw-r--r-- | docs/src/templates/js/docs.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index f52c2216..309b4cd8 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -7,7 +7,7 @@ var docsApp = {  docsApp.controller.DocsVersionsCtrl = ['$scope', '$window', 'NG_VERSIONS', function($scope, $window, NG_VERSIONS) {    $scope.versions = expandVersions(NG_VERSIONS);    $scope.version  = ($scope.version || angular.version.full).match(/^([\d\.]+\d+)/)[1]; //match only the number -   +    $scope.jumpToDocsVersion = function(value) {      var isLastStable,          version, @@ -320,7 +320,7 @@ docsApp.directive.errorDisplay = ['$location', function ($location) {          formatArgs = [attrs.errorDisplay],          i; -      for (i = 0; search['p'+i]; i++) { +      for (i = 0; angular.isDefined(search['p'+i]); i++) {          formatArgs.push(search['p'+i]);        }        element.text(interpolate.apply(null, formatArgs)); | 
