Commit graph

2184 commits

Author SHA1 Message Date
Igor Minar
567f33823b Revert "fix ng:include issue introduced by a5eb3ed1"
This reverts commit 17ee0f031a.

this and a5eb3ed1 introduced scope leakage that can't be resolved
until we fix up scope relationships and eval propagation.
I'm reverting both this and a5eb3ed1 until we can properly address
the issue.
2011-01-24 14:03:42 -08:00
Igor Minar
5340d1e0b1 fix for infinite loop in retrieveScope with jQuery + specs
- retrieveScope run into infinite loop if called on DOM tree
  that doesn't contain scope reference (happens only with jQuery)
- added missing specs for retrieveScope function
2011-01-24 14:03:42 -08:00
Igor Minar
8d91ec4173 improve angular.Scope.$eval docs 2011-01-24 14:03:42 -08:00
Igor Minar
94737cd017 $cookies service should not call $eval during $eval
- added comment
- removed $eval call
- changed the code to not require $eval
- updated specs
2011-01-24 14:03:41 -08:00
Igor Minar
c8bb044be1 fix clobber test in angular-bootstrap.js for FF 2011-01-24 14:03:17 -08:00
Igor Minar
4a569560d8 null and other falsy values should not be rendered in the view
Closes #242
2011-01-20 12:55:03 -08:00
Igor Minar
17ee0f031a fix ng:include issue introduced by a5eb3ed1 2011-01-19 21:47:14 -08:00
Igor Minar
10646c9f6f add ng:view widget 2011-01-19 15:53:59 -08:00
Igor Minar
964e394555 fix argument variables in compiler 2011-01-19 15:53:59 -08:00
Igor Minar
a5eb3ed107 $route should create child scope via $new 2011-01-19 15:52:27 -08:00
Igor Minar
63690d1892 angular internals should not call methods via angular namespace 2011-01-19 15:52:27 -08:00
Igor Minar
da4b8a74c3 fix spec title for angular.formatter.index 2011-01-18 15:15:33 -08:00
Misko Hevery
5be92f7b9c fix broken build for IE. Read option.type==select-multiple rather then check presence of multiple attribute 2011-01-18 15:02:51 -08:00
Igor Minar
ad3b811b8b fixes, examples and tests for angular.Object.* docs 2011-01-18 14:42:18 -08:00
Igor Minar
d3f7bd699e various doc fixes for angular.Array.* apis + example and spec limitTo 2011-01-18 11:15:36 -08:00
Misko Hevery
1d7b9d5626 support compilation in HTML widgets 2011-01-14 10:30:05 -08:00
Misko Hevery
347be5ae9a fixed select with ng:format
select (one/multiple) could not chose from a list of objects, since DOM requires string ids.
Solved by adding index formatter, which exposed incorrect handling of formatters in select
widgets.
2011-01-14 10:30:00 -08:00
Igor Minar
23875cb330 significant rewrite of the $location service
- 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-13 16:58:35 -08:00
Igor Minar
b0be87f663 fix for angular.Object.equals to handle equals({},null) 2011-01-13 07:55:31 -08:00
Igor Minar
9ccd2f0412 adding a fallthrough comment 2011-01-11 17:48:30 -08:00
Igor Minar
99004b0aed fixing missing dependency 2011-01-10 23:28:47 -08:00
Misko Hevery
c3e32f1a51 fix broken e2e test due to $window no longer published 2011-01-10 13:55:08 -08:00
Misko Hevery
4f22d6866c complete rewrite of documentation generation
- romeved mustache.js
- unified templates
- improved testability of the code
2011-01-10 11:50:11 -08:00
Vojta Jina
aab3df7aea Fixed filter.date, so it parses format ending with non-replaced string
Closes #159
2011-01-10 10:37:37 -08:00
Igor Minar
0a6cf70deb Rename angular.foreach to angular.forEach to make the api consistent.
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-10 10:26:55 -08:00
Igor Minar
c79aba92f6 bootstrap angular on "document ready" instead of window.onload
- use jqLite api to bootstrap angular
- when jQuery is present DOMContentLoaded or hacks for IE are used
- when jqLite is present DOMContentLoaded is used for modern browsers
  and IE9 and window.onload is used for other browsers.
- test html for comparing DOMContentLoaded with window.onload

Closes #224
2011-01-10 10:24:12 -08:00
Igor Minar
84dedb81e7 jqLite should recognize window as an element even in IE
in IE window object has length property which makes it look like a
collection to jqLite. This commit makes jqLite properly identify
window as an element even in IE.

IE6 doesn't have Window type, so we need to check against window
object and only then do a more general check against Window. This
is not perfect, but I say screw IE6.
2011-01-10 10:24:12 -08:00
Igor Minar
e999740044 fix addEventLister detection for IE9
IE9 added support for addEventListener and it looks like some
new events (e.g. DOMContentLoaded) can't be registered via attachEvent,
only addEventListener correctly registeres these. So to make sure
we are using the latest and greatest we need to look for addEventListener
instead of attachEvent in the jqLite feature detection code.
2011-01-10 10:24:12 -08:00
Misko Hevery
4c71824a69 fix for IE free function weirdness 2011-01-10 10:22:24 -08:00
Misko Hevery
47c454a315 change to keydown from keyup; add delayed $updateView
- 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 14:39:46 -08:00
Igor Minar
16086aa37c $location service should utilize onhashchange events instead of polling 2011-01-07 14:39:41 -08:00
Igor Minar
142a985f33 Revert "Issue #51: Update extensionMap()"
This reverts commit 00ca67e4be.

Now that we don't have published services, we don't need to worryi
about this any more and in fact this behavior is confusing because
to override a service that has dependencies with a services with
no dependencies one must specify $inject:[] or else the old
dependencies will be injected.

Conflicts:

	src/Angular.js
	test/AngularSpec.js
2011-01-07 12:02:45 -08:00
Igor Minar
bd5ec7c32a rename nodeName due to conflicts with jquery 2011-01-07 12:02:45 -08:00
Igor Minar
bdc251c5a5 add global namespace clobbering check to angular-bootstrap 2011-01-07 12:02:45 -08:00
Igor Minar
da1d50fbe9 avoid namespace conflicts between jqLite and window when running in bootstrap mode 2011-01-04 18:04:01 -08:00
Igor Minar
b2631f6170 rename scope.$inject to scope.$service
see changelog diff for more info
2011-01-04 18:04:00 -08:00
Igor Minar
1430c6d6b1 renaming service property $creation to $eager
see changelog diff for more info
2011-01-04 18:03:55 -08:00
Igor Minar
3ea5941f0e removing support for 'eager-published' services 2011-01-04 16:40:41 -08:00
Misko Hevery
d0270d9256 Remove many eager-publish services, lazy polling
- 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.
2011-01-04 16:40:40 -08:00
Misko Hevery
5f080193cb Added an extra security check to make sure that the parser can not execute anything while evaluting JSON. 2011-01-04 13:25:49 -08:00
Igor Minar
e7a0fb250f fromJson delegation to native JSON parser if available
- native parser delegation
- $xhr change to use native parser
2010-12-22 14:16:36 -08:00
Igor Minar
d11088eb43 Revert "Refactor lexer to use regular expressions"
We came across a major performance regression due to this change.
I'm reverting it until we find a better solution.

