Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -1,18 +1,18 @@
module.exports = function focusElementDirective($parse, $timeout) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
link: function(scope, element, attrs) {
var model = $parse(attrs.focusElement)
scope.$watch(model, function (value) {
scope.$watch(model, function(value) {
if (value === true) {
$timeout(function () {
$timeout(function() {
element[0].focus()
})
}
})
element.bind('blur', function () {
element.bind('blur', function() {
if (model && model.assign) {
scope.$apply(model.assign(scope, false))
}