Explorar o código

SetOption and LoadExtension now return the object itself

Estevão Soares dos Santos %!s(int64=10) %!d(string=hai) anos
pai
achega
930302463a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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() {