12.05.2021, 06:26
Works for me as well. Here's a slightly modified script that will log each object change to the console. The first log argument is the element that is rotated. You can inspect this element in the dev tools and check if rotate transformation is applied or not.
Code:
$(function(){
$('.rotate').each(function(i, el) {
var $el = $(el), addr = $el.data('object'), icon = $el.find('.icon');
grp.listen(addr, function(obj) {
console.log(icon.get(0), obj.value);
icon.css('transform', 'rotate(' + obj.value + 'deg)');
});
});
});