From a80a61839a66d244c8bb14bbe2975746e02516c8 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 3 Apr 2010 17:04:36 -0700 Subject: injection is now working --- lib/jsl/jsl.default.conf | 4 +-- scenario/widgets.html | 8 ++--- src/Angular.js | 88 +++++++----------------------------------------- src/Browser.js | 46 +++++++++++++++++++++++++ src/Compiler.js | 11 +++--- src/Formatters.js | 2 +- src/JSON.js | 8 ++--- src/Parser.js | 4 +-- src/Resource.js | 6 ++-- src/Scope.js | 53 +++++++++++++++-------------- src/Widgets.js | 23 +++++++------ src/angular-bootstrap.js | 1 + src/directives.js | 11 +++--- src/jqLite.js | 4 +-- src/markups.js | 6 ++-- src/services.js | 27 +++++++++++---- test/BinderTest.js | 5 ++- test/BrowserTest.js | 25 ++++++++++++++ test/CompilerSpec.js | 62 +++++++++++++--------------------- test/FormattersTest.js | 22 ++++++------ test/ParserTest.js | 2 +- test/ScopeSpec.js | 57 ++++++++++++++++++------------- test/UrlWatcherTest.js | 25 -------------- test/servicesSpec.js | 17 +++++++--- test/testabilityPatch.js | 30 ++++++++++++----- 25 files changed, 282 insertions(+), 265 deletions(-) create mode 100644 src/Browser.js create mode 100644 test/BrowserTest.js delete mode 100644 test/UrlWatcherTest.js diff --git a/lib/jsl/jsl.default.conf b/lib/jsl/jsl.default.conf index f494a35c..fe4d0ea4 100755 --- a/lib/jsl/jsl.default.conf +++ b/lib/jsl/jsl.default.conf @@ -23,7 +23,7 @@ -missing_break # missing break statement +missing_break_for_last_case # missing break statement for last case in switch +comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==) -+inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement +-inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement +useless_void # use of the void type may be unnecessary (void is always undefined) +multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs +use_of_label # use of label @@ -41,7 +41,7 @@ +useless_assign # useless assignment +ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity +ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent) -+missing_default_case # missing default case in switch statement +-missing_default_case # missing default case in switch statement +duplicate_case_in_switch # duplicate case in switch statements +default_not_at_end # the default case is not at the end of the switch statement +legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax diff --git a/scenario/widgets.html b/scenario/widgets.html index 64e48c54..73674be9 100644 --- a/scenario/widgets.html +++ b/scenario/widgets.html @@ -4,8 +4,8 @@ -
-| Description | Test | @@ -14,7 +14,7 @@||
|---|---|---|---|
| Input text field | |||
| basic | -+ | text.basic={{text.basic}} | |
| Buttons | |||
| ng-action | +ng-change ng-click |
||