SetOption and LoadExtension now return the object itself

This commit is contained in:
Estevão Soares dos Santos 2014-11-11 22:12:45 +00:00
parent a1c0d8f7dd
commit 930302463a

View File

@ -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() {