change function declaration

This commit is contained in:
2017-10-22 22:49:01 +02:00
parent b16c0d21a2
commit 6ec06be6c8
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ var $ = function(selector){
select: (selector) => { select: (selector) => {
return document.querySelectorAll(selector); return document.querySelectorAll(selector);
}, },
link: function(node){ link: (node) => {
return (actuator) => { return (actuator) => {
let update = function(endpoint, method, props) { let update = function(endpoint, method, props) {
Sui.http.ajax({ Sui.http.ajax({

View File

@@ -7,7 +7,7 @@ var Sui = {
select: (selector) => { select: (selector) => {
return document.querySelectorAll(selector); return document.querySelectorAll(selector);
}, },
link: function(node){ link: (node) => {
return (actuator) => { return (actuator) => {
let update = function(endpoint, method, props) { let update = function(endpoint, method, props) {
Sui.http.ajax({ Sui.http.ajax({