Igor Minar
fe5240732d
feat(strict mode): adding strict mode flag to all js files
...
the flag must be in all src and test files so that we get the benefit of
running in the strict mode even in jstd
the following script was used to modify all files:
for file in `find src test -name "*.js"`; do
echo -e "'use strict';\n" > temp.txt
cat $file >> temp.txt
mv temp.txt $file
done
2011-07-18 12:12:55 -07:00
Igor Minar
b98c23274b
feat(strict mode): turn on ECMAScript 5 strict mode
...
- add 'use strict'; statement to the prefix file
- configure closure compiler to use the ES5 strict mode
- strip all file-specific strict mode flags after concatination
Closes #223
2011-07-18 12:12:55 -07:00
Igor Minar
4c6d26a38f
fix(strict mode): fix all issues discovered by strict mode and unit/e2e tests
2011-07-18 12:12:54 -07:00
Igor Minar
c43ce91b25
chore(closure-compiler): upgrading to v20110615
2011-07-18 12:12:54 -07:00
Igor Minar
b7cf7f2a79
doc(angular.annotate): properly disable doc snippet to avoid compiler warnings
2011-07-18 12:12:54 -07:00
Igor Minar
ef7cf60ebd
doc(misc): fixing typos in docs
2011-07-18 00:04:38 -07:00
DiPeng
7974e7eb5f
refactor($browser): hide startPoll and poll methods
...
Breaks $browser.poll() method is moved inline to $browser.startpoll()
Breaks $browser.startpoll() method is made private
Refactor tests to reflect updated browser API
Closes #387
2011-07-18 00:04:14 -07:00
Di Peng
f9b4c9da64
refactor(docs): run e2e tests with and without jquery
...
- e2e tests will run index.html (without jquery) and with
index-jq.html(with jquery).
- many small changes to make e2e tests work withough JQuery as we
discover problems that were previously hidden by using real JQuery.
2011-07-17 22:19:08 -07:00
Di Peng
83ac1193f2
style(jqLiteSpec): add space
2011-07-17 22:19:08 -07:00
Di Peng
7a3fdda965
feat(jqlite): added show(),hide() and eq() methods to jqlite
...
- add those three methods to jqlite
2011-07-17 22:19:08 -07:00
Igor Minar
b4f18fc295
style(injector): remove extra semicolon
2011-07-18 04:47:39 +00:00
Igor Minar
da464683aa
doc(ng:include): improve the doc example to avoid confusion
2011-07-16 22:01:19 -07:00
Igor Minar
a0b35161a6
fix(doc): fix all broken links
2011-07-16 01:15:37 -07:00
Igor Minar
a8f4d87be5
doc(css): add '#content-list .level-4' css
2011-07-16 01:12:29 -07:00
Igor Minar
57ea8156a1
doc(ngdoc): add 'this' and 'returns' section for methods
2011-07-16 01:12:29 -07:00
Igor Minar
6289d18e61
doc(ngdoc): fix usage format for functions bolted onto services
2011-07-16 01:12:29 -07:00
Igor Minar
9e37ebe635
test(ngdoc): add test for @ngdoc function
2011-07-16 01:12:29 -07:00
Igor Minar
345c01c81b
test(ngdoc): fix a typo in the @deprecated spec
2011-07-16 01:12:29 -07:00
Igor Minar
975aef2ad2
test(ngdoc): fix failing tests
2011-07-16 01:12:28 -07:00
Di Peng
c863514660
doc(angular.mock.service.$browser): add xhr docs
2011-07-16 01:12:28 -07:00
Vojta Jina
86a6cc7152
chore(configs): Add missing files to jstd config
...
Add jstd-scenario-adapter files into jstd configs (jquery, coverage).
Remove angular.prefix, sufifix from exclude, as they don't have to be there.
They are not included, because of *.js mask.
2011-07-14 10:59:30 +02:00
Vojta Jina
8f3276bbcd
chore(scripts): add test-jquery.sh for running unit tests with jQuery
2011-07-14 10:59:25 +02:00
Di Peng
2428907259
fix(ng:class): preserve classes added post compilation
...
- make sure ng:class preserve classes added after compilation
Closes #355
2011-07-13 16:42:38 -07:00
Igor Minar
8a8a2cf462
refactor($browser.xhr): use $browser.addJs for JSONP
...
There is no reason why we shouldn't reuse $browser.addJs for JSONP
requests.
2011-07-13 16:21:08 -07:00
Igor Minar
47efe44a1d
fix($browser.addJs): make addJs jQuery compatible
...
Change addJs implementation to avoid use of jQuery because of issues
that affect angular-ie-compat.js. See inlined comment for more info.
2011-07-13 16:21:08 -07:00
Igor Minar
c52e749a6e
fix($browser.xhr): properly delete jsonp callbacks
2011-07-13 16:21:08 -07:00
Igor Minar
4ab3596295
fix(ie-compat): escape \ in regexp
2011-07-13 16:21:07 -07:00
Igor Minar
106674ac1e
style(ie-compat): improved generated ie compat code
2011-07-13 16:21:07 -07:00
Vojta Jina
330d1a870d
fix(bootstrap): Fix bootstrap on IE<8
...
No reason for including ie-compat in bootstrap, it's included during angularInit.
Fix including ie-compat even for production.
2011-07-13 16:21:07 -07:00
Vojta Jina
7e2e7b07b6
doc($route): fix $route example and couple of typos
...
Rewrite $route example a bit, as it required $location and $route services
to be eager published in the root scope.
Fix small typos in formatter and ng:options docs.
2011-07-13 11:49:16 +02:00
Vojta Jina
ce80576e0b
fix:jqLite: Set event.target on IE<8
...
IE<8's Event has not target property - it has srcElement property.
Fix that to be consistent as jQuery.
2011-07-12 23:04:46 -07:00
Vojta Jina
10da625ed9
fix:jqLite: Normalize non-existing attributes to undefined as jQuery
...
jqLite was returning null, but jQuery returns undefined
2011-07-12 23:04:46 -07:00
Vojta Jina
9ee9ca13da
fix:jqLite: Fix binding to more events separated by space
...
The var eventHandler was defined outside forEach loop, so registering more
events caused calling listeners registered by the last one.
Regression:
elm.bind('click keyup', callback1);
elm.bind('click', callback2);
elm.bind('keyup', callback3);
Firing click event would have executed callback1, callback3 !
2011-07-12 23:04:46 -07:00
Igor Minar
bb39d34279
test(ng:repeat): add tests for $position for small arrays/objects
2011-07-12 22:49:12 -07:00
Igor Minar
e09a78438f
doc:widget: improve angular.widget docs
2011-07-11 12:19:42 -07:00
Vojta Jina
1e890863e5
docs:compile: Just fixing some typos in the docs
2011-07-10 19:29:46 +02:00
Igor Minar
76a500179d
docs:template: rename <angular/> to AngularJS
2011-07-08 08:24:09 -07:00
Igor Minar
7b32c71386
docs:css: remove bullet points from tutorial sidebar
2011-07-08 08:24:09 -07:00
Igor Minar
28e84ca167
docs:css: fix indentation for pre element
2011-07-08 08:24:09 -07:00
Igor Minar
41250e9cf9
prepare the jiggling-armfat iteration
2011-07-08 08:23:30 -07:00
Mårten Dolk
77ba539f63
fix:injector: make injector compatible with Rhino (HtmlUnit)
2011-07-06 16:06:54 -07:00
Igor Minar
952225f020
doc:dependencies: add /api/ prefix to dependency links
2011-07-02 10:37:04 -07:00
Igor Minar
35f9f527d3
doc:changelog: small changelog fixes
2011-07-02 08:44:50 -07:00
Igor Minar
30bd04feaa
fix:exceptionHandler mock: should not specify dependencies
...
also added a test for this mock service
2011-07-01 18:17:54 -07:00
Igor Minar
25a77c58c1
fix:jstd.conf: explicitly specify script load order
...
Originally we relied on a lot of globbing, which resulted in
angular-mocks being loaded before normal services, so we never overwrote
services like $exceptionHandler with mocks. Explict definition
guarantees that we don't fall into the loading order trap, but requires
us to remember to update the jsTestDriver.conf file every time we
add/rename/remove a js file.
2011-07-01 18:17:42 -07:00
Igor Minar
75721223b5
fix:$browser mock: defer.flush() should flush all fns
2011-07-01 17:03:50 -07:00
DiPeng
f606ffed4b
doc:markup: wrong spelling for Vojta, all DI's fault.
2011-06-30 20:24:17 -07:00
Igor Minar
b49035a8c5
preparing the 0.9.18 jiggling-armfat iteration
2011-06-30 14:29:28 -07:00
Igor Minar
86ff9dee23
docs:include: improve docs
2011-06-30 11:33:36 -07:00
Igor Minar
6dc22fe575
feat:build: better build/pkg/ dir structure
...
rake package now produced directory structure that can be uploaded to
the ftp server as is without manual changes
2011-06-30 10:58:14 -07:00