Pārlūkot izejas kodu

added new loaded event. fixes #930

Igor Vaynberg 12 gadi atpakaļ
vecāks
revīzija
3be8547584
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -1454,6 +1454,8 @@ the specific language governing permissions and limitations under the Apache Lic
                 this.postprocessResults(data, initial);
 
                 postRender();
+
+                this.opts.element.trigger({ type: "loaded", data:data });
             })});
         },