summaryrefslogtreecommitdiff
path: root/src/static/js/pluginfw/plugins.js
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-04-04 09:40:18 +0200
committerMatthias Bartelmeß <mba@fourplusone.de>2012-04-04 09:40:18 +0200
commitb2173a10846afd08012d8f082b112ca6e29f8285 (patch)
tree3bae91556e378c2094f3cc6375e45641328b7fd0 /src/static/js/pluginfw/plugins.js
parent49593a1c8ec2f5825f1e679ed0bb97ee821d5fda (diff)
downloadetherpad-lite-b2173a10846afd08012d8f082b112ca6e29f8285.zip
get rid of node.extend (since duplicated by underscorejs)
Diffstat (limited to 'src/static/js/pluginfw/plugins.js')
-rw-r--r--src/static/js/pluginfw/plugins.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/static/js/pluginfw/plugins.js b/src/static/js/pluginfw/plugins.js
index 058f1351..3bc13ff6 100644
--- a/src/static/js/pluginfw/plugins.js
+++ b/src/static/js/pluginfw/plugins.js
@@ -12,7 +12,6 @@ if (!exports.isClient) {
var fs = require("fs");
var tsort = require("./tsort");
var util = require("util");
- var extend = require("node.extend");
_ = require("underscore");
}else{
var $, jQuery
@@ -123,7 +122,7 @@ exports.getPackages = function (cb) {
function flatten(deps) {
_.chain(deps).keys().each(function (name) {
if (name.indexOf(exports.prefix) == 0) {
- packages[name] = extend({}, deps[name]);
+ packages[name] = _.clone(deps[name]);
// Delete anything that creates loops so that the plugin
// list can be sent as JSON to the web client
delete packages[name].dependencies;