Skip to content

Commit

Permalink
Fix unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed Jul 12, 2017
1 parent ed36649 commit d1d625f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ef.js",
"version": "0.3.3-alpha.3",
"version": "0.3.3-alpha.4",
"description": "(maybe) An elegant HTML template engine & basic framework",
"main": "dist/ef.min.js",
"module": "src/ef.js",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { assign } from './utils/polyfills.js'
import { queueDom, inform, exec } from './utils/render-query.js'

const unsubscribe = (_path, fn, subscribers) => {
const pathArr = _path.split('.')
const subscriberNode = resolveSubscriber(pathArr, subscribers)
const subscriberNode = resolveSubscriber(_path, subscribers)
ARR.remove(subscriberNode, fn)
}

Expand Down

0 comments on commit d1d625f

Please sign in to comment.