174
rated 0 times
[
181]
[
7]
/ answers: 1 / hits: 48143
/ 14 Years ago, thu, february 17, 2011, 12:00:00
I was studying the jQuery source when I found this (v1.5 line 2295):
namespace = new RegExp((^|\.) +
jQuery.map( namespaces.slice(0).sort(), fcleanup ).join(\.(?:.*\.)?) + (\.|$));
My question is, why use slice(0)
here?
More From » jquery