Remove unneccessary getAttribute for windowId

This commit is contained in:
Nick Krichevsky 2015-03-07 11:14:36 -05:00
parent c23e8c1a5c
commit 2c03ffc0a1

View file

@ -121,10 +121,9 @@ function setupWindowElement(currentWindow,callback){
event.stopPropagation();
if(event.keyCode===13){
event.preventDefault();
var windowId = parseInt(input.parentNode.parentNode.getAttribute('windowId'));
windowName.textContent = input.value;
input.parentNode.replaceChild(windowName,input);
changeWindowName(windowId, input.value);
changeWindowName(currentWindow.id, input.value);
}
});
windowName.parentNode.replaceChild(input,windowName);