File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 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'),
1717 */
1818function ViewModel ( options ) {
1919 // compile if options passed, if false return. options are passed directly to compiler
20- if ( options === false ) return ;
20+ if ( options === false ) return
2121 new Compiler ( this , options )
2222}
2323
@@ -26,11 +26,12 @@ function ViewModel (options) {
2626var VMProto = ViewModel . prototype
2727
2828/**
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)
3132 */
32- def ( VMProto , 'init' , function ( options ) {
33- new Compiler ( this , options )
33+ def ( VMProto , '$ init' , function ( options ) {
34+ new Compiler ( this , options )
3435} )
3536
3637/**
You can’t perform that action at this time.
0 commit comments