Skip to content

Commit 764b914

Browse files
author
Gaku Ueda
committed
Returns false instead of null to avoid null.toString().
1 parent ea03a14 commit 764b914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viewDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
$ViewDirective.$inject = ['$state', '$compile', '$controller', '$injector', '$anchorScroll'];
33
function $ViewDirective( $state, $compile, $controller, $injector, $anchorScroll) {
4-
var $animator = $injector.has('$animator') ? $injector.get('$animator') : null;
4+
var $animator = $injector.has('$animator') ? $injector.get('$animator') : false;
55
var viewIsUpdating = false;
66

77
var directive = {

0 commit comments

Comments
 (0)