Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6e2c785

Browse files
committed
fixup! feat($compile): add support for arbitrary property and event bindings
1 parent 582bc18 commit 6e2c785

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,15 @@
171171
/* ng/q.js */
172172
"markQExceptionHandled": false,
173173

174+
/* sce.js */
175+
"SCE_CONTEXTS": false,
176+
174177
/* ng/directive/directives.js */
175178
"ngDirective": false,
176179

180+
/* ng/directive/ngEventDirs.js */
181+
"createEventDirective": false,
182+
177183
/* ng/directive/input.js */
178184
"VALID_CLASS": false,
179185
"INVALID_CLASS": false,

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
16321632
registerContext(SCE_CONTEXTS.HTML, [
16331633
'iframe|srcdoc',
16341634
'*|innerHTML',
1635-
'*|outerHTML',
1635+
'*|outerHTML'
16361636
]);
16371637
registerContext(SCE_CONTEXTS.CSS, ['*|style']);
16381638
registerContext(SCE_CONTEXTS.URL, [

test/ng/compileSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12151,7 +12151,7 @@ describe('$compile', function() {
1215112151
}));
1215212152

1215312153
it('should use angular.element(x).on() API to add listener', inject(function($compile, $rootScope) {
12154-
spyOn(angular.element.prototype, "on");
12154+
spyOn(angular.element.prototype, 'on');
1215512155

1215612156
element = $compile('<span ng-on-foo="name = name + 3"></span>')($rootScope);
1215712157

@@ -12839,7 +12839,7 @@ describe('$compile', function() {
1283912839
});
1284012840
});
1284112841

12842-
})
12842+
});
1284312843
});
1284412844

1284512845
describe('addPropertySecurityContext', function() {

0 commit comments

Comments
 (0)