ソースを参照

Update options method to getOptions.

zhixin 11 年 前
コミット
86fd57f7a5

+ 1 - 1
docs/_i18n/en/documentation/methods.md

@@ -18,7 +18,7 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
     </thead>
     <tbody>
     <tr>
-        <td>options</td>
+        <td>getOptions</td>
         <td>none</td>
         <td>Return the options object.</td>
     </tr>

+ 1 - 1
docs/_i18n/es/documentation/methods.md

@@ -18,7 +18,7 @@ Sintaxis para llamar a un método: `$('#table').bootstrapTable('method', paramet
     </thead>
     <tbody>
     <tr>
-        <td>options</td>
+        <td>getOptions</td>
         <td>none</td>
         <td>Return the options object.</td>
     </tr>

+ 1 - 1
docs/_i18n/fr/documentation/methods.md

@@ -18,7 +18,7 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
     </thead>
     <tbody>
     <tr>
-        <td>options</td>
+        <td>getOptions</td>
         <td>none</td>
         <td>Return the options object.</td>
     </tr>

+ 1 - 1
docs/_i18n/zh-cn/documentation/methods.md

@@ -18,7 +18,7 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
     </thead>
     <tbody>
     <tr>
-        <td>options</td>
+        <td>getOptions</td>
         <td>none</td>
         <td>Return the options object.</td>
     </tr>

+ 2 - 2
src/bootstrap-table.js

@@ -1493,7 +1493,7 @@
         $td.attr('rowspan', rowspan).attr('colspan', colspan).show();
     };
 
-    BootstrapTable.prototype.options = function () {
+    BootstrapTable.prototype.getOptions = function () {
         return this.options;
     };
 
@@ -1609,7 +1609,7 @@
     // =======================
 
     var allowedMethods = [
-        'options',
+        'getOptions',
         'getSelections', 'getData',
         'load', 'append', 'prepend', 'remove',
         'insertRow', 'updateRow',