template/base/assets/js/app.js in edge_framework-1.2.5 vs template/base/assets/js/app.js in edge_framework-1.2.6
- old
+ new
@@ -1,3 +1,12 @@
-(function () {
- // Your app-specific script here
-}() );
+var app = {
+ init: function() {
+ $(".something").on("click", this.doSomething);
+ $(".something-2").on("click", this.doSomething2);
+ },
+ doSomething: function(e) {},
+ doSomething2: function(e) {},
+};
+
+$(document).ready(function() {
+ app.init();
+});
\ No newline at end of file