File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var Compiler = require('./compiler'),
17
17
*/
18
18
function ViewModel ( options ) {
19
19
// compile if options passed, if false return. options are passed directly to compiler
20
- if ( options === false ) return ;
20
+ if ( options === false ) return
21
21
new Compiler ( this , options )
22
22
}
23
23
@@ -26,11 +26,12 @@ function ViewModel (options) {
26
26
var VMProto = ViewModel . prototype
27
27
28
28
/**
29
- * init allows config compilation after instantiation
30
- * var a = new Vue(false); a.init( config );
29
+ * init allows config compilation after instantiation:
30
+ * var a = new Vue(false)
31
+ * a.init(config)
31
32
*/
32
- def ( VMProto , 'init' , function ( options ) {
33
- new Compiler ( this , options )
33
+ def ( VMProto , '$ init' , function ( options ) {
34
+ new Compiler ( this , options )
34
35
} )
35
36
36
37
/**
You can’t perform that action at this time.
0 commit comments