Page 1 of 1

Generic Security Context : ReferenceError $t is not defined

Posted: Tue Apr 01, 2014 5:57 pm
by luke315774

I followed the instruction to create a custom implementation for wrapping my REST calls as in the exemple : http://docs.appery.io/documentation/g...

My code in the custom js file is :

$t.BergerRESTImplementation = $t.createClass(SecurityContext, {

invoke: function(service, settings) {

Code: Select all

     //Do any logic before call 
     //alert('before invoke'); 

$t.BergerRESTImplementation.$super.invoke.call(this, service, settings);

Code: Select all

     //Do any logic after call 
     //alert('after invoke'); 

}

});

I get errors in the console :

Image

Is there something i'm missing that is not in the doc?


Generic Security Context : ReferenceError $t is not defined

Posted: Tue Apr 01, 2014 6:23 pm
by Maryna Brodina

Hello!

Please replace $t with Appery.


Generic Security Context : ReferenceError $t is not defined

Posted: Tue Apr 01, 2014 7:23 pm
by luke315774

Thanks you miss Brodina!