From 7034f77c6ebee10bc2724b57449400bee1ebef3d Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 28 Aug 2015 09:54:56 +0200 Subject: [PATCH] Removed a few old deprecations, fixed a typo --- index.js | 6 ------ lib/network/Network.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/index.js b/index.js index 71ef9338..da6e975c 100644 --- a/index.js +++ b/index.js @@ -62,13 +62,7 @@ exports.network = { exports.network.convertDot = function (input) {return exports.network.dotparser.DOTToGraph(input)}; exports.network.convertGephi = function (input,options) {return exports.network.gephiParser.parseGephi(input,options)}; -// Deprecated since v3.0.0 -exports.Graph = function () { - throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); -}; - // bundled external libraries exports.moment = require('./lib/module/moment'); -exports.hammer = require('./lib/module/hammer'); // TODO: deprecate exports.hammer some day exports.Hammer = require('./lib/module/hammer'); exports.keycharm = require('keycharm'); \ No newline at end of file diff --git a/lib/network/Network.js b/lib/network/Network.js index 3675945d..57ad80b5 100644 --- a/lib/network/Network.js +++ b/lib/network/Network.js @@ -446,7 +446,7 @@ Network.prototype.enableEditMode = function() {return this.manipulation.ena Network.prototype.disableEditMode = function() {return this.manipulation.disableEditMode.apply(this.manipulation,arguments);}; Network.prototype.addNodeMode = function() {return this.manipulation.addNodeMode.apply(this.manipulation,arguments);}; Network.prototype.editNode = function() {return this.manipulation.editNode.apply(this.manipulation,arguments);}; -Network.prototype.editNodeMode = function() {console.log("Depricated: Please use editNode instead of editNodeMode."); return this.manipulation.editNode.apply(this.manipulation,arguments);}; +Network.prototype.editNodeMode = function() {console.log("Deprecated: Please use editNode instead of editNodeMode."); return this.manipulation.editNode.apply(this.manipulation,arguments);}; Network.prototype.addEdgeMode = function() {return this.manipulation.addEdgeMode.apply(this.manipulation,arguments);}; Network.prototype.editEdgeMode = function() {return this.manipulation.editEdgeMode.apply(this.manipulation,arguments);}; Network.prototype.deleteSelected = function() {return this.manipulation.deleteSelected.apply(this.manipulation,arguments);};