Explorar el Código

SetOption and LoadExtension now return the object itself

Estevão Soares dos Santos hace 10 años
padre
commit
930302463a
Se han modificado 1 ficheros con 4 adiciones y 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) {
             this.setOption = function (key, value) {
                 config.key = value;
                 config.key = value;
+
+                return this;
             };
             };
 
 
             /**
             /**
@@ -61,6 +63,8 @@ if (angular && Showdown) {
              */
              */
             this.loadExtension = function (extensionName) {
             this.loadExtension = function (extensionName) {
                 config.extensions.push(extensionName);
                 config.extensions.push(extensionName);
+
+                return this;
             };
             };
 
 
             function SDObject() {
             function SDObject() {