This reverts commit 23fc73081f.
2010-12-22 14:16:36 -08:00
Misko Hevery
a5df1fc41f Stricter JSON parsing, for security 2010-12-11 10:07:10 -08:00
Misko Hevery
ec4d446f89 Closes #153: input widgets without name are ignored 2010-12-11 08:28:11 -08:00
Misko Hevery
b225083a21 Fire $eval only if the value has actually changed on input 2010-12-11 08:27:52 -08:00
Igor Minar
b370fac4fc $defer service should always call $eval after callback finished
Closes #189
2010-12-10 13:22:44 -08:00
Misko Hevery
23fc73081f Refactor lexer to use regular expressions 2010-12-08 14:39:22 -08:00
Misko Hevery
e5e69d9b90 Remove RegExp parser
- RegExp parser is rearly used, feature, and one should not have RegExps
  in views anyways, so we are removing it

BACKWARD INCOMPATIBLE CHANGE!!!
2010-12-08 14:36:51 -08:00
Misko Hevery
fa722447f8 Fixed failed assignments of form abj[0].name=value
Closes #169
2010-12-08 14:20:26 -08:00
Igor Minar
824eab9029 improving $resource docs 2010-12-07 16:06:31 -08:00
Igor Minar
8aed2047f0 fixing closure compiler warnings 2010-12-06 20:48:47 -08:00
Igor Minar
f60b6b0938 fix the angular.Array.orderBy example + add docs 2010-12-06 20:32:37 -08:00
Igor Minar
c8f34e7f6b fixing lint warnings in older code 2010-12-06 16:45:59 -08:00
Igor Minar
011fa39c2a add $browser.defer and $defer service and fix async xhr cache issue
- 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-12-06 16:45:59 -08:00
Misko Hevery
58d0e8945d allow documentation to be in external file
* Load templates once instead of per request
* show timing information
* load files ending in .ngdoc and process them
2010-12-06 15:48:40 -08:00
Misko Hevery
2bbced212e Fix sanitization issues as suggested by evn 2010-12-03 15:42:42 -08:00
Misko Hevery
5a8ad8fe32 Closes #170. Corrected the behavior of select when options are ng:repeated
- Delete $postEval method, as it was a hack
2010-12-02 22:45:57 -08:00
Misko Hevery
41d5938883 Fixed sanitization
* explicitly require full URLs (ftp|https?://...)
* list the URI attributes
* remove a lot of unneeded attributes
2010-11-29 21:55:32 -08:00
Igor Minar
aa21c521eb more docs for angular.service. 2010-11-25 09:50:07 -08:00
Vojta Jina
47f159cdf3 Doc service: added example into service overview 2010-11-25 08:51:26 -08:00
Igor Minar
99eb123d79 docs for all angular.* type checking functions 2010-11-25 08:19:14 -08:00
Igor Minar
6515adc118 docs for angular.injector 2010-11-24 22:50:34 -08:00
Igor Minar
b7aff92354 docs for angular.bind 2010-11-24 22:33:40 -08:00
Igor Minar
6b3b00e095 docs for angular.foreach 2010-11-24 21:13:58 -08:00
Igor Minar
921f7ce49e docs for angular.extend 2010-11-24 21:03:56 -08:00
Igor Minar
17eee57c52 fixing docs for angular.scope 2010-11-24 19:29:45 -08:00
Igor Minar
4fc3ee8040 docs for angular.compile 2010-11-24 19:14:34 -08:00
Igor Minar
39d3ae80d9 docs for angular.element 2010-11-24 19:03:06 -08:00
Igor Minar
480f2f33c1 docs for angular.noop and angular.identity 2010-11-24 18:23:21 -08:00
Igor Minar
9c9a89f7ff docs for angular.scope. and angular.scope. 2010-11-24 18:07:11 -08:00
Igor Minar
73194009a9 docs for angular.Object.copy 2010-11-24 17:32:04 -08:00
Igor Minar
162f41a1ab docs for angular.Object.size 2010-11-24 17:21:37 -08:00
Igor Minar
7c82c4f837 docs for angular.Object and angular.Object.equals 2010-11-24 16:55:44 -08:00
Igor Minar
97b1371199 adding Note section to angular.Array.* where it was missing 2010-11-24 16:32:03 -08:00
Igor Minar
95d1768c77 docs for angular.Array.sum 2010-11-24 16:28:17 -08:00
Igor Minar
c3d99d68da docs for angular.Array.filter 2010-11-23 17:14:04 -08:00
Igor Minar
303a683081 docs for angular.Array.remove 2010-11-23 16:28:24 -08:00
Igor Minar
a0e8c45880 docs for angular.Array.remove 2010-11-23 16:10:14 -08:00
Igor Minar
870547d185 docs for angular.Array.orderBy 2010-11-23 15:44:14 -08:00
Igor Minar
0d1f8a0532 docs for angular.Array.count 2010-11-23 14:10:10 -08:00
Igor Minar
b94600d71e adding docs for angular.Array.add 2010-11-23 11:05:28 -08:00
Igor Minar
3e5a4ef86c placeholder docs for all angular.Array functions 2010-11-22 10:57:44 -08:00
Igor Minar
efec0c358d Add angular.Array.limitTo and docs for angular.Array 2010-11-22 10:57:32 -08:00
Igor Minar
50ef1f8e35 don't escape $ in hashpath either 2010-11-18 22:40:00 -08:00
Igor Minar
66c0bfaa8e don't escape ! and : in hashPath
This is a temporary fix for Issue #158
2010-11-18 20:51:31 -08:00
Igor Minar
1719b0aca5 fix all closure compilation warnings due to invalid function types 2010-11-18 17:03:43 -08:00
Igor Minar
fc7f11d03b add @workInProgress tag and mark all @ngdocs as work in progress 2010-11-18 16:28:42 -08:00
Igor Minar
7f339a1782 escape code in ng:bind-attr jsdoc 2010-11-18 11:33:09 -08:00
Igor Minar
72a5f007d8 most of the documentation for angular.scope and friends 2010-11-18 02:35:30 -08:00
Igor Minar
c635b69f5c fix docs and examples for ng:format, ng:required and ng:validate 2010-11-18 02:35:30 -08:00
Igor Minar
522ec1a9ec move attribute widgets to widgets.js file
- move @ng:repeat to widgets.js and its specs to widgetsSpecs.js
- move @ng:non-bindable to widgets.js and its specs to widgetsSpecs.js
- make widget.template suitable for attribute widgets
- fix up the js docs for attribute widgets
2010-11-18 02:35:29 -08:00
Igor Minar
9cb57772a4 fix docs for angular.directive and ng:autobind 2010-11-18 02:35:29 -08:00
Igor Minar
a6978b201b make @param type and description non-optional 2010-11-18 02:35:28 -08:00
Igor Minar
e509ec37f5 fixing angular.lowercase and angular.upppercase jsdocs + api 2010-11-18 02:34:54 -08:00
Igor Minar
9d36368ff9 fixing angular.filter.number jsdocs 2010-11-18 02:34:54 -08:00
Igor Minar
d4bcee0799 toJson and fromJson jsdocs 2010-11-18 02:34:54 -08:00
Igor Minar
4c69d694d7 make @returns type non-optional 2010-11-18 02:34:53 -08:00
Igor Minar
ff7c738c21 fix ng docs for angular, angular.lowercase and uppercase 2010-11-18 02:34:53 -08:00
Igor Minar
fc78738cc6 scope docs + lowercase doc fix 2010-11-18 02:34:52 -08:00
Misko Hevery
b2d63ac48b Changed error handling so that better stack traces are displayed in the ng-errors 2010-11-16 14:19:55 -08:00
Igor Minar
a130bb899d add onload attribute to ng:include 2010-11-16 11:35:43 -08:00
Vojta Jina
cc749760fd Added basic Services, which support @memberOf and @methodOf 2010-11-15 21:55:37 -08:00
Misko Hevery
b467a50bc7 generate keyword for searches; improved layout of doc 2010-11-15 12:28:08 -08:00
Misko Hevery
a1652057a5 changed to ! notation for indexable apps 2010-11-15 10:04:17 -08:00
Misko Hevery
7e6f999221 added remaining directives and search box. 2010-11-15 10:04:17 -08:00
Igor Minar
0a8b3161b1 $watch should optionally skip listener exec
- if initRun param is set to false, listener doesn't execute
- the oldValue should equal newValue during the initial execution
- added docs
- added specs
2010-11-11 16:39:01 -08:00
Igor Minar
ae5f6f48b4 scenario repeater should match only visible stuff 2010-11-10 21:04:44 -08:00
Igor Minar
c5b2bf083c Make ng:repeat expose $position.
- $position is a textual representation of the position of
  repeated item ('first', 'middle', 'last')
- added specs for $index
2010-11-10 21:04:44 -08:00
Misko Hevery
0499c47270 added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible) 2010-11-10 21:01:17 -08:00
Misko Hevery
6b8ed42670 Added Directives 2010-11-10 12:02:49 -08:00
Igor Minar
6d53808475 improve jsdocs
- improve json filter example
- improve filter overview doc
- improving validator overview jsdocs
- simplify number filter examples and make them live + add specs
- various doc fixes
2010-11-09 22:33:27 -08:00
Igor Minar
324694a58b Better example widget
- syntax highlighting
- tabless design
- rename widget to doc:example
- rename widget files (wiki_widget.* -> doc_widget.*)
- example section is now optional
2010-11-09 22:27:31 -08:00
Elliott Sprehn
257e97a65f Support substring matching of bindings with repeater(). Closes #123 2010-11-09 13:39:12 -08:00
Misko Hevery
c048f0d8e8 Added formatter documentation. 2010-11-09 09:15:29 -08:00
Elliott Sprehn
96e37a0866 Add key/value jQuery methods in a loop. Support 'css' method.
Closes #134
2010-11-09 08:02:49 -08:00
Igor Minar
fc9ce9ec07 make angular.String.toDate consider all time fractions as optional 2010-11-08 22:49:30 -08:00
Igor Minar
da17c61444 angular.Date.toString should use toISOString if available 2010-11-08 22:49:30 -08:00
Igor Minar
e5c135ac50 Support ISO 8601 extended datetime format troughout angular.
Support ISO 8601 extended format datetime strings (YYYY-MM-DDTHH:mm:ss.SSSZ) as defined
  in EcmaScript 5 throughout angular. This means that the following apis switched from
  YYYY-MM-DDTHH:mm:ssZ to YYYY-MM-DDTHH:mm:ss.SSSZ (note the added millis) when representing dates:
  - angular.Date.toString
  - angular.String.toDate
  - JSON serialization and deserialization (used by json filter, $xhr and $resource)
2010-11-08 22:49:30 -08:00
Igor Minar
1a43f36e23 Add isDate method + fix old code 2010-11-08 22:49:29 -08:00
Igor Minar
a397645537 date filter should accept ISO 8601 formatted string as input
Closes #125
2010-11-08 22:46:41 -08:00
Vojta Jina
00ca67e4be Issue #51: Update extensionMap()
If user override existing extension, angular properties ($) will be preserved.

This piece of logic could be refactored into separate method:
Something like we have extend(), addMissingProperties() - I can't find a name
for this method...

Closes #51
2010-11-07 14:42:03 -08:00
Misko Hevery
91b6c5f7ff Added documentation for validators.
BACKWARD INCOMPATIBLE: removed ssn validators, since it is unlikely that most people will need it and if they do, they can added it thorough RegExp
2010-11-07 13:06:55 -08:00
Vojta Jina
5be325a0c1 Refactored toJsonArray(), added isBoolean() function 2010-11-05 21:39:00 -07:00
Vojta Jina
b7027b9d87 Updated toJson() to not serialize window/document objects.
The reason to void these to objects is that they cause all sorts
of problems like exceptions being thrown and infinite loops occuring
when we iterate over object properties.
2010-11-05 21:39:00 -07:00
Vojta Jina
fe8353bc5e Changed toJson() to not ignore $ properties 2010-11-05 21:39:00 -07:00
Misko Hevery
d5e9f38f3d fix error in json parser which did not allow 1.2E10 as number 2010-11-05 16:41:36 -07:00
Misko Hevery
dc66687149 added tests for documentation 2010-11-05 15:05:24 -07:00
Misko Hevery
3d6a099d6e changed to showdown from markup. added validator overview 2010-11-05 13:32:37 -07:00
Misko Hevery
47066e70e1 added documentation for ng:include and ng:widget and test for doc collector. 2010-11-04 14:24:31 -07:00
Elliott Sprehn
ee5e881b9e Fix JSON serialization breakage in WebKit browsers 2010-11-03 11:47:06 -07:00
Elliott Sprehn
690dfe000b Serialize RegExp to string in JSON. Closes #119. 2010-11-03 11:10:51 -07:00
Igor Minar
dfa8baf59a hide example for angular.filter 2010-11-03 10:02:20 -07:00
Igor Minar
a8efd43d25 doc parser should recognize the 'defaults' syntax for params 2010-11-03 09:47:23 -07:00
Misko Hevery
5159eb7635 fix the linky filter 2010-11-03 09:47:22 -07:00
Igor Minar
1ba8c2a33a more documentation for filters 2010-11-03 09:47:22 -07:00
Misko Hevery
659af29adb jsdoc parser + generator + viewer + scenario runner
- parse jsdocs from source code
- generate prerendered (markdown + mustache) partials
- generate json
- generate scenario runner for examples in docs
- basic angular doc viewer
2010-11-03 09:47:22 -07:00
Igor Minar
1fe7e3a130 add jsdocs for angular and filter namespaces + all filters 2010-11-03 09:47:21 -07:00
Igor Minar
aec3c8478c binding() should return value for input/text area, innerHTML for the rest 2010-11-03 09:47:21 -07:00
Igor Minar
5c887ddb66 adding textarea() DSL for scenario runner 2010-11-03 09:47:21 -07:00
Igor Minar
0bd4a473a7 adding regular expressions support for binding() DSL 2010-11-03 09:44:54 -07:00
Elliott Sprehn
dcf76e6816 Provide better sandbox error messages, and disallow running from file:// URLs 2010-11-02 11:27:54 -07:00
Elliott Sprehn
56a3d52f45 Make future names consistent and handle falsy values in jQuery generated methods properly 2010-11-02 11:20:41 -07:00
Elliott Sprehn
faa7d81b67 Add browser().reload() to simulate a refresh from a user 2010-11-01 17:24:24 -07:00
Elliott Sprehn
6bb2cd6ee2 Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL. 2010-11-01 15:21:37 -07:00
Vojta Jina
2d61040fb0 Small refactor in $location service
Added new inner method updateLastLocation()
2010-10-31 21:37:54 -07:00
Vojta Jina
99f25050a3 Fixing issue #98 (infinite loop when location hash set empty)
Added tests and fixed the issue.

