Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 2dacfe1

Browse files
author
Kamil Kisiela
committed
refactor(theme): typeof instead of angular helper
1 parent 06043b9 commit 2dacfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runs/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default (formlyConfigProvider) => {
77
formlyConfigProvider.templateManipulators.preWrapper.push((template, options) => {
88
// adds md-theme only when:
99
// templateOptions.theme is defined
10-
if (angular.isDefined(options.templateOptions.theme)) {
10+
if (typeof options.templateOptions.theme !== 'undefined') {
1111
return ngModelAttrsManipulator(template, options, 'md-theme', options.templateOptions.theme);
1212
}
1313
return template;

0 commit comments

Comments
 (0)