mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
SetOption and LoadExtension now return the object itself
This commit is contained in:
parent
a1c0d8f7dd
commit
930302463a
|
@ -38,6 +38,8 @@ if (angular && Showdown) {
|
|||
*/
|
||||
this.setOption = function (key, value) {
|
||||
config.key = value;
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -61,6 +63,8 @@ if (angular && Showdown) {
|
|||
*/
|
||||
this.loadExtension = function (extensionName) {
|
||||
config.extensions.push(extensionName);
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
function SDObject() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user