Right way to unschedule

Right way to unschedule
0

#1

I don’t know what is the right way to unschedule in Cocos Creator.
This is my code

// in a cc.Class
A()
{
	var a = 1;
	var b = 2;
	this.scheduleOnce(this.B.bind(this, a, b), 0.5);
},
B(a, b)
{
	a += b;
	console.log(a);
},
C()
{
	this.unschedule(this.B);// dont work as expected.
}

#2

like this:

var thing = this.B.bind(this, a, b)
this.scheduleOnce(thing)
this.unschedule(thing)