@github/catalyst
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -88,8 +88,8 @@ const controllers = new WeakSet(); | ||
const eventSep = action.lastIndexOf(':'); | ||
const methodSep = action.lastIndexOf('#'); | ||
const methodSep = Math.max(0, action.lastIndexOf('#')) || action.length; | ||
yield { | ||
type: action.slice(0, eventSep), | ||
tag: action.slice(eventSep + 1, methodSep), | ||
method: action.slice(methodSep + 1) | ||
}; | ||
method: action.slice(methodSep + 1) || 'handleEvent' | ||
} || 'handleEvent'; | ||
} | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "@github/catalyst", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "Helpers for creating HTML Elements as Controllers", | ||
@@ -42,2 +42,3 @@ "homepage": "https://github.github.io/catalyst", | ||
"chai-spies": "^1.0.0", | ||
"chromium": "^3.0.3", | ||
"eslint": "^7.20.0", | ||
@@ -44,0 +45,0 @@ "eslint-plugin-github": "^4.1.1", |
Sorry, the diff of this file is not supported yet
33498
18
39
438