Merge pull request #4854 from ulferts/housekeeping/lodash_for_prototype

use lodash clone instead of prototype
pull/4857/head
Oliver Günther 8 years ago committed by GitHub
commit 36918f7299
  1. 4
      app/assets/javascripts/openproject.js

@ -357,10 +357,10 @@ window.OpenProject = (function ($) {
jQuery.each(matches, function (i, match) {
var previousParents;
var unmatchedParents = [];
var parents = match.project.parents.clone();
var parents = _.clone(match.project.parents);
if (i > 0) {
previousParents = result[result.length - 1].project.parents.clone();
previousParents = _.clone(result[result.length - 1].project.parents);
previousParents.push(result[result.length - 1]);
}

Loading…
Cancel
Save