I am working on a module that uses hook_js_alter() to replace the core JS with minified alternatives (of the correct version).
Minifying ajax.js, however, breaks it due to the lack of a semi-colon at the end of the Drupal.ajax.prototype.beforeSubmit function.
Attached is a patch to add the required semi-colon and allow the file to be successfully minified.
Comment | File | Size | Author |
---|---|---|---|
#3 | ajax_minified-1387098.patch | 481 bytes | LSU_JBob |
ajaxjs_allow_minification.patch | 461 bytes | nburles | |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedthnx!
Comment #2
droplet CreditAttribution: droplet commentedComment #3
LSU_JBob CreditAttribution: LSU_JBob commentedrerolled for 8.x-dev, picked up from the novice queue
Comment #4
LSU_JBob CreditAttribution: LSU_JBob commentedComment #5
oriol_e9gIt's good!
Comment #6
Dries CreditAttribution: Dries commentedEasy one. Committed to 8.x and backported to 7.x. Thanks all.