Bug Tracker

Changes between Version 1 and Version 2 of Ticket #13550, comment 4


Ignore:
Timestamp:
Mar 1, 2013, 9:06:06 PM (9 years ago)
Author:
m_gol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13550, comment 4

    v1 v2  
    1111}
    1212}}}
    13 After that, we expect to have a copy of the target jQuery object in $link.data('tabs-target'). However, just reading this data using this parameter causes the code to create a 'tabs-target' data field which causes the tabsTarget field to not even be read.
     13After that, I expect to have a copy of the target jQuery object in $link.data('tabs-target'). However, just reading this data using this parameter causes the code to create a 'tabs-target' data field which causes the tabsTarget field to not even be read.
    1414
    15 Sure, we could write `var targetSelector = $link.attr('data-tabs-target')` instead but current code is more flexible - we can have elements set for this plugin via JS and it works even if there was no `data-tabs-target` attribute.
     15Sure, I could write `var targetSelector = $link.attr('data-tabs-target')` instead but current code is more flexible - we can have elements set for this plugin via JS and it works even if there was no `data-tabs-target` attribute.