[jQuery] MetaData plugin - help needed FIXED
The functionality of the "get" method that the metadata plugin overloads is split out into a "set" method in 1.0.4. Just change the matadata plugin to overload "set" instead of "get", so it looks like this:
jQuery.fn._set = jQuery.fn.set;
jQuery.fn.set = function(arr){
var result = this._set.apply( this, arguments );
...
Should this be filed as a bug report, or is the matadata plugin not "official"?
--Erik
<div><span class="gmail_quote">On 12/13/06, <b class="gmail_sendername">Erik Beeson</b> <<a href="mailto:erik.beeson@gmail.com">erik.beeson@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I can confirm that the metadata plugin doesn't work with 1.0.4. It works fine with 1.0.3 though.
<span class="sg">
--Erik
</span><div><span class="q"><span class="gmail_quote">On 12/13/06, <b class="gmail_sendername">
Chris Domigan</b> <<a href="mailto:cdomigan@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cdomigan@gmail.com</a>> wrote:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_10f7f2fa72983038_5">
I've tried lots of ways:
given: <td class="blah" data="{foo:'bar'}"></td>
$("td.blah").get(0).foo;
$("td.blah").each(function() {
this.foo;
});
$("td.blah").each(function() {
$(this)[0].foo;
});
The point is though, that EVERY jquery "query" on my page, regardless of whether or not I'm accessing a metadata attribute, is passing "undefined" to the
jQuery.fn.get function defined in the metadata plugin, so it's not even getting so far as CHECKING whether there is metadata or not. Therefore the way in which I'm accessing the metadata seems to be moot at present.
<span>
Chris
</span>
</span></div><span class="q">_______________________________________________
jQuery mailing list
<a href="mailto:discuss@jquery.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
discuss@jquery.com</a>
<a href="http://jquery.com/discuss/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://jquery.com/discuss/</a>
</span></blockquote></div>
</blockquote></div>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/