File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
var _ = require ( '../util' )
2
2
var Watcher = require ( '../watcher' )
3
+ var Path = require ( '../parse/path' )
3
4
var textParser = require ( '../parse/text' )
4
5
var dirParser = require ( '../parse/directive' )
5
6
var expParser = require ( '../parse/expression' )
@@ -146,10 +147,12 @@ exports.$interpolate = function (text) {
146
147
* so that it is easier to inspect in console.
147
148
* This method assumes console is available.
148
149
*
149
- * @param {String } [key ]
150
+ * @param {String } [path ]
150
151
*/
151
152
152
- exports . $log = function ( key ) {
153
- var data = this [ key || '_data' ]
153
+ exports . $log = function ( path ) {
154
+ var data = path
155
+ ? Path . get ( this , path )
156
+ : this . _data
154
157
console . log ( JSON . parse ( JSON . stringify ( data ) ) )
155
158
}
You can’t perform that action at this time.
0 commit comments