@@ -277,7 +277,7 @@ type ViewModel struct {
277
277
// on an already mounted instance will have no effect.
278
278
// The method returns the instance itself so you can chain other
279
279
// instance methods after it.
280
- Mount func (elementOrselector string ) * ViewModel `js:"$mount"`
280
+ Mount func (elementOrselector ... interface {} ) * js. Object `js:"$mount"`
281
281
282
282
// vm.$destroy( [remove] )
283
283
// remove Boolean optional
@@ -287,16 +287,6 @@ type ViewModel struct {
287
287
// Also, all $on and $watch listeners will be automatically removed.
288
288
Destroy func (remove bool ) `js:"$destroy"`
289
289
290
- // vm.$compile( element )
291
- // element HTMLElement
292
- // Partially compile a piece of DOM (Element or DocumentFragment).
293
- // The method returns a decompile function that tearsdown the directives
294
- // created during the process.
295
- // Note the decompile function does not remove the DOM.
296
- // This method is exposed primarily for
297
- // writing advanced custom directives.
298
- Compile func (element string ) `js:"$compile"`
299
-
300
290
// vm.$addChild( [options, constructor] )
301
291
// options Object optional
302
292
// constructor Function optional
@@ -391,7 +381,7 @@ func GetVM(structPtr interface{}) *ViewModel {
391
381
return vm
392
382
}
393
383
394
- // WatchEx using a simpler form to do Vue.$watch
384
+ // Watch using a simpler form to do Vue.$watch
395
385
func (v * ViewModel ) Watch (expression string , callback func (newVal * js.Object )) (unwatcher func ()) {
396
386
obj := v .Call ("$watch" , expression , callback )
397
387
return func () {
0 commit comments