From b9161b7c494113f24cf304e23b1b096790405113 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 15 Jan 2015 23:20:51 +0300 Subject: [PATCH] Code style --- app/js/directives.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index a1b3dad6..de1d4cc8 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -2525,14 +2525,14 @@ angular.module('myApp.directives', ['myApp.filters']) }); if (!isDisabled) { - input.on('blur focus', function (e) { + input.on('blur focus change', function (e) { focused = e.type == 'focus'; element.toggleClass('md-input-focused', focused); updateHasValueClass(); }); } - $scope.$on("value_updated", function (event, args) { + $scope.$on('value_updated', function (event, args) { setZeroTimeout(function () { updateHasValueClass(); });