style(keyboardAttach): fix jshint errors

This commit is contained in:
Andrew Joslin
2014-05-15 12:18:08 -06:00
parent 5994a51bdd
commit f19c6d0edc

View File

@@ -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;
}