sandbox/tmp/cache/assets/CBB/AA0/sprockets%2F34b613f862555697eb944a2ff6ac3526 in iugu-ux-0.8.0 vs sandbox/tmp/cache/assets/CBB/AA0/sprockets%2F34b613f862555697eb944a2ff6ac3526 in iugu-ux-0.8.5

- old
+ new

@@ -1,35 +1,45 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357240099.7119081: @value"c {I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357673893.5991979YB: @value"& {I" class:EFI"BundledAsset;FI"logical_path;FI"'iugu-ux/components/iugu-ux-main.js;FI" pathname;FI"t/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/iugu-ux-main.js.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-01-03T16:37:43-02:00;FI" length;Fi\ I" digest;F"%82e257cfac672b3720c3967a4600b92cI" source;FI"\ (function() { +mtime;FI"2013-01-08T16:22:17-02:00;FI" length;Fi +I" digest;F"%f6cdb68d9afba6810ab9f9e54fe9b26fI" source;FI" +(function() { - this.configure_ui_action = function(button, callback) { + this.configure_ui_action = function(button, callback, disable_click) { if (callback == null) { callback = null; } + if (disable_click == null) { + disable_click = false; + } button = $(button); if (window.IS_MOBILE) { button.on('touchstart', function(evt) { return $(this).addClass('active'); }); - return button.on('touchend', function(evt) { + button.on('touchend', function(evt) { $(this).removeClass('active'); if (callback) { return callback(evt); } }); } else { button.on('mousedown', function(evt) { return $(this).addClass('active'); }); - return button.on('mouseup', function(evt) { + button.on('mouseup', function(evt) { $(this).removeClass('active'); if (callback) { return callback(evt); } }); } + if (disable_click) { + return button.on('click', function(evt) { + return evt.preventDefault(); + }); + } }; this.configure_ui_button = function(button) { debug("Configuring UI Button"); return configure_ui_action(button, function() { @@ -81,6 +91,6 @@ } }); }); }).call(this); -;FI"required_assets_digest;F"%89d6ad67f3152257183a939318a2b7e9I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862 +;FI"required_assets_digest;F"%f656305138a2e69d226e0aee16e73c1cI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862 \ No newline at end of file