vendor/assets/javascripts/alert.js in flashgrid-1.2.0 vs vendor/assets/javascripts/alert.js in flashgrid-1.3.0

- old
+ new

@@ -45,21 +45,22 @@ // ALERT PLUGIN DEFINITION // ======================= - var old = $.fn.alert - - $.fn.alert = function (option) { + function Plugin(option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) } + var old = $.fn.alert + + $.fn.alert = Plugin $.fn.alert.Constructor = Alert // ALERT NO CONFLICT // ================= \ No newline at end of file