[DependsOn] Fixed reference undefined data-dependsonref attribute;
/**
- * @author Alexey Stsefanovich (ala'n)
- * @version 2.1.0
+ * @author Alexey Stsefanovich (ala'n), Bernatskaya Yana (YanaBr)
+ * @version 2.1.1
*
* DependsOn plugin Elements Reference Registry
* Store and manage known elements references
console.error('[DependsOn]: "this" reference name is not allowed, it can not be reached by queries');
}
+ // Initialize data-dependsonref attribute for @this reference to listen change action
+ if (!this.name) {
+ this.$el.attr('data-dependsonref', '');
+ }
+
this.$el.data('dependsonsubject', this);
}
