Is the trigger function throwing the error? What does alert(this.runtime.trigger) give you?
Edit: you can call the function but since the calling function isn't part of the instance object, "this" isn't an instance so it doesn't have this.runtime.
If your object only ever has one instance you could add a global var that you set in your onCreate function to be "this", then you can use the var instead in your function.
R0J0hound: Sorry about the wait... when I do the alert, I get this:
[ ] CONSOLE: TypeError: 'undefined' is not an object (evaluating 'this.runtime.trigger')
[ ] CONSOLE: Error: TypeError: 'undefined' is not an object (evaluating 'this.runtime.trigger')(0) thrown; Sorting... (0) from ()
So... same thing. And in my OnCreate, I have this : var self = this;
Yet, at times, I STILL need to remind it that self = this, cause it forgets throughout the project. But even then, it still doesn't work on this particular situation.