Closes #98
2010-10-31 21:37:33 -07:00
Misko Hevery
ba5f8ee27f fix typo, and change a list to string for more efficient compression. 2010-10-31 15:04:30 -07:00
Elliott Sprehn
9a532002cf Auto generate all the jQuery get/set methods 2010-10-29 12:19:22 -07:00
Elliott Sprehn
5524d2b0fb Check if file exists (not a 404) and that document is accessible and not using file:// URLs in Application 2010-10-29 11:40:56 -07:00
Andres Ornelas
34909520ae add optional label to dsl with selectors to improve test and output readability
e.g.
Before:
   code:   element('.actions ul li a').click();
   output: element .actions ul li a click
After
   code:   element('.actions ul li a', "'Configuration' link").click();
   output: element 'Configuration' link ( .actions ul li a ) click
2010-10-28 15:21:02 -07:00
Elliott Sprehn
92e31b556f Correctly fail tests if no binding matches and add better test cases for failure behavior. 2010-10-27 17:56:44 -07:00
Misko Hevery
62c0e5c460 Fix failing tests for ie, and mark elements as ng-widget, ng-directive, and ng-binding 2010-10-27 15:42:46 -07:00
Igor Minar
c67af8a038 rename src/Parser.js to src/parser.js 2010-10-27 15:32:30 -07:00
Elliott Sprehn
2da1de5a6d Revert performance optimization of using setTimeout in SpecRunner every 10 steps. Breaks loading partials 2010-10-27 13:41:31 -07:00
Misko Hevery
943377a091 fix closure compile warnings 2010-10-26 21:06:24 -07:00
Misko Hevery
9c0225512c fixes IE related failures, and form submit event handling in ie 2010-10-26 16:33:59 -07:00
Elliott Sprehn
40d7e66f40 Lots of bug fixes in the scenario runner and a bunch of new features.
- By default the runner now creates multiple output formats as it runs. Nodes are created in the DOM with ids: json, xml, and html.

ex. $('#json').html() => json output of the runner
ex. $('#xml').html() => json output of the runner

$result is also an object tree result.

The permitted formats are html,json,xml,object.

If you don't want certain formats you can select specific ones with the new ng:scenario-output attribute on the script tag.

<script src="angular-scenario.js" ng:scenario-output="xml,json">

- Added element(...).count() that returns the number of matching elements for the selector.

- repeater(...).count() now returns 0 if no elements matched which can be used to check if a repeater is empty.

- Added toBe() matcher that does strict equality with ===

- Implement iit and ddescribe. If iit() is used instead of it() then only that test will run. If ddescribe() is used instead of describe() them only it() statements inside of it will run. Several iit/ddescribe() blocks can be used to run isolated tests.

- Implement new event based model for SpecRunner. You can now listen for events in the runner. This is useful for writing your own UI or connecting a remote process (ex. WebDriver). Event callbacks execute on the Runner instance.

Events, if fired, will always be in the below order. All events always happen
except for Failure and Error events which only happen in error conditions.

Events:
  RunnerBegin
  SpecBegin(spec)
  StepBegin(spec, step)
  StepError(spec, step, error)
  StepFailure(spec, step, error)
  StepEnd(spec, step)
  SpecError(spec, step, error)
  SpecEnd(spec)
  RunnerEnd

- Only allow the browser to repaint every 10 steps. Cuts 700ms off Firefox in benchmark, 200ms off Chrome.

- Bug Fix: Manually navigate anchors on click since trigger wont work in Firefox.
2010-10-26 15:17:57 -07:00
Misko Hevery
1d52349440 Reverted change 841013a4c4 which does not work on all browsers 2010-10-26 14:25:01 -07:00
Igor Minar
3eb0c8bc67 Simplify dateGetter() within the date filter. 2010-10-26 13:47:50 -07:00
Igor Minar
42855e4363 Simplify implementation of angular.String.toDate() 2010-10-26 13:47:50 -07:00
Misko Hevery
4fdab37659 create HTML sanitizer to allow inclusion of untrusted HTML in safe manner.
Sanitization works in two phases:
 1) We parse the HTML into sax-like events (start, end, chars).
    HTML parsing is very complex, and so it may very well be that what
    most browser consider valid HTML may not pares properly here,
    but we do best effort. We treat this parser as untrusted.
 2) We have safe sanitizeWriter which treats its input (start, end, chars)
    as untrusted content and escapes everything. It only allows elements
    in the whitelist and only allows attributes which are whitelisted.
    Any attribute value must not start with 'javascript:'. This check
    is performed after escaping for entity (&xAB; etc..) and ignoring
    any whitespace.

 - Correct linky filter to use safeHtmlWriter
 - Correct html filter to use safeHtmlWriter

Close #33; Close #34
2010-10-26 13:41:07 -07:00
Igor Minar
841013a4c4 Add millisecond support for date filter
Date filter should translate input which is a number (or number
string) into a date.
2010-10-25 10:44:03 -07:00
Igor Minar
4e9a2aa10e Revert "added support for treating numbers as date in miliseconds"
This reverts commit 1391f19fb4.
2010-10-23 18:26:47 -07:00
Misko Hevery
1391f19fb4 added support for treating numbers as date in miliseconds 2010-10-23 14:38:08 -07:00
Igor Minar
04a4d8b061 adding ng:submit directive for use with forms
- allows for binding angular expressions to onsubmit events
- prevent default submit action (page reload)
2010-10-23 14:22:54 -07:00
Igor Minar
bbd87c9425 simplifying ng:click spec 2010-10-23 14:22:54 -07:00
Igor Minar
833e0ae343 $cookieStore should not be a global service
you must use $inject to $inject it as any other non-global service
2010-10-23 14:22:30 -07:00
Misko Hevery
d74ef497de Fix for getting into recursive $eval on scope. Close #59
It sort of worked since the browser would throw stack too deep
exception and the angular would then print the error to console.
So as long as you did not have console open you would not notice
this as an error.
2010-10-23 13:42:11 -07:00
Misko Hevery
8a867cee22 Workaround for http://bugs.jquery.com/ticket/7292 2010-10-22 22:46:51 -07:00
Misko Hevery
68217d427c Horrible IE + jQuery hack to make the tests pass 2010-10-22 16:40:04 -07:00
Misko Hevery
a6cfa43c19 fixed issue with ie .data() method failing tests 2010-10-22 14:26:18 -07:00
Misko Hevery
05d4971abb fix some of the failing ie tests 2010-10-20 23:17:59 -07:00
Igor Minar
6f3a757a37 Angular should look for angular-ie-compat file at the right location
The location should be based on the base path of the angular script
and the version identifier of the angular script.

