Skip to content

Commit 1ecbe40

Browse files
committed
check for $__ before using its adhocPaths
1 parent e84ff06 commit 1ecbe40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/document.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,8 @@ Document.prototype.get = function (path, type) {
732732
*/
733733

734734
Document.prototype.$__path = function (path) {
735-
var adhocs = this.$__.adhocPaths
735+
var base = this.$__
736+
, adhocs = (base) ? base.adhocPaths : undefined
736737
, adhocType = adhocs && adhocs[path];
737738

738739
if (adhocType) {

0 commit comments

Comments
 (0)