Commit a00b849a authored by Jacob Thornton's avatar Jacob Thornton
Browse files

rebuild and change data-attr to have priority over options

parent e05d39d4
Showing with 3 additions and 3 deletions
+3 -3
......@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Aug 27 18:02:38 PDT 2011
* Date: Sat Aug 27 18:04:39 PDT 2011
*/
/* Reset.less
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
......
......@@ -26,7 +26,7 @@
, getTitle: function () {
var title
if (typeof this.options.title == 'string') {
title = this.options.title || this.$element.attr('data-title')
title = this.$element.attr('data-title') || this.options.title
} else if (typeof this.options.title == 'function') {
title = this.options.title.call(this.$element[0])
}
......@@ -36,7 +36,7 @@
, getContent: function () {content
var content
if (typeof this.options.content == 'string') {
content = this.options.content || this.$element.attr('data-content')
content = this.$element.attr('data-content') || this.options.content
} else if (typeof this.options.content == 'function') {
content = this.options.content.call(this.$element[0])
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment