Merge branch 'v3' into Av2

Conflicts:
	LICENSE
	builds/4chan-X.js
	builds/appchan-x.user.js
	builds/crx/script.js
	src/General/UI.coffee
This commit is contained in:
Zixaphir 2013-05-05 15:09:27 -07:00
commit 443e48d280
6 changed files with 28 additions and 9 deletions

3
.gitignore vendored
View File

@ -5,4 +5,5 @@ tmp-crx/
tmp-userjs/
tmp-userscript/
builds/4chan-X.zip
Gruntfile.js
Gruntfile.js
4chan-x*

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.0.0 - 2013-05-03
* appchan x - Version 2.0.0 - 2013-05-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -19,7 +19,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.0.0 - 2013-05-03
* appchan x - Version 2.0.0 - 2013-05-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -4741,6 +4741,7 @@
}
});
$.on(root, endEvents, o.hoverend);
$.on(d, 'keydown', o.hoverend);
return $.on(root, 'mousemove', o.hover);
};
hover = function(e) {
@ -4757,9 +4758,13 @@
style.left = left;
return style.right = right;
};
hoverend = function() {
hoverend = function(e) {
if (e.type === 'keydown' && e.keyCode !== 13) {
return;
}
$.rm(this.el);
$.off(this.root, this.endEvents, this.hoverend);
$.off(d, 'keydown', this.hoverend);
$.off(this.root, 'mousemove', this.hover);
if (this.cb) {
return this.cb.call(this);

View File

@ -19,7 +19,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.0.0 - 2013-05-03
* appchan x - Version 2.0.0 - 2013-05-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -4737,6 +4737,7 @@
}
});
$.on(root, endEvents, o.hoverend);
$.on(d, 'keydown', o.hoverend);
return $.on(root, 'mousemove', o.hover);
};
hover = function(e) {
@ -4753,9 +4754,13 @@
style.left = left;
return style.right = right;
};
hoverend = function() {
hoverend = function(e) {
if (e.type === 'keydown' && e.keyCode !== 13) {
return;
}
$.rm(this.el);
$.off(this.root, this.endEvents, this.hoverend);
$.off(d, 'keydown', this.hoverend);
$.off(this.root, 'mousemove', this.hover);
if (this.cb) {
return this.cb.call(this);

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.0.0 - 2013-05-03
* appchan x - Version 2.0.0 - 2013-05-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -4738,6 +4738,7 @@
}
});
$.on(root, endEvents, o.hoverend);
$.on(d, 'keydown', o.hoverend);
return $.on(root, 'mousemove', o.hover);
};
hover = function(e) {
@ -4754,9 +4755,13 @@
style.left = left;
return style.right = right;
};
hoverend = function() {
hoverend = function(e) {
if (e.type === 'keydown' && e.keyCode !== 13) {
return;
}
$.rm(this.el);
$.off(this.root, this.endEvents, this.hoverend);
$.off(d, 'keydown', this.hoverend);
$.off(this.root, 'mousemove', this.hover);
if (this.cb) {
return this.cb.call(this);

View File

@ -323,6 +323,7 @@ UI = do ->
o.hover o.latestEvent if el.parentNode
$.on root, endEvents, o.hoverend
$.on d, 'keydown', o.hoverend
$.on root, 'mousemove', o.hover
hover = (e) ->
@ -348,9 +349,11 @@ UI = do ->
style.left = left
style.right = right
hoverend = ->
hoverend = (e) ->
return if e.type is 'keydown' and e.keyCode isnt 13
$.rm @el
$.off @root, @endEvents, @hoverend
$.off d, 'keydown', @hoverend
$.off @root, 'mousemove', @hover
@cb.call @ if @cb