Skip to content

Instantly share code, notes, and snippets.

Avatar
🍭
heyyyyy ya!

JSM jsm1003

🍭
heyyyyy ya!
  • beijing
View GitHub Profile
@jsm1003
jsm1003 / Parser.js
Created Feb 13, 2017 — forked from Saul-Mirone/MVVM.js
A simple mvvm
View Parser.js
class Register {
constructor() {
this.routes = []
}
regist(obj, k, fn) {
const _i = this.routes.find(function(el) {
if((el.key === k || el.key.toString() === k.toString())
&& Object.is(el.obj, obj)) {
return el
You can’t perform that action at this time.