From 2c03ffc0a1342372c9df5b9eb464a50d13048d33 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sat, 7 Mar 2015 11:14:36 -0500 Subject: [PATCH] Remove unneccessary getAttribute for windowId --- popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/popup.js b/popup.js index 1e59953..e04fa5d 100644 --- a/popup.js +++ b/popup.js @@ -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);