Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quoted object keys prevents Closure compiler name mangling #98

Merged
merged 1 commit into from Dec 7, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions bean.js
Expand Up @@ -706,16 +706,16 @@
}

, bean = {
on : on
, add : add
, one : one
, off : off
, remove : off
, clone : clone
, fire : fire
, Event : Event
, setSelectorEngine : setSelectorEngine
, noConflict : function () {
'on' : on
, 'add' : add
, 'one' : one
, 'off' : off
, 'remove' : off
, 'clone' : clone
, 'fire' : fire
, 'Event' : Event
, 'setSelectorEngine' : setSelectorEngine
, 'noConflict' : function () {
context[name] = old
return this
}
Expand Down
36 changes: 18 additions & 18 deletions src/ender.js
Expand Up @@ -21,33 +21,33 @@

, hover = function (enter, leave, i) { // i for internal
for (i = this.length; i--;) {
b.on.call(this, this[i], 'mouseenter', enter)
b.on.call(this, this[i], 'mouseleave', leave)
b['on'].call(this, this[i], 'mouseenter', enter)
b['on'].call(this, this[i], 'mouseleave', leave)
}
return this
}

, methods = {
on : on
, addListener : on
, bind : on
, listen : on
, delegate : add // jQuery compat, same arg order as add()
'on' : on
, 'addListener' : on
, 'bind' : on
, 'listen' : on
, 'delegate' : add // jQuery compat, same arg order as add()

, one : one
, 'one' : one

, off : off
, unbind : off
, unlisten : off
, removeListener : off
, undelegate : off
, 'off' : off
, 'unbind' : off
, 'unlisten' : off
, 'removeListener' : off
, 'undelegate' : off

, emit : fire
, trigger : fire
, 'emit' : fire
, 'trigger' : fire

, cloneEvents : clone
, 'cloneEvents' : clone

, hover : hover
, 'hover' : hover
}

, shortcuts =
Expand All @@ -59,7 +59,7 @@
methods[shortcuts[i]] = integrate('on', shortcuts[i])
}

b.setSelectorEngine($)
b['setSelectorEngine']($)

$.ender(methods, true)
}(ender);