Permalink
Browse files

remove destructuring assignment for browser compat

  • Loading branch information...
1 parent a1afa36 commit be2fe6ab6a92e7dd26d4066dd31b2cfeb173d9ac @harthur committed Mar 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 fileit.js
View
6 fileit.js
@@ -25,10 +25,10 @@ $(document).ready(function() {
$("#file-form").submit(function(event) {
event.preventDefault();
- var [product, component] = toComponent($("#file-form .component-search").val());
+ var comp = toComponent($("#file-form .component-search").val());
window.open("http://bugzilla.mozilla.org/enter_bug.cgi?"
- + "product=" + encodeURIComponent(product) + "&"
- + "component=" + encodeURIComponent(component));
+ + "product=" + encodeURIComponent(comp[0]) + "&"
+ + "component=" + encodeURIComponent(comp[1]));
});
});

0 comments on commit be2fe6a

Please sign in to comment.