Misko Hevery
9e9bdbdc40
JSON parser is now strict (ie, expressions are not allowed for security)
...
Close #57
2010-10-18 08:50:36 -07:00
Misko Hevery
de66a319b4
removed unneeded function rethrow from scope which was interfering with the test rethrow function
2010-10-15 10:55:58 -07:00
Misko Hevery
7903f4d940
use new Function instead of eval()
...
Close #52
2010-10-14 21:49:59 -07:00
Igor Minar
692333f2f5
temporary backwards compatibility patch for
2010-10-14 12:36:29 -07:00
Misko Hevery
d9abfe8a7e
Introduced injector and $new to scope, and injection into link methods and controllers
...
- added angular.injector(scope, services, instanceCache) which returns inject
- inject method can return, instance, or call function which have $inject
property
- initialize services with $creation=[eager|eager-publish] this means that
only some of the services are now globally accessible
- upgraded $become on scope to use injector hence respect the $inject property
for injection
- $become should not be run multiple times and will most likely be removed
in future version
- added $new on scope to create a child scope
- $inject is respected on constructor function
- simplified scopes so that they no longer have separate __proto__ for
parent, api, behavior and instance this should speed up execution since
scope will now create one __proto__ chain per scope (not three).
BACKWARD COMPATIBILITY WARNING:
- services now need to have $inject instead of inject property for proper
injection this breaks backward compatibility
- not all services are now published into root scope
(only: $location, $cookie, $window)
- if you have widget/directive which uses services on scope
(such as this.$xhr), you will now have to inject that service in
(as it is not published on the root scope anymore)
2010-10-12 16:33:06 -07:00
Igor Minar
7e47a2d016
temparary backaward compatibility patch for Controller.init
...
- feedback relies on *Controller.init to be called when a Controller is
being created. this with previous angular refactoring this is not happening
in angular any more. To make it easier for feedback to transition, this
change makes $become call controller's init method if present.
- call to Controller.init from $route.updateRoute was removed. this was
left there by accident during the previous refactoring.
2010-10-13 04:37:45 +08:00
Misko Hevery
006fd2ca25
HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are data bound (ie OPTION has repeater or OPTION.value is bound), then SELECT does not update to match the correct OPTION after the change in model (ie after the OPTION repeater unrolls or OPTION.value is changed.)
2010-09-21 19:20:34 +02:00
Misko Hevery
894ffadc8c
Fixed all trivial jslint violations
2010-09-14 23:22:15 +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
5c14a35e62
initial perf testing
2010-08-13 09:50:03 -07:00
Misko Hevery
044ecb91c1
clean up for better obfuscation
2010-08-11 12:04:02 -07:00
Misko Hevery
9b392eca35
fix bug where $eval on undefined throws error
2010-08-10 11:23:23 -07:00
Misko Hevery
a161a99ff8
minor speed improvements
2010-07-26 15:54:50 -07:00
Misko Hevery
b288cb08b4
minor performance improvements
2010-07-26 15:32:08 -07:00
Misko Hevery
719f6e15a0
clean up error handling a bit.
2010-07-20 17:13:31 -07:00
Misko Hevery
09e2295975
updated list of JavaScript keywords
2010-07-15 09:41:25 -07:00
Misko Hevery
ee82dae318
added class as a constant keyword to generated code
2010-07-08 10:51:08 -07:00
Misko Hevery
b5195b8f67
changed the eval for ie to be able to return a function
2010-07-02 17:26:26 -07:00
Misko Hevery
105e9443c4
fixed special keywords in chrome such as x.throw must be x["throw"].
2010-07-02 14:43:17 -07:00
Shyam Seshadri
39312d1fe3
Revert "Revert "removed few key foreach and replaced thime with for loop for performance.""
...
This reverts commit a29c5e4c7f .
2010-06-02 15:05:34 -07:00
Shyam Seshadri
a29c5e4c7f
Revert "removed few key foreach and replaced thime with for loop for performance."
...
This reverts commit 6143b04384 .
2010-06-02 15:04:26 -07:00
Misko Hevery
6143b04384
removed few key foreach and replaced thime with for loop for performance.
2010-05-31 00:58:29 -07:00
Misko Hevery
2e33e89a77
added compiled getterFN for better performance
2010-05-30 19:42:21 -07:00
Misko Hevery
ad18fe1442
compiler exposos both self and this function calling convention
2010-05-30 16:45:35 -07:00
Misko Hevery
c7d64f6d12
improve error handling with elements
2010-05-30 16:34:59 -07:00
Misko Hevery
0d87208553
remove the relience of parser an special self object, now passing generic self
2010-05-30 16:11:00 -07:00
Misko Hevery
0e88e35e5c
remove the uneeded call to createScope when evaluating expressions
2010-05-30 15:45:33 -07:00
Misko Hevery
0f73084e9d
added error handler to xhr requests
2010-05-19 11:51:17 -07:00
Misko Hevery
22d1464d7a
fixed issue with radio view clobering model if radio was checked.
2010-05-13 13:57:39 -07:00
Misko Hevery
0305b6746e
change everything over to jasmine
2010-05-07 13:43:54 -07:00
Misko Hevery
038a743e6f
xhr bulk fixes
2010-05-07 12:09:14 -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
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
843bd355d2
various bug fixes
2010-04-09 16:20:15 -07:00
Misko Hevery
0df93fd49c
clean up, fixes for app
2010-04-07 10:17:15 -07:00
Misko Hevery
e646068586
added ng-controller directive
2010-04-05 21:26:52 -07:00
Misko Hevery
7a4b480206
added ng:switch widget
2010-04-05 11:46:53 -07:00
Misko Hevery
a80a61839a
injection is now working
2010-04-03 17:04:36 -07:00
Misko Hevery
35ca4fcb9c
radio now works with repeaters
2010-04-02 11:49:48 -07:00
Misko Hevery
5bd23fde7a
merge
2010-04-02 11:16:49 -07:00
Misko Hevery
d717020911
widgets now work properly
2010-04-02 11:10:36 -07:00
Misko Hevery
11a6431f89
started to add services
2010-03-31 18:18:10 -07:00
Misko Hevery
861bac1d28
started to add services
2010-03-31 17:56:16 -07:00
Misko Hevery
35a9108500
all tests green, some dissabled
2010-03-31 13:57:25 -07:00
Misko Hevery
b5b8f63e1e
more tests passing
2010-03-30 15:39:51 -07:00
Misko Hevery
a7d62dcb55
more tests fixed
2010-03-30 14:55:04 -07:00
Misko Hevery
d2d356918b
reenabled more tests
2010-03-29 21:49:12 -07:00
Misko Hevery
e55c97deba
dissabled a lot of tests, and made the core test set pass.
2010-03-29 20:25:42 -07:00
Misko Hevery
258ca5f165
moved all uneeded files out, widgets.html works, tests horribly broken
2010-03-26 16:27:18 -07:00