From 87271d169d607849fe6bc08469a1a6873bbb3a21 Mon Sep 17 00:00:00 2001 From: James Roome Date: Thu, 20 Feb 2014 16:06:52 -0600 Subject: [PATCH] Update ngEventDirs.js switched from this to $scope. It's confusing using $scope and this interchangeably. --- src/ng/directive/ngEventDirs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js index ea65be904e57..191f67cb4150 100644 --- a/src/ng/directive/ngEventDirs.js +++ b/src/ng/directive/ngEventDirs.js @@ -313,9 +313,9 @@ forEach( $scope.list = []; $scope.text = 'hello'; $scope.submit = function() { - if (this.text) { - this.list.push(this.text); - this.text = ''; + if ($scope.text) { + $scope.list.push(this.text); + $scope.text = ''; } }; }