aboutsummaryrefslogtreecommitdiffstats
path: root/src/Browser.js
AgeCommit message (Collapse)Author
2011-11-14docs(browser): moved and migrate browser removed unneeded files.Misko Hevery
2011-11-14doc(AUTO, NG_MOCK): Documenting the AUTO and NG_MOCK moduleMisko Hevery
2011-11-14refactor(services): migrate angular.service -> moduleMisko Hevery
2011-10-22fix(defer.cancel): should return false instead of undefinedIgor Minar
2011-10-22feat($defer): add $defer.cancelIgor Minar
This functionality was previously available only as obscure $browser.defer.cancel. I also added docs and tests and fixed an issue in .defer.cancel mock.
2011-10-12docs(*): remove @workInProgress from everywhereIgor Minar
it's not useful any more and it only makes the docs look ugly
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-10-11refactor(hover): delete hover serviceMisko Hevery
2011-09-08feat($browser): add $browser.baseHref()Vojta Jina
This method abstracts <base href="" /> in document.head - returns the value. If absolute href set, it converts the href to relative.
2011-09-08feat($browser): jQuery style url method, onUrlChange eventVojta Jina
This is just basic implementation of $browser.url, $browser.onUrlChange methods: $browser.url() - returns current location.href $browser.url('/new') - set url to /new If supported, history.pushState is used, location.href property otherwise. $browser.url('/new', true) - replace current url with /new If supported, history.replaceState is used, location.replace otherwise. $browser.onUrlChange is only fired when url is changed from the browser: - user types into address bar - user clicks on back/forward button - user clicks on link It's not fired when url is changed using $browser.url() Breaks Removed $browser.setUrl(), $browser.getUrl(), use $browser.url() Breaks Removed $browser.onHashChange(), use $browser.onUrlChange()
2011-09-05fix($browser.xhr): not convert 0 status to 200Vojta Jina
2011-08-15style(*): remove extra semicolonsIgor Minar
2011-08-10doc($browser): hide $browser.notifyWhenNoOustandingRequest methodVojta Jina
Closes #506
2011-08-06feat($browser): JSONP error handlingDi Peng
since we don't know if the error was due to a client error (4xx) or server error (5xx), we leave the status code as undefined.
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-07-30doc(typos): fix couple of typos in the docsdandoyon
Minor documentation fixes. Should not be any code changes. One test changed due to dependency on text in documentation.
2011-07-27style(): fix couple of missing semi-colonsVojta Jina
2011-07-19doc(.defer.cancel): temporarily disable the docIgor Minar
2011-07-18feat($browser.$defer.cancel): support canceling defered tasksIgor Minar
2011-07-18fix($browser.setUrl): make browser.setUrl more efficientIgor Minar
- browser should remember the last value retrieved via browser.getUrl - browser should update window.location only if the new value is different from the current window.location value
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-07-18refactor($browser): hide startPoll and poll methodsDiPeng
Breaks $browser.poll() method is moved inline to $browser.startpoll() Breaks $browser.startpoll() method is made private Refactor tests to reflect updated browser API Closes #387
2011-07-13refactor($browser.xhr): use $browser.addJs for JSONPIgor Minar
There is no reason why we shouldn't reuse $browser.addJs for JSONP requests.
2011-07-13fix($browser.addJs): make addJs jQuery compatibleIgor Minar
Change addJs implementation to avoid use of jQuery because of issues that affect angular-ie-compat.js. See inlined comment for more info.
2011-07-13fix($browser.xhr): properly delete jsonp callbacksIgor Minar
2011-06-30feat:$xhr: provide access to $xhr header defaultsIgor Minar
$xhr header defaults are now exposed as $xhr.defaults.headers.common and $xhr.default.headers.<httpmethod>. This allows applications to configure their defaults as needed. This commit doesn't allow headers to be set per request, only per application. Per request change would require api change, which I tried to avoid *for now*.
2011-06-27fix:$browser: Use document.createElement to create JSONP script tagVojta Jina
Creating <script> tags would require a lot of extra work if we want all browsers to load and execute these scripts. We decided to not implement that in jqLite. See #369 for more information. Closes #369
2011-06-02Refactor $browser's lazy start pollingVojta Jina
+ unit tests
2011-06-02Fix hashchange event on IE8 compatibility modeVojta Jina
Stupid IE8 in compatibility mode or in IE7 mode returns true for `('onhashchange' in window)`, but does not support hashchange event. Closes #353
2011-05-31Normalize IE XHR bug (status code 1223 to 204)Vojta Jina
See http://bugs.jquery.com/ticket/1450
2011-05-19XHR should add Content-type header only for POSTVojta Jina
Sending Content-type header causes JSTD (Jetty) proxy to change GET methods into POST.
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
2011-03-11Remove the script tag after successful JSONP requestMisko Hevery
2011-03-11Added XSRF prevention logic to $xhr serviceMisko Hevery
2011-03-11Changed the $browser.xhr parameter post from optional to requiredMisko Hevery
2011-03-11Fixed cookies which contained unescaped '=' would not show up in cookie service.Misko Hevery
2011-02-25Added delay parameter to the $defer serviceMisko Hevery
2011-02-16Small spelling and grammar fixes in documentation.Anthony Lieuallen
2011-02-03Fixed notifyWhenNoOutstandingRequests() when using JSONPMisko Hevery
2011-02-01$browser poller should notify $location only once per url changeIgor Minar
2011-01-24fixed example rendering, add tests for it.Misko Hevery
2011-01-13significant rewrite of the $location serviceIgor Minar
- don't update browser before and after eval instead - sync location properties before eval - sync location properties and update browser after eval - added tests - symplified the code - removed $location.toString() because it was not idempotent and useless This resolves the issue with issuing two $route.onHashChange calls when the $location was updated with a hashPath that needs to be encoded
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- There was a perceived lag when typing do to the fact that we were listening on the keyup event instead of keydown. The issue with keydown is that we can not read the value of the input field. To solve this we schedule a defer call and perform the model update then. - To prevent calling $eval on root scope too many times as well as to prevent drowning the browser with too many updates we now call the $eval only after 25ms and any additional requests get ignored. The new update service is called $updateView
2011-01-07$location service should utilize onhashchange events instead of pollingIgor Minar
2011-01-04Remove many eager-publish services, lazy pollingMisko Hevery
- Browser now starts the poller on first call to addPollFn() - Many services ($location, $cookies, $router) are no longer eager-publish. The result is that unless someone needs the $cookies, they will not cause the Browser to start polling for them.
2010-12-06add $browser.defer and $defer service and fix async xhr cache issueIgor Minar
- Closes #152 ($resource().query() sometimes calls callback before returning, and it shouldn't) - add $browser.defer method - add $defer service - integrate $browser.defer with outstandingRequests counter in $browser - fix all old tests that relied on buggy behavior
2010-11-18fix all closure compilation warnings due to invalid function typesIgor Minar
2010-11-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar