Commit 45cf3f04 authored by Leo Iannacone's avatar Leo Iannacone

according with MDN: Unlike what common beliefs suggests, the delete operator...

according with MDN: Unlike what common beliefs suggests, the delete operator has nothing to do with directly freeing memory. Removed.
parent 63dc5d2b
...@@ -86,7 +86,6 @@ function Page_Distrubion(socket) ...@@ -86,7 +86,6 @@ function Page_Distrubion(socket)
view.packages[p.orig_name] = Utils.clone(p) view.packages[p.orig_name] = Utils.clone(p)
}) })
packages.select() packages.select()
delete(socket_data)
}, },
clean: function () { clean: function () {
...@@ -126,7 +125,6 @@ function Page_Distrubion(socket) ...@@ -126,7 +125,6 @@ function Page_Distrubion(socket)
// in case user is watching this package, update also view.package // in case user is watching this package, update also view.package
view.package.status = Utils.clone(status_data.status) view.package.status = Utils.clone(status_data.status)
} }
delete(status_data)
} }
} }
...@@ -170,7 +168,6 @@ function Page_Distrubion(socket) ...@@ -170,7 +168,6 @@ function Page_Distrubion(socket)
$('#sources').show() $('#sources').show()
} }
$('#files').show() $('#files').show()
delete(socket_data)
}, },
clean: function() { clean: function() {
$('#logs ul').html(''); $('#logs ul').html('');
...@@ -205,7 +202,6 @@ function Page_Distrubion(socket) ...@@ -205,7 +202,6 @@ function Page_Distrubion(socket)
view.file = Utils.clone(socket_data.file) view.file = Utils.clone(socket_data.file)
$("#file pre").html(socket_data.file.content) $("#file pre").html(socket_data.file.content)
$("#file").show() $("#file").show()
delete(socket_data)
}, },
clean: function() { clean: function() {
$('#file pre').html('') $('#file pre').html('')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment