Living SPEAK guideline used internally to share same structure and code style. It is work in progress and you are welcomed to pull request it.
The following guidelines apply to JavaScript for components that use the 1.1 version of the SPEAK Core.
get
and set
methods, as direct assignment will break binding.
Require it, and extend it:
define(["/path/to/speakevent.js", "underscore"], function (events, _) {
var API = {}
_.extend(API, events);
return API;
});
API.trigger("events");