Skip to content

Commit 63beabf

Browse files
committed
Deprecated startDiagram, stopDiagram
1 parent 174a701 commit 63beabf

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

typingdna.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,23 @@ function TypingDNA() {
5757
return TypingDNA.getTypingPattern.apply(this, arguments);
5858
}
5959
TypingDNA.prototype.get = function() {
60+
// still works but will be deprecated in favor of getTypignPattern()
6061
return TypingDNA.get.apply(this, arguments);
6162
}
6263
TypingDNA.prototype.startDiagram = function() {
63-
return TypingDNA.startDiagram.apply(this, arguments);
64+
// deprecated in favor of start()
65+
//return TypingDNA.startDiagram.apply(this, arguments);
6466
}
6567
TypingDNA.prototype.stopDiagram = function() {
66-
return TypingDNA.stopDiagram.apply(this, arguments);
68+
// deprecated in favor of stop()
69+
//return TypingDNA.stopDiagram.apply(this, arguments);
6770
}
6871
TypingDNA.prototype.getDiagram = function() {
72+
// still works but will be deprecated in favor of getTypignPattern()
6973
return TypingDNA.getDiagram.apply(this, arguments);
7074
}
7175
TypingDNA.prototype.getExtendedDiagram = function() {
76+
// still works but will be deprecated in favor of getTypignPattern()
7277
return TypingDNA.getExtendedDiagram.apply(this, arguments);
7378
}
7479
TypingDNA.prototype.getMouseDiagram = function() {

versions/typingdna_2.11.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,23 @@ function TypingDNA() {
5757
return TypingDNA.getTypingPattern.apply(this, arguments);
5858
}
5959
TypingDNA.prototype.get = function() {
60+
// still works but will be deprecated in favor of getTypignPattern()
6061
return TypingDNA.get.apply(this, arguments);
6162
}
6263
TypingDNA.prototype.startDiagram = function() {
63-
return TypingDNA.startDiagram.apply(this, arguments);
64+
// deprecated in favor of start()
65+
//return TypingDNA.startDiagram.apply(this, arguments);
6466
}
6567
TypingDNA.prototype.stopDiagram = function() {
66-
return TypingDNA.stopDiagram.apply(this, arguments);
68+
// deprecated in favor of stop()
69+
//return TypingDNA.stopDiagram.apply(this, arguments);
6770
}
6871
TypingDNA.prototype.getDiagram = function() {
72+
// still works but will be deprecated in favor of getTypignPattern()
6973
return TypingDNA.getDiagram.apply(this, arguments);
7074
}
7175
TypingDNA.prototype.getExtendedDiagram = function() {
76+
// still works but will be deprecated in favor of getTypignPattern()
7277
return TypingDNA.getExtendedDiagram.apply(this, arguments);
7378
}
7479
TypingDNA.prototype.getMouseDiagram = function() {

0 commit comments

Comments
 (0)