get rid of node.extend (since duplicated by underscorejs)

pull/593/head
Matthias Bartelmeß 2012-04-04 09:40:18 +02:00
parent 49593a1c8e
commit b2173a1084
2 changed files with 3 additions and 5 deletions

View File

@ -23,9 +23,8 @@
"log4js" : "0.4.1",
"jsdom-nocontextifiy" : "0.2.10",
"async-stacktrace" : "0.0.2",
"npm" : "1.1",
"ejs" : "0.6.1",
"node.extend" : "1.0.0",
"npm" : "1.1",
"ejs" : "0.6.1",
"graceful-fs" : "1.1.5",
"slide" : "1.1.3",
"semver" : "1.0.13",

View File

@ -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;