Commit Graph

142 Commits

Author SHA1 Message Date
Ian Gilman
100fa37a41 + reversed the argument order for Utils.assert and Utils.assertThrow, per Dao's review 2010-08-10 11:13:10 -07:00
Michael Yoshitaka Erlewine
a381156a26 Bug 582023: rm Utils.timeout 2010-08-10 09:30:23 -04:00
Michael Yoshitaka Erlewine
1869016bed Bug 582023: move to use getBoundingClientRect instead of reading off the computed CSS for bounds; simplify getPropertyValue usage (based on comments from Dao) 2010-08-10 09:22:38 -04:00
Ian Gilman
c24275c13c + Made the Groups.killNewTabGroup test a little tighter (in case someone has made a group called "new tabs")
+ Worked around bug 575672 (CSS transition assert)

--HG--
extra : rebase_source : 6f758e737c2092214ec3185be847f2c5da406be0
2010-08-09 14:57:34 -07:00
Michael Yoshitaka Erlewine
2c33d9a516 Bug 584699: quick fix to -moz-transform rendering bug
--HG--
extra : rebase_source : 89019c5a0acff884ab47f18b96503435c6a56e7e
2010-08-09 00:06:54 -04:00
Edward Lee
33f364fd3d Remove unnecessary try/catch wrapping around a timeout-ed call.
--HG--
extra : rebase_source : 3b608473ff899668acea4e0e6964734c9db4d01d
2010-08-06 17:16:28 -07:00
Aza Raskin
5eaa96c725 + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -07:00
Aza Raskin
c75b7f6613 + Updated the iQ license block as specified in https://bugzilla.mozilla.org/show_bug.cgi?id=582025 2010-08-02 13:29:46 -07:00
Raymond Lee
86b8a0caa3 Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08:00
Ian Gilman
7ea1d9208c + Improved startup sequence: don't do anything until sessionstore is available, and then do only minimal work if we're not loading directly into the UI; most setup now happens when we first show the UI. Known issue: tabs aren't set up properly in the tab bar until after you go to the UI once.
+ fixed our use of undefined in iq.js
+ more tabItems cleanup, including removing a stray call to the now non-existent TabCanvas.detach()
+ "Group sites" no longer makes a "mixed" group if it would be empty
2010-07-29 17:23:49 -07:00
Edward Lee
372847d3c9 Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023. 2010-07-29 13:15:21 -07:00
Edward Lee
af28fc4805 Simplify Utils.merge to use Array.forEach and Array.push for bug 582023. 2010-07-29 13:02:51 -07:00
Edward Lee
008bda58ad Bug 583044 - Rename code references of TabCandy to TabView
Move files and update references to tabview from tabcandy. Only remaining candy reference is the link to aza's webm video.
2010-07-29 12:37:25 -07:00
Edward Lee
56533364ab Move utils.js into a javascript module that exports Point, Rect, Range, Subscribable, and Utils for bug 582023.
--HG--
extra : rebase_source : 8fea0b5439bcc45464f029609ff125e284b74731
2010-07-28 22:21:34 -07:00
Michael Yoshitaka Erlewine
a11a1183cc Bug 582023: rm iQ.get, as we were only using it in one way. 2010-07-28 23:02:26 -06:00
Edward Lee
74886aae53 Move lazy gWindow, gBrowser, etc into tabcandy.js out of utils.js for bug 582023. 2010-07-28 21:56:31 -07:00
Edward Lee
19de9aa83c Clean up spaces around (), [], , in iq and utils for bug 577968. 2010-07-28 21:40:55 -07:00
Michael Yoshitaka Erlewine
fef600d3f8 Bug 582023: iQ changes based on comments from gavin
- let is the new var, no multiple declarations on the same line.
- renamed iQ.fn.init to be iQClass, iQ.fn to be iQClass.prototype, to look much more normal. iQ now just creates a new iQClass. No more brain hurt.
- no more (function(){...}) closure
- Array.prototype.xxx.call replaced by Array.xxx
- a couple other changes recommended by gavin.
- Utils: rm some comments, but haven't touched JSM, isDOMElement, or merge.
2010-07-28 21:33:43 -06:00
Frank Yan
f9af53a378 Bug 582200: rm cross-browser code from iQ, follow Mozilla style better, r=mitcho 2010-07-27 10:07:17 -06:00
Ian Gilman
76ec7ed3de + We now do no work while the script is loading; everything waits until the UI.init() call at the very bottom
--HG--
extra : rebase_source : 301788f78500bfe57512b0df396cb6be2ca8a02f
2010-07-26 17:15:19 -07:00
Edward Lee
17317f2e9e Switch to Array.isArray from Utils.isArray. 2010-07-26 11:02:52 -07:00
Edward Lee
d1da1e712c Inline isFunction as typeof == function checks. 2010-07-23 19:29:32 -07:00
Michael Yoshitaka Erlewine
9a7ccab778 Utils + iQ cleanup!
- utility functions in iQ have been moved to Utils: isFunction, isArray, isPlainObject, isEmptyObject, merge, extend, timeout
- iQ depends on Utils. Utils no longer depends on iQ.
- simplified Utils.extend. Deep copy is no longer supported, nor is extending iQ and iQ.fn using extend. They were not being used.

