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

Commit

Permalink
fix(icon): fixed typo with newValue parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmeilleur authored and andrewconnell committed Apr 18, 2016
1 parent 774f44e commit 588f7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/icon/iconDirective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export class IconDirective implements ng.IDirective {

public link(scope: IIconScope, instanceElement: ng.IAugmentedJQuery, attrs: ng.IAttributes, controller: IconController): void {
// add watcher
scope.$watch('uifType', (newValule: string, oldValue: string) => {
scope.$watch('uifType', (newValue: string, oldValue: string) => {
// verify a valid icon was passed in
if (IconEnum[newValule] === undefined) {
if (IconEnum[newValue] === undefined) {
controller.$log.error('Error [ngOfficeUiFabric] officeuifabric.components.icon - Unsupported icon: ' +
'The icon (\'' + scope.uifType + '\') is not supported by the Office UI Fabric. ' +
'Supported options are listed here: ' +
Expand Down

0 comments on commit 588f7ba

Please sign in to comment.