Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Commit 4a1e8a3

Browse files
author
joern.zaefferer
committed
Fixed metadata plugin to use a different attribute to avoid collisions with attributes as specified by whatwg spec (already implemented by Opera)
Won't break compability as long as metadata's data()-method was used. git-svn-id: http://jqueryjs.googlecode.com/svn/trunk/plugins/metadata@1915 c715fcbe-d12f-0410-84c4-316a508785bb
1 parent 9385702 commit 4a1e8a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/jQuery/metadata.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
// settings
5959
$.meta = {
6060
type: "class",
61-
name: "data",
61+
name: "metadata",
6262
setType: function(type,name){
6363
this.type = type;
6464
this.name = name;
6565
},
6666
cre: /({.*})/,
67-
single: 'data'
67+
single: 'metadata'
6868
};
6969

7070
// reference to original setArray()
@@ -114,7 +114,7 @@
114114
* @type jQuery
115115
* @cat Plugins/Metadata
116116
*/
117-
$.fn.data = function(){
118-
return this[0][$.meta.single || "data"];
117+
$.fn.data = function() {
118+
return this[0][$.meta.single];
119119
};
120120
})(jQuery);

0 commit comments

Comments
 (0)