Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Added missing HtmlAttributeNotBound to ViewContext property.
Browse files Browse the repository at this point in the history
- Did not add a test to validate the behavior. None of the other `TagHelper`s validate that a property is not visible/bound.

#2901
  • Loading branch information
NTaylorMullen committed Aug 3, 2015
1 parent 2792f10 commit 6d228a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Microsoft.AspNet.Mvc.TagHelpers/ImageTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public ImageTagHelper(IHostingEnvironment hostingEnvironment, IMemoryCache cache

protected IHostingEnvironment HostingEnvironment { get; }

[HtmlAttributeNotBound]
[ViewContext]
public ViewContext ViewContext { get; set; }

Expand Down

0 comments on commit 6d228a6

Please sign in to comment.