chore(contact) pCallBack -> callback

This commit is contained in:
coderaiser 2014-05-22 09:44:46 -04:00
parent 3e44e9292c
commit 2d4c9248e7

View file

@ -5,7 +5,7 @@ var CloudCmd, Util, DOM, olark;
CloudCmd.Contact = ContactProto;
function ContactProto(pCallBack) {
function ContactProto(callback) {
var Contact = this,
Images = DOM.Images,
Key = CloudCmd.Key,
@ -60,16 +60,16 @@ var CloudCmd, Util, DOM, olark;
init(Contact.hide);
}
function listener(pEvent) {
function listener(event) {
var ESC = Key.ESC,
isBind = Key.isBind(),
key = pEvent.keyCode;
key = event.keyCode;
if (!isBind && key === ESC)
Contact.hide();
}
init(pCallBack);
init(callback);
}
})(CloudCmd, Util, DOM);