]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
remove the ns option 4104/head
authorJon Stevens <latchkey@gmail.com>
Sun, 22 Jul 2012 21:36:23 +0000 (14:36 -0700)
committerJon Stevens <latchkey@gmail.com>
Sun, 22 Jul 2012 21:36:23 +0000 (14:36 -0700)
docs/templates/pages/javascript.mustache
js/bootstrap-popover.js
js/bootstrap-tooltip.js

index 4ec8a5f51736db9de2a03d0ec4b66c4105731129..13480719e24f0e7d9c9c8797d7b61eb1f985f619 100644 (file)
@@ -754,12 +754,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
               <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
              </td>
            </tr>
-           <tr>
-             <td>{{_i}}ns{{/i}}</td>
-             <td>{{_i}}string{{/i}}</td>
-             <td>'.tooltip'</td>
-             <td>{{_i}}jQuery event namespace{{/i}}</td>
-           </tr>
           </tbody>
         </table>
         <div class="alert alert-info">
@@ -918,12 +912,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
               <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
              </td>
            </tr>
-           <tr>
-             <td>{{_i}}ns{{/i}}</td>
-             <td>{{_i}}string{{/i}}</td>
-             <td>'.popover'</td>
-             <td>{{_i}}jQuery event namespace{{/i}}</td>
-           </tr>
           </tbody>
         </table>
         <div class="alert alert-info">
index 2a2b298dca387e2a0a6b3226e3bbc50a81f9a8b5..2e6d9c32a53d6f5789883720ccab5da53d7d3e81 100644 (file)
@@ -72,7 +72,7 @@
     }
 
   , destroy: function () {
-      this.hide().$element.off(this.options.ns).removeData('popover')
+      this.hide().$element.off('.' + this.type).removeData(this.type)
     }
 
   })
@@ -97,7 +97,6 @@
     placement: 'right'
   , content: ''
   , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
-  , ns: '.popover'
   })
 
 }(window.jQuery);
\ No newline at end of file
index fa1c9a6c53545463e22af3893689e5dc9c0b2237..f9447410ec49f7f13660baff816a30d3c87ad5db 100644 (file)
@@ -47,8 +47,8 @@
       if (this.options.trigger != 'manual') {
         eventIn  = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
         eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
-        this.$element.on(eventIn + this.options.ns, this.options.selector, $.proxy(this.enter, this))
-        this.$element.on(eventOut + this.options.ns, this.options.selector, $.proxy(this.leave, this))
+        this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
+        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
       }
 
       this.options.selector ?
     }
 
   , destroy: function () {
-      this.hide().$element.off(this.options.ns).removeData('tooltip')
+      this.hide().$element.off('.' + this.type).removeData(this.type)
     }
 
   }
   , title: ''
   , delay: 0
   , html: true
-  , ns: '.tooltip'
   }
 
 }(window.jQuery);