ex: angular.js -> angular-ie-compat.js
    js/angular-0.9.0.min.js -> js/angular-ie-compat-0.9.0.js
2010-10-20 14:48:35 -07:00
Igor Minar
644c8514c5 extract and test regexp that identifies angular script tag 2010-10-20 14:48:35 -07:00
Elliott Sprehn
2115db6903 Lots of stability and performance updates and UI polish too.
Polish the Scenario Runner UI to include:
- a scroll pane that steps appear in since the list can be very long
- Collapse successful tests
- Show the line where the DSL statements were when there's an error (Chrome, Firefox)

Also:
- Remove lots angular.bind calls to reduce the amount of stack space used.
- Use setTimeout(...,0) to schedule the next future to let the browser breathe and have it repaint the steps. Also prevents overflowing the stack when an it() creates many futures.
- Run afterEach() handlers even if the it() block fails.
- Make navigateTo() take a function as the second argument so you can compute a URL in the future.
- Add wait() DSL statement to allow interactive debugging of tests.
- Allow custom jQuery selectors with element(...).query(fn) DSL statement.

Known Issues:
- All afterEach() handlers run even if a beforeEach() handler fails. Only after handlers for the same level as the failure and above should run.
2010-10-20 14:38:00 -07:00
Misko Hevery
9c8b1800b9 fixed negative numbers in Json 2010-10-20 07:22:15 -07:00
Vojta Jina
a27198d52e Added tests for URL_MATCH and fixed issue with empty path
This commit was produced by a combination of 4 commits:
- Added URL_MATCH test for basic url
- Moved two tests from $location to URL_MATCH, as they should be here
- Added test for host without "/" ending and fix the regexp to pass the test
- Added another test for matching empty abs path ("/") and fix the regexp
2010-10-19 21:58:01 -07:00
Misko Hevery
286d1fe434 fix issue where script calls back before callback registered. 2010-10-19 21:03:34 -07:00
Misko Hevery
c5cfe2b393 fix date filter to igrone falsy input 2010-10-19 20:38:49 -07:00
Misko Hevery
a0ac6725ed fixed Scenario.js so that it does not clobber global vars 2010-10-19 16:25:23 -07:00
Misko Hevery
406373b5db fixed tests 2010-10-19 16:14:16 -07:00
Misko Hevery
01c7abab35 Fix browser triggering in scenario to always do native events.
- Also fixed angular.suffix for scenarios
 - refactored click() to browserTrigger()
 - Fixed Rakefile with CSS and jQuery
2010-10-19 15:56:53 -07:00
Elliott Sprehn
e7e894a2e3 Significantly clean up the way the scenario DSL works and implement many more DSL statements.
- "this" always means the current chain scope inside a DSL

- addFutureAction callbacks now take ($window, $document, done)

- $document has a special method elements() that uses the currently selected nodes in the document as defined by using() statements.

- $document.elements() allows placeholder insertion into selectors to make them more readable.
  ex. $document.elements('input[name="$1"]', myVar) will substitute the value of myVar for $1 in the selector. Subsequent arguments are $2 and so on.

- $document.elements() results have a special method trigger(event) which should be used to events. This method implements some hacks to make sure browser UI controls update and the correct angular events fire.

- futures now allow custom formatting. By default any chain that results in a future can use toJson() or fromJson() to convert the future value to and from json. A custom parser can be provided with parsedWith(fn) where fn is a callback(value) that must return the parsed result.

Note: The entire widgets.html UI is now able to be controlled and asserted through DSL statements!!! Victory! :)
2010-10-19 00:45:38 -07:00
Igor Minar
a1fa23397f small fixes to the $location services
* fixing the jsdoc format
* rewriting updateHash() method to be easier to read and so that
  it minifies better
2010-10-18 22:24:44 -07:00
Igor Minar
4bef371e5a fixing css class name for currency filter and its spec 2010-10-18 16:24:43 -07:00
Igor Minar
7059579c74 inline all images into css
* embedded images as data URIs
* rake task to generate multipart js file with embeded images for IE
* move images into a separate directory outside of src or css and
  keep them there for reference
* clean up Rakefile and ruby code
* .gitignore update
* don't penalize IE 8+ with an extra request to the ie-compat.js file
2010-10-18 16:24:43 -07:00
Vojta Jina
d0e55bf446 Removed $location.cancel() method (and related test) 2010-10-18 14:13:48 -07:00
Vojta Jina
1cad16c6f9 Update $location API Close #62
update(objOrString)
updateHash(objOrString [, objOrString])
toString()
cancel()

Examples:
$location.update('http://www.angularjs.org/path#path?a=b');
$location.update({port: 443, protocol: 'https'});
$location.updateHash('hashPath');
$location.updateHash({a: 'b'});
$location.updateHash('hashPath', {a: 'b'});

This commit was produced by squash of more commits, here are the old messages:

- Change tests to use update() instead of parse().
- First implementation of update() method
- Test for update() with object parameter
- Add new tests for location, refactor location code
- Add tests for updateHash()
- Implement updateHash()
- Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch...
- Fixed other service tests, to use new $location.update()
Added $location.cancel() method (with test)
Added $location.parse() for back compatability
Remove parse() method
2010-10-18 10:04:15 -07:00
Vojta Jina
341b2b3a9b Update $location API Close #62
update(objOrString)
updateHash(objOrString [, objOrString])
toString()
cancel()

Examples:
$location.update('http://www.angularjs.org/path#path?a=b');
$location.update({port: 443, protocol: 'https'});
$location.updateHash('hashPath');
$location.updateHash({a: 'b'});
$location.updateHash('hashPath', {a: 'b'});

This commit was produced by squash of more commits, here are the old messages:

- Change tests to use update() instead of parse().
- First implementation of update() method
- Test for update() with object parameter
- Add new tests for location, refactor location code
- Add tests for updateHash()
- Implement updateHash()
- Take one or two arguments, could be string - update hashPath, or hash object - update hashSearch...
- Fixed other service tests, to use new $location.update()
Added $location.cancel() method (with test)
Added $location.parse() for back compatability
Remove parse() method
2010-10-18 09:58:37 -07:00
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
Igor Minar
54090d7766 ng:include should remove the reference to childScope when src is blank 2010-10-16 22:10:01 -07:00
Vojta Jina
b08e2be64c Pass the toKeyValue() test - parsing flags 2010-10-16 22:10:01 -07:00
Misko Hevery
b96f736951 fixed date formater and make it work on ie 2010-10-16 21:43:28 -07:00
Misko Hevery
ff52f47537 Fix unicode parsing Close #56 2010-10-15 14:06:30 -07:00
Misko Hevery
a36964799b fixed lint warnings and one flaky test 2010-10-15 13:44:53 -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
Misko Hevery
a7da160c1d publish $route since we bind it with $route.current in ng:include 2010-10-14 15:44:14 -07:00
Misko Hevery
d9c8284ea5 removed stray console.log 2010-10-14 14:52:12 -07:00
Igor Minar
692333f2f5 temporary backwards compatibility patch for 2010-10-14 12:36:29 -07:00
Elliott Sprehn
03df6cbddb New Angular Scenario runner and DSL system with redesigned HTML UI.
Uses the Jasmine syntax for tests, ex:

