Igor Minar
a4863d5244
correct size() impl for object's w/ 'length' prop
...
the original implementation returned incorrect value value for
objects with 'length' property.
2011-03-30 15:24:03 -07:00
Igor Minar
96a1df192a
extend size() to take ownPropsOnly param
...
- extend size() to take size(obj, ownPropsOnly)
- add specs for size()
- update docs to mention string support
- use size() in ng:repeat
including the hasOwnProp check for all object doesn't create
significant perf penalty:
http://jsperf.com/dedicated-code-branch-for-hasownprop
2011-03-30 15:24:03 -07:00
Igor Minar
89c25fe713
call $eval in repeater only when needed
...
when growing children linker calls eval for new nodes, so we need
to call it only for reused nodes.
2011-03-30 15:24:03 -07:00
Igor Minar
c06c5a36b1
make xhr.cache optionally synchronous
...
- add `sync` flag xhr.cache
- change ng:include to use the sync flag
- change ng:view to use the sync flag
The end result is that there are fewer repaints in the browser,
which means less "blinking" that user sees.
2011-03-30 15:22:22 -07:00
Igor Minar
9985104dc0
remove weird spaces from resource mutation test
2011-03-30 15:22:14 -07:00
Anthony Lieuallen
94514a91f8
Don't mutate resource if server responded with no body
...
If the server provides response with no body to a resource request,
resource should not mutate the resource model in the callback.
2011-03-29 00:25:22 -07:00
Pepper Lebeck-Jobe
4da65d0e8c
Fixes some links and types in the DI docs.
2011-03-28 23:40:56 -07:00
Igor Minar
e1d122a4b7
encode $resource query params using encodeURIComponent
2011-03-28 23:33:46 -07:00
Igor Minar
885c3ad5dd
fixing lint warnings
2011-03-28 23:15:28 -07:00
Vojta Jina
9312bed472
Added missing semi-colons
...
So that my eclipse stops complaining...
2011-03-28 23:04:48 -07:00
Igor Minar
faf29dd047
upgrade closure compiler to version 20110322
...
the new version minifies our js better:
before | after | diff
-----------------------------------------
min | 62161 | 60868 | -2.1%
min+gzip | 25176 | 24552 | -2.5%
2011-03-26 23:22:00 -07:00
Igor Minar
510b5f3d90
renaming lib/compiler-closure to lib/closure-compiler
2011-03-26 23:21:59 -07:00
Igor Minar
1e59822df7
remove _null and _undefined
...
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-26 23:19:04 -07:00
Igor Minar
d95a6925cd
fix broken 'downloading' links
2011-03-23 15:25:05 -07:00
Pepper Lebeck-Jobe
b4d680a921
Fixes two links on the conribute page.
2011-03-22 10:18:07 -07:00
Pepper Lebeck-Jobe
ff4480be65
Fixes a typo xmlsn -> xmlns
2011-03-22 10:10:55 -07:00
Anthony Lieuallen
cf0513dc6f
Require 'yaml' in Rakefile.
2011-03-22 10:03:27 -07:00
Igor Minar
dfba8fb2e7
fixing broken angular-mocks.js
2011-03-15 16:13:11 -07:00
Igor Minar
a0af13f672
preparing the 0.9.14 key-maker iteration
2011-03-13 23:15:36 -07:00
Igor Minar
69e6379d19
cutting the 0.9.13 curdling-stare release
2011-03-13 22:48:26 -07:00
Igor Minar
1094b3471e
preparing release notes for the 0.9.13 curdling stare release
2011-03-13 17:34:01 -07:00
Misko Hevery
3224862a9c
Stop using document write, so that we are compatible with async script loader
2011-03-11 14:16:53 -08:00
Misko Hevery
0084cb5ca4
Remove the script tag after successful JSONP request
2011-03-11 14:16:53 -08:00
Misko Hevery
c578f8c3ed
Added XSRF prevention logic to $xhr service
2011-03-11 14:16:53 -08:00
Misko Hevery
5b05c0de03
@require in ngdoc now takes reason for dependency
2011-03-11 14:16:52 -08:00
Misko Hevery
d19c0ac6d3
Changed the $browser.xhr parameter post from optional to required
2011-03-11 14:16:52 -08:00
Misko Hevery
5343deb3da
Consider all 2xx responses as OK, not just 200
2011-03-11 14:16:52 -08:00
Misko Hevery
26bad2bf87
Fixed cookies which contained unescaped '=' would not show up in cookie service.
2011-03-11 14:16:52 -08:00
Igor Minar
d304b0c3df
fix failing autobind test on IE
2011-03-11 09:30:53 -08:00
Igor Minar
9d5c533791
ng:autobind now optionally takes element id
...
so it is possible to easily compile just a part of a document.
e.g.:
<html>
<head>
<title>partially compiled doc</title>
<script src="angular.js" ng:autobind="compileThis"></script>
</head>
<body>
this part won't be compiled: {{1+2}}
<div id="compileThis" ng:init="i=0" ng:click="i = i+1">
Click count: {{i}}
</div>
</body>
</html>
2011-03-11 08:45:43 -08:00
Igor Minar
7414e7b533
angularJsConfig now allows ng:autobind and #autobind value to be passed in
2011-03-11 08:45:16 -08:00
Misko Hevery
5432dd289a
pass undefined through fn closure for better minification
2011-03-09 13:41:16 -08:00
Misko Hevery
194b2c1ea0
Fix IE: reffering to non existent var on window, must be prefixed by window
2011-03-09 13:40:47 -08:00
Misko Hevery
f7a9ea6a41
fix ie7 regression in jqLite which prevented
2011-03-08 20:23:19 -08:00
Igor Minar
627eba2b7c
upgrading jasmin-jstd-adapter to 1ade1ad7cad4caadb3a3 11-03-07
2011-03-07 00:07:02 -08:00
Igor Minar
73ee5fc008
jstd r899 2011-02-18 (post 1.3.1) + fix for jasmine adapter.
2011-03-07 00:07:01 -08:00
Misko Hevery
4c762bfe5c
fix orberBy documentation error
2011-03-05 22:54:41 -08:00
Igor Minar
749b3e8763
preparing the 0.9.13 curdling-stare iteration
2011-03-03 23:14:43 -08:00
Igor Minar
fd409bd2df
cutting the 0.9.12 thought-implanter release
2011-03-03 23:14:43 -08:00
Igor Minar
e80a64883d
re-eagarizing the $hover service - mea culpa
2011-03-03 23:14:43 -08:00
Igor Minar
8b2753eee2
fixing left over .scope
2011-03-03 23:14:43 -08:00
Igor Minar
02aa7978d3
fixing link in thought-implanter release notes
2011-03-03 22:59:11 -08:00
Igor Minar
5bf7ff5a3e
fixing broken e2e tests
2011-03-03 13:50:12 -08:00
Igor Minar
a01aa7055c
preparing release notes for the 0.9.12 though-implanter release
2011-03-03 00:45:20 -08:00
Igor Minar
a01d888eec
adding dependency injection docs
2011-03-03 00:16:20 -08:00
Igor Minar
28800a48ad
renaming guide.contribute.ngdoc to contribute.ngdoc
2011-03-02 23:19:59 -08:00
Igor Minar
dea72be0cc
docs cleanup and improvements
...
- moving 'downloading' from devguide to "misc"
- syncing the latest version of 'downloading'
- getting rid of junk files
2011-03-02 23:14:13 -08:00
Igor Minar
cd139f5767
$xhr service now autodetects and strips )]}',\n
...
")]}\',\n" is a commonly used security prefix added to json http
responses iat google and elsewhere in order to prevent certain
cross-site attacks
$xhr service now autodetects the prefix and strips it before
deserializing the json.
the implementation should be more flexible to allow for wider range
of prefixes, but we need this one right now and can address other
usecases later.
2011-03-02 22:56:14 -08:00
Igor Minar
10a7521f0b
rename devguide collection in gdocs.js to guide
2011-03-02 17:40:48 -08:00
Igor Minar
887da5684b
enhancing gdocs.js to work with nested collections
2011-03-01 22:36:48 -08:00