Эх сурвалжийг харах

SetOption and LoadExtension now return the object itself

Estevão Soares dos Santos 10 жил өмнө
parent
commit
930302463a
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      src/ng-showdown.js

+ 4 - 0
src/ng-showdown.js

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