Discussion:
Dom.batch(Tabview) returns string instead of object in 2.7.0
memibeltrame
2009-04-16 07:34:58 UTC
Permalink
Hi all

I have encountered some strange behaviour of YAHOO.util.Dom.batch() after the upgrade to 2.7.0

When it is passed a Tabview object up to 2.6.0 batch() would pass the object of the tab to the callback. since 2.7.0 it passes a string.

I have not found any post on this, neither in the forum nor the bugtracker. and since there is no mention in the release notes i gueass it is a bug, not a feature.

can anyone confirm this? i'll be glad to file a report.

Cheers Memi

Examples:
js code used in both examples

(function() {
YAHOO.namespace('myApp');
YAHOO.myApp.tabView = new YAHOO.widget.TabView('demo');

YAHOO.myApp.doSomeBatching = function () {
console.log(YAHOO.myApp.tabView.get('tabs'));

//the actual batch
YAHOO.util.Dom.batch(YAHOO.myApp.tabView.get('tabs'), function (tab) {
console.log(tab);
});
}
YAHOO.myApp.doSomeBatching();

})();

firebug output in 2.6.0:
[Tab LI loadHandler=Object _queue=[0] _events=Object, Tab LI loadHandler=Object _queue=[0] _events=Object, Tab LI loadHandler=Object _queue=[0] _events=Object]
Tab LI loadHandler=Object _queue=[0] _events=Object
Tab LI loadHandler=Object _queue=[0] _events=Object
Tab LI loadHandler=Object _queue=[0] _events=Object

firebug output in 2.7.0:
[Tab LI loadHandler=Object _queue=[0] _events=Object, Tab LI loadHandler=Object _queue=[0] _events=Object, Tab LI loadHandler=Object _queue=[0] _events=Object]
<li>
<li class="selected" title="active">
<li>

here the links the two examples, please note the output in firebug

for 2.6.0
http://memibeltrame.ch/yuitests/260/tabview/frommarkup.html

for 2.7.0
http://memibeltrame.ch/yuitests/270/tabview/frommarkup.html



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...