vendor/assets/javascripts/bootstrap-modal.js in bootstrap-sass-2.2.1.1 vs vendor/assets/javascripts/bootstrap-modal.js in bootstrap-sass-2.2.2.0
- old
+ new
@@ -1,7 +1,7 @@
/* =========================================================
- * bootstrap-modal.js v2.2.1
+ * bootstrap-modal.js v2.2.2
* http://twitter.github.com/bootstrap/javascript.html#modals
* =========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -191,10 +191,12 @@
/* MODAL PLUGIN DEFINITION
* ======================= */
+ var old = $.fn.modal
+
$.fn.modal = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
@@ -209,9 +211,18 @@
, keyboard: true
, show: true
}
$.fn.modal.Constructor = Modal
+
+
+ /* MODAL NO CONFLICT
+ * ================= */
+
+ $.fn.modal.noConflict = function () {
+ $.fn.modal = old
+ return this
+ }
/* MODAL DATA-API
* ============== */