From f19c6d0edce745b657b7ae51e2d04c24aaeb2e20 Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Thu, 15 May 2014 12:18:08 -0600 Subject: [PATCH] style(keyboardAttach): fix jshint errors --- js/angular/directive/keyboardAttach.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/angular/directive/keyboardAttach.js b/js/angular/directive/keyboardAttach.js index a9d5e42b9a..1e39c9ec67 100644 --- a/js/angular/directive/keyboardAttach.js +++ b/js/angular/directive/keyboardAttach.js @@ -34,20 +34,22 @@ IonicModule if ( scrollCtrl ) { scrollCtrl.scrollView.__container.style.bottom = keyboardHeight + keyboardAttachGetClientHeight(element[0]) + "px"; } - }; + } function onHide() { element.css('bottom', ''); - if ( scrollCtrl ) { + if ( scrollCtrl ) { scrollCtrl.scrollView.__container.style.bottom = ''; } - }; + } scope.$on('$destroy', function() { window.removeEventListener('native.showkeyboard', onShow); window.removeEventListener('native.hidekeyboard', onHide); }); }; -}) +}); -function keyboardAttachGetClientHeight(element) { return element.clientHeight } +function keyboardAttachGetClientHeight(element) { + return element.clientHeight; +}