Skip to content

Commit cc5bfcd

Browse files
authored
Merge pull request #209 from canjs/add-deprecation-links-to-warning
Add links to scope.vm and scope.top in the scope.root warning
2 parents a5711cd + b4dc4b1 commit cc5bfcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can-view-scope.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ defineLazyValue(Scope.prototype, 'templateContext', function() {
984984
});
985985

986986
defineLazyValue(Scope.prototype, 'root', function() {
987-
canLog.warn('`scope.root` is deprecated. Use either `scope.top` or `scope.vm` instead.');
987+
canLog.warn('`scope.root` is deprecated. Use either `scope.top`: https://canjs.com/doc/can-stache/keys/scope.html#scope_top or `scope.vm`: https://canjs.com/doc/can-stache/keys/scope.html#scope_vm instead.');
988988
return this.getRoot();
989989
});
990990

0 commit comments

Comments
 (0)