| Age | Commit message (Collapse) | Author |
|
The input event is fired on all non-ie browsers whenever the contents of an input
field changes. This means that we now support cut&paste via mouse which
was previously unsupported.
IE8 and older don't support this events and IE9 has a problematic
support for it, so we can't rely solely on this event and drop keydown
and change events.
|
|
|
|
|
|
Previously we used to put callbacks on the window object, but that
causes problems on IE8 where it is not possible to delete properties
from the window object
|
|
When we update route (changing only search param, no route reload) and then reload (change to different
route), it did not $destroy last scope.
|
|
|
|
|
|
|
|
|
|
closure compiler is smarter than we expected and drops the unused fn
argument - this breaks the meta-programing logic of jqLite.
The fix special cases JQLiteHasClass since its the only fn that needs
this treatment in a way that is minification-proof.
|
|
|
|
|
|
This fix is similar to what I've done in ng:view, if a new template has been requested before the
callback for the previous template returned, ignore it. Otherwise weird race conditions happen
and users might end up getting the content for the previous include rendered instead of the most
recent one.
|
|
|
|
Scope and Window instances are special and when copied can crash browser. For this reason
it makes sense to compare them only by identity.
|
|
|
|
|
|
|
|
|
|
quite messy, some tests are missing, contains an experimental jasmine DI support)
|
|
|
|
Parser now builds expressions that can detect promises and transparently
evaluate them to undefined or the promise value.
If promiseA is resolved with value 'A', then {{promiseA}} evals to 'A';
If promiseA is unresolved, then {{promiseA}} evals to undefined;
Following invocations are supported:
- {{promise}}
- {{promise.futureProp}}
- {{[promise][0]}}
- {{object.promise}}
- {{object[promise]}}
- {{array[promise]}}
- {{fn(promise)}}
- combinations of the above
|
|
|
|
of specs
|
|
Instead of doing all the stuff in these widgets (checking cache, etc..) we can rely on $http now...
|
|
The way we determine whether it's json is lame anyway. We need to change that.
We should probably check the content type header...
|
|
|
|
You can still use cache: true, which will use $http's default cache.
|
|
Browsers return always 0 status code for "file" protocol, so we convert them into 200/404.
|
|
request error
|
|
|
|
|
|
|
|
+ rename verifyExpectations to verifyNoOutstandingExpectation
|
|
|
|
expected different
|
|
|
|
|
|
Breaks Disabling $resource caching for the moment.
|
|
We strip out both:
)]}',
)]}'
|
|
- $http.pendingRequests is now an array of pending requests
- each request (its future object) has public property configuration
|
|
- remove whole $browser.xhr stuff
- remove whole mock $browser.xhr stuff
- add $httpBackend service + migrate unit tests from $browser
- add temporary API to access $browser's outstandingRequests count
|
|
|
|
|
|
$httpBackend mock allows:
- expecting (asserting) requests
- stubbing (responding without asserting)
Add empty $httpBackend service (currently just wrapper for $browser.xhr)
|
|
Features:
- aborting requests
- more flexible callbacks (per status code)
- custom request headers (per request)
- access to response headers
- custom transform functions (both request, response)
- caching
- shortcut methods (get, head, post, put, delete, patch, jsonp)
- exposing pendingCount()
- setting timeout
Breaks Renaming $xhr to $http
Breaks Takes one parameter now - configuration object
Breaks $xhr.cache removed - use configuration cache: true instead
Breaks $xhr.error, $xhr.bulk removed
Breaks Callback functions get parameters: response, status, headers
Closes #38
Closes #80
Closes #180
Closes #299
Closes #342
Closes #395
Closes #413
Closes #414
Closes #507
|
|
|
|
Timeouted request responds internal status code -1, which should be normalized
into 0 by $xhr.
|
|
IE6, IE7 is sync when serving content from cache.
We want consistent api, so we have to use setTimeout to make it async.
|
|
If jsonp is not successfull, we return internal status -2.
This internal status should by normalized by $xhr into 0,
but $xhr needs to distinguish between jsonp-error/abort/timeout (all status 0).
|