--HG--
extra : rebase_source : ab8f86e4e6a65cb747bc79ae0aa36cb39819421a
2010-07-23 17:33:02 -04:00
Edward Lee
74d4851978 Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*. 2010-07-22 22:41:58 -07:00
Michael Yoshitaka Erlewine
d393fc5668 Rewrote various scaling/easing functions in terms of the Range's, with the new proportion and scale methods.
- removed Math.tanh, instead moving it into the Range proportion method for its "smooth" option
+ rewrote TabItem close button opacity and title font size using the new Range utilities. Should make code a tad easier to follow.
2010-07-23 00:35:07 -04:00
Michael Yoshitaka Erlewine
bbeb43d86a Bug 581143: Cleanup geometry utilities in utils.js
1. Move isRect, isPoint, isRange to Utils, to facilitate JSMing and to clean up
namespace
2. Remove unused/underutilized methods of Rect/Point/Range
3. Use QuickDraw-style comparison of pixel overlap (using < instead of <=)
throughout.
4. Range.overlaps is now Range.contains, to be more consistent with Rect.

--HG--
extra : rebase_source : cc3507bb3bbe92f922d3147cc9130c1f713391b2
2010-07-22 15:46:51 -04:00
Michael Yoshitaka Erlewine
8dd2ae9572 Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging
--HG--
extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
2010-07-22 15:42:29 -04:00
Edward Lee
ff7ecda676 Bug 581078 - Get rid of Utils.activeTab to avoid iterating over all Tabs
Directly access gBrowser.selectedTab and compare other raw tabs against it until BrowserTab goes away. Get the reference to the BrowserTab instead of iterating over Tabs through .tabcandyBrowserTab.
2010-07-22 12:36:17 -07:00
Edward Lee
b3a2d799b2 Bug 580870 - Alias gBrowser to the tabcandy context to remove getCurrentWindow
Add aliases for gWindow, gBrowser, gTabDeck, gTabFrame for the tabcandy chrome context. Update uses and simplify some code like removing Navbar.
2010-07-22 12:34:13 -07:00
Edward Lee
4d059c1a7b Remove trailing spaces/tabs from tabcandy files. 2010-07-20 10:17:29 -07:00
Ian Gilman
b804f44e13 + Filled out iQ.js comments 2010-07-19 15:27:19 -07:00
Michael Yoshitaka Erlewine
5715d04263 rm stacktrace.js!
--HG--
extra : rebase_source : ee145386d3b3836f0c02005c1f4f7ef517377b7e
2010-07-19 14:21:09 -04:00
Raymond Lee
49b66e7e06 Fixed Bug 579814 - Fix behavior of tab-manipulation keyboard shortcuts 2010-07-19 17:37:22 +08:00
Michael Yoshitaka Erlewine
226027a6be rm trailing whitespace 2010-07-18 11:58:10 -04:00
Ian Gilman
1347f6d788 + Finished documenting all of the app code, plus utils.js. Remaining: iq.js, mirror.js, tabs.js 2010-07-16 17:27:01 -07:00
Raymond Lee
689f8adb2e Bug 577445: Show tab candy title in the tab candy interface and change 'let' to 'var' 2010-07-15 16:41:08 +08:00
Raymond Lee
764afcb66c Bug 576110: Show saved thumbnails at browser startup if tab candy was last open 2010-07-15 10:40:46 +08:00
Ian Gilman
a04cd8087e + Cleaned up a scope issue with Subscribable and added some guards 2010-07-14 17:24:03 -07:00
Ian Gilman
5a5575f98e + Subscribable (in utils.js) no longer has a separate onClose path
+ My recent addition of a "content" div broke dragging to make a new group; fixed
2010-07-14 16:59:37 -07:00
Ian Gilman
d936a625ad + Fixed a typo in iQ.each that was breaking everything
+ Rearranged the UIClass initialization sequence a little, to make sure everything happens in the right sequence
2010-07-14 11:21:07 -07:00
Michael Yoshitaka Erlewine
5d1dca9ba4 Bug 577387: cleanup of the new iQ(...).each 2010-07-14 00:08:45 -04:00
Michael Yoshitaka Erlewine
b9bfb1304b Bug 577387: iQ.each is gone! iQ(...).each still exists, and its callback must now explicitly take the element as its argument 2010-07-14 00:03:47 -04:00
Michael Yoshitaka Erlewine
297f6910f6 cleanup: rm unused functions, constants from Utils + Mirror 2010-07-13 22:48:55 -04:00
Michael Yoshitaka Erlewine
f2a8ac2cbc iQ cleanup: of course we're Gecko > 1.9.2 so we have classList! use it in .{add,remove,has}Class 2010-07-13 22:17:35 -04:00
Michael Yoshitaka Erlewine
8bc50f5562 iQ cleanup: rm unused regexps and other constants; rm iQ.toArray, iQ.pushStack, iQ.slice, iQ.trim 2010-07-13 22:02:11 -04:00
Michael Yoshitaka Erlewine
c472a09334 cleanup: iQ.each: never used with args, so that code is removed 2010-07-13 20:28:36 -04:00
Michael Yoshitaka Erlewine
39a1f66dc2 cleanup: rm iQ.grep; using .filter instead. 2010-07-13 20:23:04 -04:00
Michael Yoshitaka Erlewine
b261f72a79 cleanup: rm iQ.inArray 2010-07-13 20:10:53 -04:00
Michael Yoshitaka Erlewine
ce70751467 cleanup: rm various instances of iQ.each where it's an array, so we can use .forEach
--HG--
extra : rebase_source : f41f088641f71aba6796092766b0645fca925ad1
2010-07-13 19:38:51 -04:00
Michael Yoshitaka Erlewine
8e181c230e cleanup: rm iQ.makeArray 2010-07-13 17:39:46 -04:00