Opened 6 years ago
Closed 6 years ago
#18514 closed defect (duplicate)
Shrinksafe fails to shrink angular (tested with 1.3.6)
Reported by: | BenjaminH | Owned by: | Richard Backhouse |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | ShrinkSafe | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Here is the simplified case:
The following input code
define([], function () { this.testAttribute = function /***/problematicFunction/***/(name, directiveFactory) { var testFunction = function() { //doAnything }; testFunction(/***/problematicFunction/***/); return this; }; });
becomes
define("desktop/shrinkSafeTest",[],function(){ this.testAttribute=function /***/problematicFunction/***/(_1,_2){ var _3=function(){ }; _3(/***/_4/***/); return this; }; });
Note: See
TracTickets for help on using
tickets.
What I forgot to mention: in AngularJS, the problematic function is
registerDirective
.