You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks so much for the great plugin, it is really useful. There is a bug that I found for attributes in bindings. Sorry I didn't do a pull requests but here is the patch:
*** backbone.stickit.js Tue Sep 18 15:39:16 2012
--- backbone.stickit.new.js Tue Sep 18 15:39:27 2012
***************
*** 64,70 ****
_.each(attributes, function(attrConfig) {
var lastClass = '',
updateAttr = function() {
! var val = applyViewFn(self, attrConfig.format) || model.get(modelAttr);
// If it is a class then we need to remove the last value and add the new.
if (attrConfig.name == 'class') {
$el.removeClass(lastClass).addClass(val);
--- 64,70 ----
_.each(attributes, function(attrConfig) {
var lastClass = '',
updateAttr = function() {
! var val = applyViewFn(self, attrConfig.format, model.get(attrConfig.observe)) || model.get(modelAttr);
// If it is a class then we need to remove the last value and add the new.
if (attrConfig.name == 'class') {
$el.removeClass(lastClass).addClass(val);
The text was updated successfully, but these errors were encountered:
Thanks so much for the great plugin, it is really useful. There is a bug that I found for
attributes
inbindings
. Sorry I didn't do a pull requests but here is the patch:The text was updated successfully, but these errors were encountered: