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
This unfortunately deletes the function name "property" which makes the following code throw the exception:
case 'function':
switch(mapped.name) {
case 'property':
mappingType = '=';
break;
case 'event':
mappingType = '&';
break;
default:
throw 'Invalid mapping for "' + attr
+ '" - function name must be "property" or "event"';
}
The mapped.name does not find the name 'property' in the function because Uglify removed it.
The text was updated successfully, but these errors were encountered:
My code was as follows:
Using ng-polymer-elements.min.js, I would receive the following error:
Invalid mapping for "ngModel" - function name must be "property" or "event"
Using the ng-polymer-elements.js file (the full version), I do not see the error.
I dug into it and when Uglify passes over ng-polymer-elements.js, it converts this:
into
This unfortunately deletes the function name "property" which makes the following code throw the exception:
The
mapped.name
does not find the name 'property' in the function because Uglify removed it.The text was updated successfully, but these errors were encountered: