Igor Minar
984acdc627
Reworked the cookie synchronization between cookie service, $browser and document.cookie.
...
Now we finally correctly handle situations when browser refuses to set a cookie, due to
storage quota or other (file:// protocol) limitations.
2010-09-27 15:10:05 -07:00
Igor Minar
3eec8c1a51
Properly initialize cookie service in order to preserve existing cookies
...
- previously the poller initialized the cookie cache too late which
was causing previously existing cookies to be deleted by cookie service
- refactored the poller api so that the addPollFn returns the added fn
- fixed older cookie service tests
- removed "this.$onEval(PRIORITY_LAST, update);" because it is not needed
2010-09-26 23:54:31 -07:00
Igor Minar
acbcfbaf30
$cookies service refactoring
...
- remove obsolete code in tests
- add warning logs when maximum cookie limits (as specified via RFC 2965) were reached
- non-string values will now get dropped
- after each update $cookies hash will reflect the actual state of browser cookies
this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that
- $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore
2010-09-23 17:23:52 +08:00
Igor Minar
a8931c9021
Rewrite session store service in object literal style and remove getAll method that is not used anywhere
2010-09-23 17:23:43 +08:00
Misko Hevery
0649009624
Refactored the Browser:
...
- change from using prototype to inner functions to help with better compression
- removed watchers (url/cookie) and introduced a poller concept
- moved the checking of URL and cookie into services which register with poolers
Benefits:
- Smaller minified file
- can call $browser.poll() from tests to simulate polling
- single place where setTimeout needs to be tested
- More testable $browser
2010-09-22 16:17:44 +02:00
Misko Hevery
2acce6a334
removed unneeded comment
2010-09-16 00:20:35 +02:00
Misko Hevery
894ffadc8c
Fixed all trivial jslint violations
2010-09-14 23:22:15 +02:00
Misko Hevery
e3f760fbad
Adding cookie service
...
- Browser.cookies()
- MockBrowser
- $cookie service
- $sessionStore
2010-09-14 22:51:01 +02:00
Misko Hevery
5ddd8d9586
stringify names for better compression, remove dead functions, removed underscore.js compatibility
2010-08-18 17:26:33 -07:00
Misko Hevery
044ecb91c1
clean up for better obfuscation
2010-08-11 12:04:02 -07:00
Misko Hevery
4aac29da18
added additional test
2010-08-10 11:17:08 -07:00
Misko Hevery
1e1c8c82f9
minor speed improvements or URL parsing
2010-07-30 11:45:52 -07:00
Misko Hevery
cdda664f89
fix up the $location encoding
2010-07-30 10:56:36 -07:00
Misko Hevery
1b768b8443
refactored $location service so that it correctly updates under all conditions
2010-07-29 12:54:13 -07:00
Misko Hevery
8ddee9bb25
add $exceptionHandler service
2010-07-26 16:11:25 -07:00
Misko Hevery
748e91ba92
fixed some of the IE bugs
2010-07-23 11:38:52 -07:00
Misko Hevery
bebfbeac0a
fixed xhtml compatibility, fix console in chrome
2010-07-20 16:55:32 -07:00
Rob Spies
4034a2d1e2
better naming for our verify cache scheme, and tests.
2010-07-13 14:09:53 -07:00
Rob Spies
1500e91def
Merge http://github.com/angular/angular.js into angular
...
Conflicts:
.gitignore
2010-06-22 17:09:55 -07:00
Andres Ornelas
cb5d211927
extracted switchRouteMatcher and added necessary libraries to angular-scenario
2010-05-27 11:26:23 -07:00
Misko Hevery
80bd0c273b
fixed isNumber to angular.isNumber for mocks outside of angular
2010-05-19 16:00:20 -07:00
Misko Hevery
80e12276f4
added $log to console connection
2010-05-19 13:24:37 -07:00
Misko Hevery
31b35b141f
added exception handling to $xhr
2010-05-19 12:00:44 -07:00
Misko Hevery
f2abbfd394
refactor for simplicity
2010-05-19 11:54:58 -07:00
Misko Hevery
0f73084e9d
added error handler to xhr requests
2010-05-19 11:51:17 -07:00
Misko Hevery
4b9b9e9830
fix incorect parsing of url if it contains dash - character
2010-05-13 12:03:10 -07:00
Misko Hevery
664f1c5687
reenable hover clearing
2010-05-08 10:40:45 -07:00
Misko Hevery
038a743e6f
xhr bulk fixes
2010-05-07 12:09:14 -07:00
Misko Hevery
ac1d02d065
make xhr post optional
2010-04-30 12:22:07 -07:00
Misko Hevery
549ff73a9b
clear cache on non-get
2010-04-30 10:27:41 -07:00
Misko Hevery
c7913a4b7a
added $xhr service with bulk and cache, hooked up $resource
2010-04-29 17:28:33 -07:00
Misko Hevery
913729ee01
fix isssue where the jasmine currentSpec does not get updated and hence everything runs as last spec context.
2010-04-29 10:55:22 -07:00
Misko Hevery
2a9669e1d8
working on jQuery passing tests
2010-04-22 15:50:20 -07:00
Misko Hevery
6470b48ce0
validation issues fixed
2010-04-16 17:03:06 -07:00
Misko Hevery
deb86fe357
lots of small fixes
2010-04-16 14:01:29 -07:00
Misko Hevery
70e401ef10
added $route service
2010-04-15 14:17:33 -07:00
Misko Hevery
cd03fe92a5
checkbox widget fix
2010-04-13 14:25:12 -07:00
Misko Hevery
7c49b25548
$invalid widget clear on switch change
2010-04-12 19:05:39 -07:00
Misko Hevery
843bd355d2
various bug fixes
2010-04-09 16:20:15 -07:00
Misko Hevery
41a5c408c2
tests pass jstd has issues
2010-04-08 15:05:05 -07:00
Misko Hevery
e0ad7dfcd4
seperatio validation and exception handling
2010-04-07 17:24:24 -07:00
Misko Hevery
6ea1ac7b05
added $invalidWidget service
2010-04-07 14:13:10 -07:00
Misko Hevery
2107eafcde
added hover service
2010-04-05 20:53:33 -07:00
Misko Hevery
7a4b480206
added ng:switch widget
2010-04-05 11:46:53 -07:00
Misko Hevery
5dcf9bb4fe
browser is now injectable into the system
2010-04-03 20:23:16 -07:00
Misko Hevery
a80a61839a
injection is now working
2010-04-03 17:04:36 -07:00
Misko Hevery
d717020911
widgets now work properly
2010-04-02 11:10:36 -07:00
Misko Hevery
85f13d602e
work on $location and autobind
2010-04-01 14:10:28 -07:00
Misko Hevery
11a6431f89
started to add services
2010-03-31 18:18:10 -07:00