Skip to content

Commit 7aa02e1

Browse files
committed
style fix for PR#344
1 parent b784efe commit 7aa02e1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/viewmodel.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var Compiler = require('./compiler'),
1717
*/
1818
function 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) {
2626
var 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
/**

0 commit comments

Comments
 (0)