describe('widgets', function() {
  it('should verify that basic widgets work', function(){
    navigateTo('widgets.html');
    input('text.basic').enter('Carlos');
    expect(binding('text.basic')).toEqual('Carlos');
    input('text.basic').enter('Carlos Santana');
    expect(binding('text.basic')).not().toEqual('Carlos Boozer');
    input('text.password').enter('secret');
    expect(binding('text.password')).toEqual('secret');
    expect(binding('text.hidden')).toEqual('hiddenValue');
    expect(binding('gender')).toEqual('male');
    input('gender').select('female');
    expect(binding('gender')).toEqual('female');
  });
});

Note: To create new UI's implement the interface shown in angular.scenario.ui.Html.
2010-10-14 09:47:39 -07:00
Misko Hevery
0f104317df Added support for date filter
Date filter now supports:
yyyy: four digit year
  yy: two digit year
  MM: two digit month
  dd: two digit day of month
  HH: two digit hour in 0-23
  KK: two digit hour in 0-12
  mm: two digit minute
  ss: two digit second
   a: am/pm
   Z: four digit timezone offset

example {{ timestamp | date:'yyyy-MM-dd HH:mm:ss' }} becomes 2010-10-13 14:45:23
2010-10-13 23:15:40 -07:00
Misko Hevery
805753dba4 fixed issue where date copy creates an object instead of date 2010-10-13 12:47:10 -07:00
Misko Hevery
3ab49538a4 fixed issue where ng:bind would not reset value if expression returned undefined 2010-10-13 10:51:16 -07:00
Misko Hevery
2cb9497d02 Fixed issue where compiler would pass in detached text node if previous markup would have removed it. 2010-10-12 21:52:04 -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
7ed2191b07 fixing missing semicolon 2010-10-12 14:48:59 -07:00
Igor Minar
451a711343 fix global namespace polution with invalidWidgets 2010-10-13 04:37:46 +08:00
Igor Minar
70ff7a2639 fix memory leak caused by leftbehind $invalidWidgets references
- ng:switch should not clean up $invalidWidgets
- $invalidWidgets should be clean up after each eval
- add missing docs
2010-10-13 04:37:46 +08: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
Shyam Seshadri
8490bb921b Fix bug with Lexer not recognizing exponential values and values starting with dots 2010-10-08 20:41:19 -07:00
Misko Hevery
e3ea980c81 fixed leaking constants to gloabal scope 2010-10-08 16:25:12 -07:00
Misko Hevery
772e32c220 change ng:controller to create new scope hence allow nesting 2010-10-08 16:23:26 -07:00
Igor Minar
a930e782a5 removing anchor spec and improving jqLite.trigger() method
- removing the last anchor spec because it can't run reliably in all browsers
- improving jqLite.trigger() method
2010-10-06 10:05:51 -07:00
Elliott Sprehn
8e40e7070d Fix bug in IE where clone removes whitespace nodes. 2010-10-05 07:12:13 +08:00
Igor Minar
81052d4a62 fixed lint warnings 2010-10-04 09:00:09 -07:00
Igor Minar
8248e77a7b 'A' tag widget and ng:click propagation change
* added a widget for A (anchor) tag, that modifies the default behavior
  and prevent default action (location change and page reload) for tags
  with empty href attribute
* stopped event propagation for all ng:click handlers
2010-10-01 07:44:46 +08:00
Igor Minar
0af763dcec properly handle event's stopPropagation() and preventDefault() method in IE 2010-10-01 07:44:45 +08:00
Igor Minar
eb8d46d380 Differentiate between flags and empty keys in $location.hashSearch
* #foo?key=var&flag&emptyKey= should parse into
  {key:'val', flag: true, emptyKey: ''}
