Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion angular-pouchdb.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ pouchdb.provider 'pouchdb', ->
from: db.replicate.from.bind(db)
sync: db.replicate.sync.bind(db)
destroy: qify db.destroy.bind(db)
login: qify db.login.bind(db)
getSession: qify db.getSession.bind(db)
]

# pouch-repeat="name in collection"
Expand All @@ -116,7 +118,7 @@ pouchdb.directive 'pouchRepeat',
top = angular.element(document.createElement('div'))
parent.append(top)
[cursor, collection, sort] =
/^\s*([a-zA-Z0-9]+)\s*in\s*([a-zA-Z0-9]+)\s*(?:order by\s*([a-zA-Z0-9\.,]+))?$/.exec($attr.pouchRepeat).splice(1)
/^\s*([a-zA-Z0-9]+)\s*in\s*([a-zA-Z0-9]+)\s*(?:order by\s*([^\s]+))?$/.exec($attr.pouchRepeat).splice(1)

# The blocks managed by this directive.
blocks = []
Expand Down
6 changes: 4 additions & 2 deletions angular-pouchdb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.