app/assets/javascripts/bhf/classes/Ajaxify.js in bhf-0.10.12 vs app/assets/javascripts/bhf/classes/Ajaxify.js in bhf-0.10.13

- old
+ new

@@ -23,21 +23,21 @@ text: Locale.get('Notifications.failure') } }; this.setOptions(_options); }, - + setup: function(){ this.holder = this.options.holder.inject(document.body); }, - + applyEvents: function(el){ el = document.id(el || document.body); var apply = function(action, callback) { el.getElements('[data-remote="true"]').addEvent(action, callback); }; - + apply(this.options.events.loading.name, this.loading.bind(this)); apply(this.options.events.success.name, this.success.bind(this)); apply(this.options.events.failure.name, this.failure.bind(this)); }, @@ -61,6 +61,6 @@ setTimeout(function(){ this.holder.erase('class'); }.bind(this), this.options.fadeOutDuration); } } -}); \ No newline at end of file +});