Closed jewel-andraia closed 11 years ago
/* upgrade show and hide to trigger onshow/onhide events when fired. */
(function(show, hide) {
$.fn.show = function(speed, callback) {
$(this).trigger("onshow");
return show.call(this, speed, callback);
}
$.fn.hide = function(speed, callback) {
$(this).trigger("onhide");
return hide.call(this, speed, callback);
}
})($.fn.show, $.fn.hide);
In Chrome, modules['commentPreview'].subredditAutocompleteDropdown.show()
and modules['commentPreview'].hideSubredditAutocompleteDropdown()
invoke these. There doesn't seem to be anything bound to their onshow
and onhide
events, so they should probably just use the original jQuery methods. Same with any RES calls for $(element).show()
/ .hide()
P.S. On an unrelated note, hideSubredditAutocompleteDropdown
uses $("#subreddit_dropdown")
instead of modules['commentPreview'].subredditAutocompleteDropdown.hide()
. This seems fragile long-term.
@honestbleeps Do you remember the reasoning behind bringing in all the jquery.reddit.js code in afeea8182b617691f8668fb39f76eaec9633b77d? It's working in v4.1.5 on Opera 12.14, but now I have to track down why master is breaking..
I'm struggling to remember, but something after Reddit added support for flair editing had broken RES and/or RES was breaking it... I remember a late night of frustration on this one but I can't even remember the details now... I should've put in better comments... :-\
On Sat, Mar 9, 2013 at 11:37 AM, Andy Tuba notifications@github.com wrote:
@honestbleeps https://github.com/honestbleeps Do you remember the reasoning behind bringing in all the jquery.reddit.js code in afeea81https://github.com/honestbleeps/Reddit-Enhancement-Suite/commit/afeea8182b617691f8668fb39f76eaec9633b77d ?
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14667034 .
heh..
Well, editing flair still works in Opera 12.14 on OSX 10.8.2 after removing that whole chunk. I'll investigate a little to see if I can figure out why exactly v4.1.5 needed it and why it's now broken in master, but I'm inclined to just tear it out and hope for the best.
tear it out, do a little testing and if we have to we can always put it back in.
man I wish I had an automated system to "push" RESIssues posts to Github issues when they're legit... I need to better organize my todo list... and share it with you guys.
On Sat, Mar 9, 2013 at 12:45 PM, Andy Tuba notifications@github.com wrote:
heh.. afeea81https://github.com/honestbleeps/Reddit-Enhancement-Suite/commit/afeea81commit timestamp: 2012-11-14 T 14:53:13 -08:00
RES for Operahttps://addons.opera.com/en/extensions/details/reddit-enhancement-suite-2/?display=enlast release: Nov 15.
Well, editing flair still works in Opera 12.14 on OSX after removing that whole chunk. I'll investigate a little to see if I can figure out why exactly v4.1.5 needed it and why it's now broken in master, but I'm inclined to just tear it out and hope for the best.
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668257 .
Actually. That's sorta my fault. My plan was to manually push the legit bugs into this queue.
But I got lazy.
See also: my attempts at the wiki.
Regards, Tim Collins
This email was sent using a mobile device.
On 9 Mar 2013, at 18:52, honestbleeps notifications@github.com wrote:
tear it out, do a little testing and if we have to we can always put it back in.
man I wish I had an automated system to "push" RESIssues posts to Github issues when they're legit... I need to better organize my todo list... and share it with you guys.
On Sat, Mar 9, 2013 at 12:45 PM, Andy Tuba notifications@github.com wrote:
heh.. afeea81https://github.com/honestbleeps/Reddit-Enhancement-Suite/commit/afeea81commit timestamp: 2012-11-14 T 14:53:13 -08:00
RES for Operahttps://addons.opera.com/en/extensions/details/reddit-enhancement-suite-2/?display=enlast release: Nov 15.
Well, editing flair still works in Opera 12.14 on OSX after removing that whole chunk. I'll investigate a little to see if I can figure out why exactly v4.1.5 needed it and why it's now broken in master, but I'm inclined to just tear it out and hope for the best.
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668257 .
— Reply to this email directly or view it on GitHub.
@tio24 hah.. I should also be exercising my wiki privileges and copypasta content over ... after a release.
do you guys (and @patricksnape ??) use gtalk or some similar outlet we could collaborate on more easily?
also: maybe I'll build a browser extension to push any webpage into a github issue.. you know.. in all my copious spare time! ;-)
On Sat, Mar 9, 2013 at 12:57 PM, Andy Tuba notifications@github.com wrote:
@tio24 hah.. I should also be exercising my wiki privileges and copypasta content over ... after a release.
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668445 .
I'm on gtalk right now -- andytuba@gmail.com. How about an #enhancement channel on snoonet?
@honestbleeps yep, count me in, I can use gtalk via my patricksnape gmail account.
I need to pull these commits in so I can continue testing the MutationEvents, they are a bit of a pig because they seem to fire more than once sometimes. Bit busy this evening but got a lazy Sunday mapped out to make sure they're filtered correctly. @andytuba nice catch on the MutationObserver
I like @andytuba 's idea of IRC since it's better for multiway chat... http://webchat.snoonet.org
On Sat, Mar 9, 2013 at 1:03 PM, Patrick Snape notifications@github.comwrote:
@honestbleeps https://github.com/honestbleeps yep, count me in, I can use gtalk via my patricksnape gmail account.
I need to pull these commits in so I can continue testing the MutationEvents, they are a bit of a pig because they seem to fire more than once sometimes. Bit busy this evening but got a lazy Sunday mapped out to make sure they're filtered correctly. @andytubahttps://github.com/andytubanice catch on the MutationObserver
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668525 .
So we're communicating on #reddit? Or #enhancement?
On Sat, Mar 9, 2013 at 7:17 PM, honestbleeps notifications@github.com wrote:
I like @andytuba 's idea of IRC since it's better for multiway chat... http://webchat.snoonet.org On Sat, Mar 9, 2013 at 1:03 PM, Patrick Snape notifications@github.comwrote:
@honestbleeps https://github.com/honestbleeps yep, count me in, I can use gtalk via my patricksnape gmail account.
I need to pull these commits in so I can continue testing the MutationEvents, they are a bit of a pig because they seem to fire more than once sometimes. Bit busy this evening but got a lazy Sunday mapped out to make sure they're filtered correctly. @andytubahttps://github.com/andytubanice catch on the MutationObserver
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668525 .
Reply to this email directly or view it on GitHub: https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668774
we're chilling in #enhancement
On Sat, Mar 9, 2013 at 2:07 PM, Patrick Snape notifications@github.comwrote:
So we're communicating on #reddit? Or #enhancement?
On Sat, Mar 9, 2013 at 7:17 PM, honestbleeps notifications@github.com wrote:
I like @andytuba 's idea of IRC since it's better for multiway chat... http://webchat.snoonet.org On Sat, Mar 9, 2013 at 1:03 PM, Patrick Snape notifications@github.comwrote:
@honestbleeps https://github.com/honestbleeps yep, count me in, I can use gtalk via my patricksnape gmail account.
I need to pull these commits in so I can continue testing the MutationEvents, they are a bit of a pig because they seem to fire more than once sometimes. Bit busy this evening but got a lazy Sunday mapped out to make sure they're filtered correctly. @andytuba< https://github.com/andytuba>nice catch on the MutationObserver
— Reply to this email directly or view it on GitHub< https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668525>
.
Reply to this email directly or view it on GitHub:
https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14668774
— Reply to this email directly or view it on GitHubhttps://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/277#issuecomment-14669597 .
Voting, loading comments, editing flair, etc. -- all sorts of stock reddit ajaxy stuff is broken in Opera -- at least, in v12.14.
In Opera, extensions kinda run in the page context instead of sandboxed like the other browsers. Although RES's internal copy of jquery.reddit.js appears to override reddit's
$.request
for reddit JS calls (like "load more comments"), RES's copy of$.request
doesn't have access to page global variables likereddit
.This is fixed by not re-defining
$.request
inside of RES. I'll investigate to determine if RES in other browsers actually uses this functionality and if I can pare it down or tear it out completely.