瀏覽代碼

SetOption and LoadExtension now return the object itself

Estevão Soares dos Santos 10 年之前
父節點
當前提交
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() {