No description
Find a file
Codier 29f9e2665d fix(scope): $watch (and angular.equals) should support NaN values
- since NaN !== NaN in javascript digest can get into an infinite loop
  when model value is set to NaN
- angular.equals(NaN, NaN) should return true since that's what we
  expect when comparing primitives or objects containing NaN values

Previously NaN because of its special === properties was used as the
initial value for watches, but that results in issues when NaN is used
as model value.

In order to allow for model to be anything incuding undefined and NaN we
need to mark the initial value differently in a way that would avoid
these issues, allow us to run digest without major perf penalties and
allow for clients to determine if the listener is being called because
the watcher is being initialized or because the model changed. This
implementation covers all of these scenarios.

BREAKING CHANGE: previously to detect if the listener was called because
the watcher was being initialized, it was suggested that clients check
if old value is NaN. With this change, the check should be if the newVal
equals the oldVal.

Closes #657
2011-11-21 15:43:12 -08:00
.externalToolBuilders Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
.settings added any edit perf to make sure no trailing whitespace 2011-01-24 14:23:51 -08:00
css refactor(filter): filters are now injectable and services 2011-11-14 20:31:09 -08:00
docs fix(docs): specify disqus_url 2011-11-19 15:42:17 -08:00
example refactor(injector): $injector is no longer a function. 2011-11-14 20:31:19 -08:00
i18n doc(rename): NG_LOCALE -> ngLocale 2011-11-14 20:31:20 -08:00
images chore(logo): add hi-res ng logo 2011-10-13 13:44:38 -07:00
lib feat(jquery): upgrade to jQuery 1.7 2011-11-13 16:30:21 -08:00
logs creating logs/ and tmp/ dirs 2010-10-29 10:47:06 -07:00
perf chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
regression style(docs): make jslint happy - fix some warnings 2011-11-14 20:31:19 -08:00
src fix(scope): $watch (and angular.equals) should support NaN values 2011-11-21 15:43:12 -08:00
test fix(scope): $watch (and angular.equals) should support NaN values 2011-11-21 15:43:12 -08:00
tmp creating logs/ and tmp/ dirs 2010-10-29 10:47:06 -07:00
.gitignore style(.gitignore) added IDEA 2011-10-11 10:53:07 -07:00
.project Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
angularFiles.js style(angularPublic): move public export definition to AnuglarPublic.js 2011-11-14 20:31:21 -08:00
angularjs.ftp add ftp script to auto deploy to angularjs.org 2010-08-14 11:03:36 -07:00
CHANGELOG.md chore(release): preparing the 0.10.6 bubblewrap-cape iteration 2011-11-08 16:39:19 -08:00
gdocs.js chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
gen_docs.sh fix(gen-docs): require files without touching PATH 2011-10-18 22:23:52 -07:00
gen_jstd_configs.js test(mocks): test mocks with compiled angular 2011-10-31 18:22:38 -07:00
java ng:repeat ignores prototype keys 2010-07-09 14:45:29 -07:00
LICENSE MIT license 2010-01-05 16:57:36 -08:00
nodeserver.sh Fix issue where directories don't have a slash on the end and allow specifying a different port 2010-10-23 14:22:54 -07:00
pom.xml chore(ide): add pom.xml for IDEs that grok maven 2011-08-23 08:17:46 -07:00
Rakefile feat(forms): new and improved forms 2011-10-11 11:01:45 -07:00
README.md readme 2010-03-15 14:41:28 -07:00
server-coverage.sh Add test coverage analysis. 2010-11-12 16:13:53 -08:00
server-scenario.sh JSTD adapter for running e2e tests 2011-05-19 09:43:56 -07:00
server.sh refactor(angular): externalize script load order into JSON 2011-09-13 01:02:22 +02:00
test-coverage.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test-jquery.sh chore(scripts): add test-jquery.sh for running unit tests with jQuery 2011-07-14 10:59:25 +02:00
test-mocks.sh test(mocks): test mocks with compiled angular 2011-10-31 18:22:38 -07:00
test-perf.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test-reset.sh Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
test-scenario.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test.sh chore(scripts): add test-jquery.sh for running unit tests with jQuery 2011-07-14 10:59:25 +02:00
version.yaml chore(release): preparing the 0.10.6 bubblewrap-cape iteration 2011-11-08 16:39:19 -08:00
watchr-docs.rb chore(watchr): watchr scripts should output logs to terminal 2011-10-31 11:34:25 -07:00
watchr.rb chore(watchr): watchr scripts should output logs to terminal 2011-10-31 11:34:25 -07:00

Angular

Compiling

rake compile

Running Tests

rake server:start
rake test