Alkis Evlogimenos
eefb920d0e
Reduce copies done by Resource.
...
When a method foo is called on a Resource object, say myResource there are two copies that happen to the resource:
- one inside Resource.foo() in some dummy function
- another inside myResource.$foo() inside the callback passed to foo()
2010-09-22 09:14:50 +02: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
Igor Minar
125d725e7d
toJson should serialize inherited properties, but not any properties that start with $
2010-09-21 16:27:47 +02:00
Alkis Evlogimenos
9627c4b50e
Add ng:src and ng:href markup.
2010-09-20 11:57:50 +02:00
Alkis Evlogimenos
293f34cd64
Expose GET operations on resources as well. This allows us to read
...
"partials". The pattern is demostrated in the unittest:
Resource.query returns a list of "keys" to resources, which are
partially defined. They have enough data to allow $get to fetch the
whole gamout. Then $get fetches all the details of the resource.
2010-09-16 00:23:22 +02:00
Alkis Evlogimenos
b798ee80c2
Allow angular to be included with query parameters. This is a common
...
pattern for forcing a reload of the script in the browser irrespective
of the cache settings the host has.
2010-09-16 00:22:55 +02:00
Misko Hevery
21e78c443f
Delete requests on resources pass this as data. Delete requests should not be passing data in the body of the response. The bug is here:
...
http://github.com/angular/angular.js/blob/master/src/Resource.js#L119
Instead of checking for !isGet you should be checking for !isPost. Also isPost should be isPostOrPut since only on those two methods should be sending a payload if I am not mistaken.
2010-09-16 00:20:35 +02:00
Misko Hevery
2acce6a334
removed unneeded comment
2010-09-16 00:20:35 +02:00
Misko Hevery
2a3a449c6d
merge
2010-09-14 23:42:43 +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
07699b1a70
removed accidental assignment of $element to glabal space
2010-09-06 07:46:28 -07:00
Misko Hevery
9878355df7
remove Parser static
2010-08-18 18:15:19 -07:00
Misko Hevery
625f32b7eb
converted lexer from function to closure
2010-08-18 17:50:21 -07:00
Misko Hevery
9632c99b0a
move static field from Lexer to hidden namespace
2010-08-18 17:34:14 -07: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
1087270c95
added better handling of ng:format=number
2010-08-18 16:04:40 -07:00
Igor Minar
0df7329a6a
fix for ng:include does not remove partial if src goes to undefined
2010-08-16 16:47:39 -07:00
Igor Minar
59401b80ee
Merge remote branch 'upstream/master'
2010-08-16 10:56:03 -07:00
iminar
9899959d69
removing useless catch that causes troubles when FF throws exceptions within the loop but outside of the try/catch clause
2010-08-16 10:48:00 -07:00
Misko Hevery
14fe8cff2d
Merge remote branch 'igor/master'
2010-08-14 10:26:09 -07:00
Misko Hevery
791b13d161
pull shyam
2010-08-14 10:25:16 -07:00
Shyam Seshadri
aa656253b9
Fix issue with jquery not being visible in production
2010-08-13 18:23:39 -07:00
Igor Minar
7159b30752
Serialize only own properties to avoid infinite loops when serializing scopes (this)
2010-08-13 15:14:41 -07:00
Shyam Seshadri
60eeeb9f20
Provide all jquery functions as futures
2010-08-14 03:24:09 +08:00
Shyam Seshadri
675978f41f
Provide all jquery functions as futures
2010-08-13 12:05:50 -07:00
Shyam Seshadri
1f230bf3f5
Revert click dsl, since what is returned by element is a jquery object
2010-08-13 10:13:03 -07:00
Shyam Seshadri
669d8241b2
Pull in Rajat's changes to add click and url checking dsl
2010-08-13 10:13:03 -07:00
Misko Hevery
5c14a35e62
initial perf testing
2010-08-13 09:50:03 -07:00
Shyam Seshadri
2767d7773f
Revert click dsl, since what is returned by element is a jquery object
2010-08-13 09:45:56 -07:00
Shyam Seshadri
577ddaa539
Pull in Rajat's changes to add click and url checking dsl
2010-08-13 09:31:06 -07:00
Misko Hevery
0c2dd09e78
Merge branch 'master' of github.com:angular/angular.js
2010-08-11 12:04:11 -07:00
Misko Hevery
044ecb91c1
clean up for better obfuscation
2010-08-11 12:04:02 -07:00
Shyam Seshadri
cf33105011
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
2010-08-12 02:45:22 +08:00
Misko Hevery
3d5719cd44
removed undocumented/unneeded methods from Array API
2010-08-11 11:44:12 -07:00
Shyam Seshadri
b27fb8a644
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
2010-08-11 11:42:04 -07:00
Misko Hevery
ab2213e80e
Merge branch 'master' of github.com:angular/angular.js
2010-08-11 11:21:08 -07:00
Misko Hevery
412f05977c
removed google charts and few other filters, switched to simple optimization for compiler
2010-08-11 11:21:03 -07:00
Shyam Seshadri
04e92a8753
modify element dsl to understand angular bindings and return jquery object for further checking
2010-08-12 01:57:36 +08:00
Shyam Seshadri
567341c10f
modify element dsl to understand angular bindings and return jquery object for further checking
2010-08-11 10:54:11 -07:00
Shyam Seshadri
27784b6dec
Change repeater dsl to collect and return an array of string contents based on match
2010-08-12 01:09:04 +08:00
Shyam Seshadri
e7b9095655
Change repeater dsl to collect and return an array of string contents based on match
2010-08-10 19:10:43 -07:00
Misko Hevery
49ffab3318
Merge branch 'master' of http://github.com/shyamseshadri/angular.js into shyam
2010-08-10 13:53:18 -07:00
Shyam Seshadri
c4c96c5c69
Fix test breakage in Chrome. Chrome JQuery doesn't like malformed table html apparently
2010-08-10 13:42:50 -07:00
Misko Hevery
8d635cfb87
Merge branch 'master' of github.com:angular/angular.js
2010-08-10 11:46:37 -07:00
Misko Hevery
9b392eca35
fix bug where $eval on undefined throws error
2010-08-10 11:23:23 -07:00
Misko Hevery
4aac29da18
added additional test
2010-08-10 11:17:08 -07:00
Shyam Seshadri
86c2ef87d5
Inject jquery into future scope, and rename outer scenario to _window, which is what it is
2010-08-10 10:48:31 -07:00
Shyam Seshadri
21d2b43e6c
Add element DSL, to find an element. Has knowledge of finding ng:bind elements and grabbing their contents.
2010-08-09 17:55:01 -07:00
Andres Ornelas
de8d0984c8
added repeater.collect to E2E DSL
2010-08-06 17:28:47 -07:00
Andres Ornelas
989cffb435
fix build breakage by returning the added futures in the DSL
2010-08-05 16:03:47 -07:00
Andres Ornelas
643b43ffe5
Added new files to Rakefile and consistently used .addFuture
2010-08-05 15:44:54 -07:00
Misko Hevery
49e08f5d2c
compile should take existingScope
2010-08-05 14:01:46 -07:00
Andres Ornelas
6d0eeda1e2
added MatcherSpec
2010-08-04 12:36:53 -07:00
Andres Ornelas
26ed747588
test passing with repeater.count
2010-08-04 11:47:10 -07:00
Andres Ornelas
ec12285c9d
Merge branch 'master' of github.com:angular/angular.js into future
2010-08-04 11:45:42 -07:00
Misko Hevery
89245f3a52
added RequestHeaders to XHR
2010-08-03 16:53:27 -07:00
Misko Hevery
059703495d
rename textMarkup to markup
2010-07-30 15:19:43 -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
af1eb6914e
keep #autobind for backward compatibility
2010-07-29 15:38:14 -07:00
Misko Hevery
03aac8b0ab
fix broken build, fix #autobind and css loading
2010-07-29 15:26:10 -07:00
Misko Hevery
1b768b8443
refactored $location service so that it correctly updates under all conditions
2010-07-29 12:54:13 -07:00
Andres Ornelas
ef88eb9a71
refactoring done but Expect not working
2010-07-27 17:04:37 -07:00
unknown
6bd8006edc
fix IE native mothods are not functions, and preventDefault
2010-07-27 16:53:23 -07:00
Misko Hevery
2a30a02f01
fix preventDefault for events
2010-07-27 15:54:50 -07:00
Andres Ornelas
32c4aee1cd
before pulling testcontext out
2010-07-27 15:53:55 -07:00
Andres Ornelas
da95010350
stable before refactoring
2010-07-27 15:43:14 -07:00
Andres Ornelas
b42072733c
Merge branch 'master' of github.com:angular/angular.js into future
2010-07-27 10:44:46 -07:00
Misko Hevery
8ddee9bb25
add $exceptionHandler service
2010-07-26 16:11:25 -07:00
Misko Hevery
a161a99ff8
minor speed improvements
2010-07-26 15:54:50 -07:00
Misko Hevery
94759f4c2c
remove old unneded files
2010-07-26 15:35:02 -07:00
Misko Hevery
b288cb08b4
minor performance improvements
2010-07-26 15:32:08 -07:00
Misko Hevery
3b41979891
fix bug which only showed up in ie7
2010-07-23 13:36:08 -07:00
Misko Hevery
2ac66b78f0
minor per improvement
2010-07-23 12:01:59 -07:00
Misko Hevery
1a730a9996
fixed some of the IE bugs
2010-07-23 11:46:04 -07:00
Misko Hevery
748e91ba92
fixed some of the IE bugs
2010-07-23 11:38:52 -07:00
Misko Hevery
8015e09e38
added buzz demo, fix undefined() -> undefined
2010-07-23 10:48:18 -07:00
Misko Hevery
2987f7f705
fix howers which were accidently broken
2010-07-22 15:32:57 -07:00
Misko Hevery
849a05b5a5
added jsonp to resources
2010-07-22 11:18:32 -07:00
Misko Hevery
b5bbfaeb80
clean up error reporting
2010-07-21 13:28:14 -07:00
Misko Hevery
719f6e15a0
clean up error handling a bit.
2010-07-20 17:13:31 -07:00
Misko Hevery
bebfbeac0a
fixed xhtml compatibility, fix console in chrome
2010-07-20 16:55:32 -07:00
Misko Hevery
7e96af0fdd
added equals method to angular.equals and $equals
2010-07-19 12:29:24 -07:00
Misko Hevery
cc097867f4
add basic date support
2010-07-15 14:35:04 -07:00
Misko Hevery
7cef4358ae
fixed build
2010-07-15 14:16:04 -07:00
Misko Hevery
1de82283db
proper handlig of $element in filters
2010-07-15 13:35:00 -07:00
Misko Hevery
9abd10e7b8
proper handlig of $element in filters
2010-07-15 13:13:21 -07:00
Misko Hevery
09e2295975
updated list of JavaScript keywords
2010-07-15 09:41:25 -07:00
Misko Hevery
17d2ced9cc
appease IE on CSS styles
2010-07-14 17:48:09 -07:00
Misko Hevery
e3e9ac8675
ng:style remembers previous style and properly resets to it
2010-07-14 17:07:23 -07:00
Kai Compagner
0a57273f00
fix undefine style
2010-07-15 07:40:27 +08:00
Misko Hevery
32361d03a1
Changed cacheThanRetrieve to verifyCache(by Rob Spies)
2010-07-13 15:53:13 -07:00
Misko Hevery
10cd9751ea
ng-change ng:change
2010-07-13 15:21:42 -07:00
Rob Spies
4034a2d1e2
better naming for our verify cache scheme, and tests.
2010-07-13 14:09:53 -07:00
Misko Hevery
87cfc27be3
changed remaining ng- to ng:
2010-07-13 11:20:11 -07:00
Misko Hevery
228b54aa2e
ng:repeat ignores prototype keys
2010-07-09 14:45:29 -07:00
Misko Hevery
00bb790392
fixed IE tests
2010-07-08 15:55:00 -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
1f05621509
change all attributes from ng- to ng: prefix
2010-07-02 15:39:57 -07:00
Andres Ornelas
2f7c538628
Merge branch 'master' of github.com:angular/angular.js into future
2010-07-02 14:44:20 -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
Andres Ornelas
9d8646b0d1
all tests passing with new futures concept
2010-06-30 09:51:54 -07:00
Andres Ornelas
e664186f93
initial concept
2010-06-29 15:43:02 -07:00
Shyam Seshadri
42257f22af
wilford's changes to serve cached data and then fetch from server if needed / specified
2010-06-23 13:07:31 -07:00
Andres Ornelas
70c3dc8166
expose e2e test results
2010-06-22 17:15:14 -07:00
Rob Spies
1500e91def
Merge http://github.com/angular/angular.js into angular
...
Conflicts:
.gitignore
2010-06-22 17:09:55 -07:00
Shyam Seshadri
b129a1094e
add back nicer formatting
2010-06-16 10:36:48 -07:00
Shyam Seshadri
769b26b79e
Fix bug with validator not triggering when attributes are bound and fix some typos. Add test for bug
2010-06-16 10:32:56 -07:00
Andres Ornelas
bbb45a7eed
Merge branch 'repeater'
2010-06-09 16:05:51 -07:00
Andres Ornelas
d0a468153d
fixed undefined testWindow bug
2010-06-09 15:38:56 -07:00
Andres Ornelas
85fac4d78c
add beforeEach and afterEach to scenario DSL
2010-06-09 14:12:54 -07:00
Andres Ornelas
f6a405c283
change repeater count expectation wording
2010-06-09 13:30:54 -07:00
Andres Ornelas
fe03ea0d1f
add repeater DSL and fix typo
2010-06-09 12:35:40 -07:00
Shyam Seshadri
36b58b235e
fix some lint issues
2010-06-03 11:03:11 -07:00
Shyam Seshadri
3245209bdb
Add ability to add conditions to ng-required
2010-06-02 17:13:10 -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
81dac70e72
imrove $orderBy performance
2010-05-30 20:21:40 -07:00
Misko Hevery
2e33e89a77
added compiled getterFN for better performance
2010-05-30 19:42:21 -07:00
Misko Hevery
1aa99c08e9
use expressionCompile function directly
2010-05-30 16:50:28 -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
fa0702bad1
change order of initialization
2010-05-28 10:32:03 -07:00
Andres Ornelas
cb5d211927
extracted switchRouteMatcher and added necessary libraries to angular-scenario
2010-05-27 11:26:23 -07:00
Andres Ornelas
177873df86
navigate to scenario waits for outstanding requests to clear before proceeding.
2010-05-26 16:09:48 -07:00
Andres Ornelas
aedf12f25e
added outstanding request queue
2010-05-26 15:21:58 -07:00
Andres Ornelas
0d41c86522
fixed broken jstd conf file
2010-05-26 15:17:28 -07:00
Misko Hevery
5992e81b2e
added rake task to create a single file for scenario runner
2010-05-25 14:23:52 -07:00
Andres Ornelas
2cce1ffc15
fixed collapsed issue
2010-05-25 13:05:23 -07:00
Andres Ornelas
55c0767f16
added dsl tests and select method
2010-05-24 17:48:17 -07:00
Andres Ornelas
3fab5d9879
added error handling on scenario definition
2010-05-24 15:25:30 -07:00
Andres Ornelas Mesta
f6c67e28c9
happy
2010-05-24 13:54:32 -07:00
Misko Hevery
d485421e0e
Merge branch 'master' of github.com:angular/angular.js
2010-05-20 16:56:22 -07:00
Misko Hevery
e3368e12a6
semi working state
2010-05-20 16:55:47 -07:00
Misko Hevery
5215e2095c
basic end to end runner
2010-05-20 15:55:41 -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
1bdcf72e45
put formatters back.
2010-05-13 16:40:41 -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
d523ab61d4
Merge branch 'master' of github.com:angular/angular.js
2010-05-13 12:03:34 -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
d5ba889f63
fixes issues where the field clobbers itself
2010-05-12 15:25:16 -07:00