* added docs and spec for parseKeyValue function
2010-09-29 09:52:03 -07:00
Igor Minar
984acdc627 Reworked the cookie synchronization between cookie service, $browser and document.cookie.
Now we finally correctly handle situations when browser refuses to set a cookie, due to
storage quota or other (file:// protocol) limitations.
2010-09-27 15:10:05 -07:00
Igor Minar
3eec8c1a51 Properly initialize cookie service in order to preserve existing cookies
- previously the poller initialized the cookie cache too late which
  was causing previously existing cookies to be deleted by cookie service
- refactored the poller api so that the addPollFn returns the added fn
- fixed older cookie service tests
- removed "this.$onEval(PRIORITY_LAST, update);" because it is not needed
2010-09-26 23:54:31 -07:00
Misko Hevery
9171a2b2b5 Added support for functions to $orderBy method
http://github.com/angular/angular.js/issues#issue/23
2010-09-26 19:43:39 +02:00
Misko Hevery
27868f17de cleanup underscore.js form rakefile 2010-09-23 13:53:38 +02:00
Bolek Szewczyk
0d5407bc1e make date validator use the Date object 2010-09-23 13:50:10 +02:00
Misko Hevery
db42221828 fix parseInt by adding radix so that it does not default to octal if the string starts with 0 2010-09-23 13:28:33 +02:00
Igor Minar
acbcfbaf30 $cookies service refactoring
- remove obsolete code in tests
- add warning logs when maximum cookie limits (as specified via RFC 2965) were reached
- non-string values will now get dropped
- after each update $cookies hash will reflect the actual state of browser cookies
  this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that
- $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore
2010-09-23 17:23:52 +08:00
Igor Minar
a8931c9021 Rewrite session store service in object literal style and remove getAll method that is not used anywhere 2010-09-23 17:23:43 +08:00
Igor Minar
7cb7fb91c6 Add JSDoc for the copy() method 2010-09-23 17:19:26 +08:00
Misko Hevery
0649009624 Refactored the Browser:
- change from using prototype to inner functions to help with better compression
  - removed watchers (url/cookie) and introduced a poller concept
  - moved the checking of URL and cookie into services which register with poolers
Benefits:
  - Smaller minified file
  - can call $browser.poll() from tests to simulate polling
  - single place where setTimeout needs to be tested
  - More testable $browser
2010-09-22 16:17:44 +02:00
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
Misko Hevery
271b535c82 fix handling of null on ie 2010-05-10 20:41:12 -07:00
Misko Hevery
81e99799a8 fix handling of val on ie with jquery 2010-05-10 20:30:05 -07:00
Misko Hevery
5dda723185 improved handling of text fields when formater fails to prevent clobering of field 2010-05-10 20:24:20 -07:00
Misko Hevery
f5027cc375 Merge branch 'master' of github.com:angular/angular.js 2010-05-10 10:36:06 -07:00
Misko Hevery
4542716370 lint 2010-05-10 10:36:02 -07:00
Misko Hevery
664f1c5687 reenable hover clearing 2010-05-08 10:40:45 -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
ac1d02d065 make xhr post optional 2010-04-30 12:22:07 -07:00
Misko Hevery
549ff73a9b clear cache on non-get 2010-04-30 10:27:41 -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
913729ee01 fix isssue where the jasmine currentSpec does not get updated and hence everything runs as last spec context. 2010-04-29 10:55:22 -07:00
Misko Hevery
fce48eb60a resources now use browser mock 2010-04-27 11:18:08 -07:00
Misko Hevery
2a7cd9f390 fix ie bug with null and orphans elements 2010-04-26 16:49:34 -07:00
Misko Hevery
02fa10f93c allow the widget to change structure of the DOM and have the compiler follow the replaced element. 2010-04-26 11:57:33 -07:00
Misko Hevery
076f37a5ec fix last ie failure 2010-04-23 07:34:02 -07:00
Misko Hevery
0396054b4a fixed the way IE breaks parests on innerHTML 2010-04-22 22:44:48 -07:00
Misko Hevery
5fdb117b32 clean up failing test with jquery 2010-04-22 22:09:17 -07:00
Misko Hevery
df364c3980 fix CI Build 2010-04-22 21:11:24 -07:00
Misko Hevery
fe434307d1 tests work under jquery and without 2010-04-22 17:11:56 -07:00
Misko Hevery
2a9669e1d8 working on jQuery passing tests 2010-04-22 15:50:20 -07:00
Misko Hevery
8b29156a2d ie6 now passes 2010-04-21 14:29:05 -07:00
Misko Hevery
e78405f6ed more if tests pass 2010-04-21 12:50:05 -07:00
Misko Hevery
22d93e0a3b fixes to enable ie 2010-04-20 18:14:13 -07:00
Misko Hevery
259c2bba4b last failing ie test remaining 2010-04-19 17:02:46 -07:00
Misko Hevery
47ec218777 fix bug which got introduced by accident 2010-04-19 14:53:18 -07:00
Misko Hevery
9f9bdcf3d1 lint 2010-04-19 14:41:36 -07:00
Misko Hevery
618a2b423d ie fixes 2010-04-19 14:36:41 -07:00
Misko Hevery
8e1b670d5b fix ie bug with .text() on jqlite 2010-04-19 12:54:39 -07:00
Misko Hevery
8394353b85 bettor function iterator 2010-04-16 20:10:09 -07:00
Misko Hevery
6470b48ce0 validation issues fixed 2010-04-16 17:03:06 -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
cd03fe92a5 checkbox widget fix 2010-04-13 14:25:12 -07:00
Misko Hevery
7c49b25548 $invalid widget clear on switch change 2010-04-12 19:05:39 -07:00
Misko Hevery
713307b650 added ng-eval-order attribute 2010-04-12 16:24:28 -07:00
Misko Hevery
841640e540 removed Meta and allowed binding of HTML 2010-04-12 14:30:57 -07:00
Misko Hevery
2637d4e90c removed Meta and allowed binding of HTML 2010-04-12 14:28:15 -07:00
Misko Hevery
843bd355d2 various bug fixes 2010-04-09 16:20:15 -07:00
Misko Hevery
41a5c408c2 tests pass jstd has issues 2010-04-08 15:05:05 -07:00
Misko Hevery
c4ef1f2fdd tests failing jstd to show cory 2010-04-08 13:43:40 -07:00
Misko Hevery
e0ad7dfcd4 seperatio validation and exception handling 2010-04-07 17:24:24 -07:00
Misko Hevery
a8aa5af413 fixed filter this 2010-04-07 16:36:33 -07:00
Misko Hevery
3d0b40fee2 Merge branch 'directives' of github.com:angular/angular.js into directives 2010-04-07 14:15:09 -07:00
Misko Hevery
ab7b7dbf76 ngswitch using 2010-04-07 14:14:25 -07:00
Misko Hevery
3c5e0205f9 Merge branch 'directives' of github.com:angular/angular.js into directives 2010-04-07 14:13:28 -07:00
Misko Hevery
6ea1ac7b05 added $invalidWidget service 2010-04-07 14:13:10 -07:00
Misko Hevery
29309e0e5a jstd failing test case for cory 2010-04-07 10:35:54 -07:00
Misko Hevery
82cb18db28 Merge branch 'directives' of github.com:angular/angular.js into directives 2010-04-07 10:29:47 -07:00
Misko Hevery
0df93fd49c clean up, fixes for app 2010-04-07 10:17:15 -07:00
Misko Hevery
ee327a1f4f few fixes to make tests pass with jquery 2010-04-06 14:04:08 -07:00
Misko Hevery
e646068586 added ng-controller directive 2010-04-05 21:26:52 -07:00
Misko Hevery
2107eafcde added hover service 2010-04-05 20:53:33 -07:00
Misko Hevery
1c670b2a7c added ng:include 2010-04-05 14:09:25 -07:00
Misko Hevery
7a4b480206 added ng:switch widget 2010-04-05 11:46:53 -07:00
Misko Hevery
4bfa4e230d had to rename the flie so that it is the last file loaded. 2010-04-04 16:39:17 -07:00
Misko Hevery
5dcf9bb4fe browser is now injectable into the system 2010-04-03 20:23:16 -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
85f13d602e work on $location and autobind 2010-04-01 14:10:28 -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
cc6def854f reenabled more tests 2010-03-29 21:36:34 -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
c655b884e2 tests broken, but bootstrap works 2010-03-29 10:40:57 -07:00
Misko Hevery
258ca5f165 moved all uneeded files out, widgets.html works, tests horribly broken 2010-03-26 16:27:18 -07:00
Misko Hevery
1990cbbf28 added few extra tests 2010-03-25 22:07:36 -07:00
Misko Hevery
d934054cfc major refactoring of scope 2010-03-25 22:03:11 -07:00
Misko Hevery
0cc9b07320 input select-multiple now works 2010-03-25 14:51:42 -07:00
Misko Hevery
4fa166866b input select-one now works 2010-03-25 14:43:05 -07:00
Misko Hevery
b814c79b58 checkbox and radio now working 2010-03-25 13:01:08 -07:00
Misko Hevery
f29f6a47c4 fixed .value vs attr(value) access 2010-03-24 16:47:11 -07:00
Misko Hevery
0c42eb9909 input[type=text] now works with binding, validation, formatter, required 2010-03-24 16:13:42 -07:00
Misko Hevery
3d36942400 merge 2010-03-24 12:08:48 -07:00
Shyam Seshadri
03ddc4570b Fix parsing bug with strings for - 2010-03-24 10:35:01 -07:00
Misko Hevery
1b976dc27d tweeter demo script 2010-03-23 15:18:32 -07:00
Misko Hevery
bb98ae14f2 markup now wroks, some refactorings 2010-03-23 14:57:11 -07:00
Misko Hevery
6ff550cfa9 all angular.js directives now work 2010-03-22 21:29:57 -07:00
Misko Hevery
a822708674 rudementary event bind and trigger for jqlite 2010-03-22 20:20:05 -07:00
Misko Hevery
7c87c17d08 upgraded jquery to 1.4.2 and made ng-action work with jquery 2010-03-22 18:20:49 -07:00
Misko Hevery
6f8276a8e3 ng-watch directive 2010-03-22 16:07:42 -07:00
Misko Hevery
d4ba33d075 Merge branch 'directives' of github.com:angular/angular.js into directives 2010-03-22 15:46:52 -07:00
Misko Hevery
b4561ff951 ng-repeat works 2010-03-22 15:46:34 -07:00
Misko Hevery
84552f7f8a got few directives working 2010-03-22 13:58:04 -07:00
Misko Hevery
f6664ed7f6 tests fixed, still missing widgets 2010-03-19 22:18:39 -07:00
Misko Hevery
c3eac13aa7 showing off problem to corry 2010-03-19 16:41:22 -07:00
Misko Hevery
df607da0d1 support for templates 2010-03-18 14:43:49 -07:00
Misko Hevery
7634a3ed52 initial revision of new plugable compiler 2010-03-18 12:20:06 -07:00
Misko Hevery
f1b50b92ac Merge branch 'directives' of github.com:angular/angular.js 2010-03-16 15:21:01 -07:00
Adam Abrons
c9aba8b442 make xhr just a method 2010-03-16 14:48:11 -07:00
Adam Abrons
2df072e3f8 twitter using resources 2010-03-16 14:38:56 -07:00
Adam Abrons
5119c8a86f spike widgets in new style 2010-03-16 13:50:47 -07:00
Adam Abrons
34d48489d5 Merge commit 'origin/master' into directives 2010-03-16 10:34:46 -07:00
Adam Abrons
923289112e spike on directives 2010-03-16 10:30:26 -07:00
Adam Abrons
39c6c5975b get scenarios running again - open Runner.html in a browser to run them 2010-03-15 17:02:54 -07:00
Adam Abrons
79b743e52f resources, with bind() 2010-03-15 15:57:12 -07:00
Adam Abrons
f9f181a33e copy response into resource on save. update jstestdriver 2010-03-15 15:02:52 -07:00
Misko Hevery
cc71b745c3 added resources; removed compiled code 2010-03-15 14:36:50 -07:00
Misko Hevery
6431efef8c corrected repeater not removing when hash(instead of array) shrinks. 2010-02-26 13:08:28 -08:00
Misko Hevery
b628de9758 fix option value bug 2010-02-20 17:27:21 -08:00
Misko Hevery
97c02c9def upgraded underscore.js for ie compatibility 2010-02-20 14:56:06 -08:00
Misko Hevery
2f99af1cce fixed upload widget 2010-02-17 20:50:13 -08:00
Misko Hevery
060c18c796 Merge branch 'master' of git://github.com/angular/angular.js 2010-02-17 16:05:51 -08:00
Misko Hevery
7e14dff905 fix this on filter to point to scope 2010-02-17 16:05:26 -08:00
Adam Abrons
b561f6a0cc stop showing loading... text 2010-02-16 21:30:15 -08:00
Misko Hevery
3f9a2ab9bd added asynchronous validator 2010-02-12 19:39:01 -08:00
Misko Hevery
6cc9464136 Fixed negation grouping bug
Make 'this' of validation be scope
2010-02-12 14:17:44 -08:00
Misko Hevery
b2a8a089b6 make validator more leniant for errors which are false instead of null 2010-02-11 09:57:42 -08:00
Misko Hevery
799d72931a added onUpdateView listener for config 2010-02-09 13:13:18 -08:00
Misko Hevery
9d566a0cd0 better integer farmater 2010-02-05 14:41:54 -08:00
Misko Hevery
6d75afe6d2 fixed memory leak on repeaters 2010-02-05 14:13:19 -08:00
Misko Hevery
5eb440c22b lazy load the status dom 2010-02-04 15:12:34 -08:00
Misko Hevery
251fab4029 updateView is now called on binder instead of scope 2010-02-04 15:04:28 -08:00
Misko Hevery
9f919c42f0 better handling of $invalidWidgets 2010-02-04 14:02:20 -08:00
Misko Hevery
1da18e73a4 consider widget errors only when widgets are visible 2010-02-04 13:27:56 -08:00
Misko Hevery
5dd43b85e7 ng-required treats whitespace as empty 2010-02-04 11:45:38 -08:00
Misko Hevery
302472f4fa list formater always should return arry 2010-02-04 11:12:34 -08:00
Misko Hevery
2880411713 added bootstrap, fixed formatter 2010-01-29 10:15:15 -08:00
Misko Hevery
a9c182764b added formatters 2010-01-28 22:11:01 -08:00
Misko Hevery
dd9d8bf030 merge 2010-01-28 20:46:01 -08:00
Misko Hevery
3d99e0f6de work 2010-01-28 20:44:34 -08:00
Misko Hevery
f5055c6530 remove uneeded log 2010-01-26 15:59:46 -08:00
Adam Abrons
88384854c2 add default rake task (compile and test), send database name to login 2010-01-26 11:27:50 -08:00
Misko Hevery
a2540fd581 fixes to make it pass on IE 2010-01-25 23:49:52 -08:00
Misko Hevery
0b630972b1 merge 2010-01-25 20:02:24 -08:00
Misko Hevery
473e57e225 bindRootId configuration option 2010-01-24 20:44:17 -08:00
Misko Hevery
0f42fa2930 fix closure compiler issues 2010-01-24 19:33:04 -08:00
Misko Hevery
a5c446441f fix closure compiler incompatibilities 2010-01-24 19:12:01 -08:00
Misko Hevery
efad9ec5be changes to make it closure compiler compatible 2010-01-24 17:10:58 -08:00
Misko Hevery
c7719c2412 fix initialization 2010-01-24 12:10:26 -08:00
Misko Hevery
4460328bc1 lots of cleanup to get it ready for OS 2010-01-23 15:54:58 -08:00
Misko Hevery
e41ee88ef8 fix bug when multiple binders on same page 2010-01-22 11:21:22 -08:00
Misko Hevery
dc0db57b36 tweek tweeter 2010-01-20 06:52:50 -08:00
Misko Hevery
db2031c5a1 added debug info; fix parser bug with double negation 2010-01-19 17:53:20 -08:00
Misko Hevery
0e566fe6cb tweeter demo client 2010-01-18 17:56:08 -08:00
Misko Hevery
595b4ea097 checkpoint for integration with angular 2010-01-18 10:47:03 -08:00
Misko Hevery
27709c3f69 break out init phase into scope 2010-01-12 14:19:19 -08:00
Misko Hevery
e2a48aa232 dissable set url 2010-01-12 10:38:00 -08:00
Misko Hevery
cae222ec7a fix the special case for console functions 2010-01-12 10:25:55 -08:00
Adam Abrons
19bbee030b send database to mini login 2010-01-12 09:34:27 -08:00
Misko Hevery
13dee60685 dissable URL watching 2010-01-12 08:40:10 -08:00
Misko Hevery
6d5471c9be all files converted to prototype= {} 2010-01-11 17:32:33 -08:00
Misko Hevery
1a42a3fab9 green 2010-01-11 16:15:12 -08:00
Misko Hevery
1aba6b53b8 basic calculator works with minified.js, lots of references still broken 2010-01-10 08:58:57 -08:00
Misko Hevery
9b9a0dadcc removed nglr namespace 2010-01-09 15:02:43 -08:00
Misko Hevery
88eca572fd change bootstrap to angular.compile 2010-01-09 13:43:16 -08:00
Misko Hevery
eb9e66f480 cleanup 2010-01-09 13:21:24 -08:00
Misko Hevery
214c142d9d created a way to init the code without autobootstrap 2010-01-08 16:04:35 -08:00
Adam Abrons
c9c176a53b angular.js 2010-01-05 16:36:58 -08:00