Handler Error

I've defined the following handler and when I go to call it using handler.invoke(new Message(/locateItem)); but I get the error:### BREAK: get handler: no property!

Handler.bind("/locateItem", { onInvoke: function(handler, message){ //This will highlight the item on the shelf, put this somewhere. var msg = new Message(deviceURL + "locateItem"); msg.requestText = JSON.stringify({value: locatedItem, locating: true}); if(deviceURL != "") handler.invoke(msg, Message.JSON); } });


  • Can you post the segment of code around the other place you're calling this handler? Please indent the code 5 spaces so it formats properly.


  • Your Handler definition looks off to me. You're missing Behavior in there. Check this tech note section for the proper syntax.

Sign In or Register to comment.