2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

allow the use of data attributes to define popover options

This commit is contained in:
Jacob Thornton
2011-10-29 19:27:02 -07:00
parent ea50e8aeee
commit 640fd15464
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -299,7 +299,7 @@
}
$.fn.twipsy.elementOptions = function(ele, options) {
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options
return $.extend({}, options, $(ele).data())
}
}( window.jQuery || window.ender );