aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
AgeCommit message (Collapse)Author
2011-08-21fix(ng:options): remove memory leak caused by scope.Igor Minar
$new can't be used for creation of temporary scopes because it registers an onEval listener that doesn't go away and keeps the scope around, we must use inherit(scope) instead to avoid this issue. The issue does not apply to the master branch with the new scope which has a scope descructor to clean up this mess.
2011-08-19doc(sample): Add javascript sandbox integration (jsFiddle)dandoyon
Change doc_widget.js to: - render "edit in jsfiddle" button next to all examples - make opt out certain examples by adding jsfiddle="false" attribute to doc:source element
2011-08-18refactor(widgets): remove input[button, submit, reset, image] and button ↵Di Peng
windgets These widgets are useless and only trigger extra $updateViews. The only reason we had them was to support ng:change on these widgets, but since there are no bindings present in these cases it doesn't make sense to support ng:change here. It's likely just a leftover from getangular.com Breaking change: ng:change for input[button], input[submit], input[reset], input[image] and button widgets is not supported any more
2011-08-18doc(typos): fix couple of typos in the docsdandoyon
Minor documentation fixes. Should not be any code changes. One test changed due to dependency on text in documentation.
2011-07-26style(ng:options): fix style and some docsIgor Minar
2011-07-26fix(ng:options): add support for option groupsMisko Hevery
Closes# 450
2011-07-26fix(directive): ng:options to support ng:changeMisko Hevery
Closes #463
2011-07-26fix(directive): ng:options to support iterating over objectsMisko Hevery
Closes #448
2011-07-26fix(directive): ng:options incorrectly re-grew options on datasource changeMisko Hevery
Closes #464
2011-07-26fix(directive): ng:options now support binding to expressionMisko Hevery
Closes #449
2011-07-26doc(ng:view): fix broken template links in docs; add scenario test.Misko Hevery
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
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-16doc(ng:include): improve the doc example to avoid confusionIgor Minar
2011-07-13doc($route): fix $route example and couple of typosVojta Jina
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-11doc:widget: improve angular.widget docsIgor Minar
2011-06-30docs:include: improve docsIgor Minar
2011-06-23fix:repeat: fix ending comment tagIgor Minar
2011-06-23fix:ng:repeater - fix $position when collection size changesMisko Hevery
2011-06-08Added ng:options directiveMisko Hevery
Closes #301
2011-06-08Refactor injector to have invoke method for speed reasonsMisko Hevery
2011-06-07Fix couple of failing e2e testsVojta Jina
The reason was recent change in docs url
2011-06-06yet another docs batchIgor Minar
2011-06-06api doc fixes from kenIgor Minar
2011-06-06Fix links in docsVojta Jina
2011-06-02Fix IE bug - ng:hrefVojta Jina
ng:href was producing unclickable links, as the event propagation was stopped by 'a' widget All links in regression/issue-352.html were tested in: * Chrome 11 * Opera 11 * Firefox 4 * IE7, IE8 Closes #352
2011-05-19Remove trailing white spaces from all source filesVojta Jina
find . -name "*.js" -print | xargs sed -Ei s/[[:space:]]*$//
2011-04-25Fix some typos, missing semi-colons, etc...Vojta Jina
This is a combination of 4 commits: * Fix some small typos, missing semi-colons, etc. * Fix comment for angular.scenario.SpecRunner.run method * Fixed some missing semi-colons in cookbook * Fixed missing semi-colon in nodeserver/server.js
2011-04-11doc fix - ng:autobind, ng:controller and moreKenneth R. Culp
2011-04-04revert ng:view sync cachingIgor Minar
sync caching in ng:view must be reverted becase ng:view uses $route.onChange to listen for changes. $route fires all onChange events before it calls $become(Controller) which means that if the template being included via ng:view contains ng:controller, ng:include or other widget that create new scopes, these scopes will be created and initialized before the parent scope is fully initialized (happens after $become is called). For this reason ng:view must be async. The new scope implemenetation will resolve this issue by providing us with an api to register one-off tasks to be executed during the flush phase. We'll be able to compile and link the included template safely at this time.
2011-03-30use document fragments to grow repeatersIgor Minar
- unless we are repeating OPTION elements, buffer new nodes in document fragment and append them to the DOM in one go at the end - for OPTION elements we have to keep on using the old way because of how option widget communicates with select widget this should be change, but that change is out of scope of this CL - modify jqLite to support wrapping of document fragments - fix jqLite documentation typo This change unintentionally avoids the following webkit bug that that affects repeater growth: https://bugs.webkit.org/show_bug.cgi?id=57059 However the following bug affecting shrining of repeaters is still unresolved https://bugs.webkit.org/show_bug.cgi?id=57061
2011-03-30extend size() to take ownPropsOnly paramIgor Minar
- extend size() to take size(obj, ownPropsOnly) - add specs for size() - update docs to mention string support - use size() in ng:repeat including the hasOwnProp check for all object doesn't create significant perf penalty: http://jsperf.com/dedicated-code-branch-for-hasownprop
2011-03-30call $eval in repeater only when neededIgor Minar
when growing children linker calls eval for new nodes, so we need to call it only for reused nodes.
2011-03-30make xhr.cache optionally synchronousIgor Minar
- add `sync` flag xhr.cache - change ng:include to use the sync flag - change ng:view to use the sync flag The end result is that there are fewer repaints in the browser, which means less "blinking" that user sees.
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
2011-03-03fixing broken e2e testsIgor Minar
2011-02-25Corrected an issue where properties inherited from __proto__ show up in ↵Misko Hevery
ng:repeat. Closses #112
2011-02-16Changed the angular.compile(element)(scope[, cloneAttachNode])Misko Hevery
2011-02-16reformated multiline trinary expressions to have a leading ?/:.Misko Hevery
2011-02-16Change API angular.compile(element)([scope], [element/true])Misko Hevery
2011-02-16refactored quickClone to cloneNode and exposed it on jQueryMisko Hevery
2011-02-16remove $init on scope from applying compilation templateMisko Hevery
Closes #40
2011-02-16remove dom manipulation API from compilerMisko Hevery
2011-02-16Add public API to retrieve scope from element.Misko Hevery
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"
2011-02-04ng:view should be nestable in ng:includeIgor Minar
2011-02-01changed the documentation @example to use <doc:example>Misko Hevery
2011-01-25compile but don't bind option elements nested in a nameless selectIgor Minar
otherwise an exception is thrown unexpectidly
2011-01-24ng:view should propagate evals to the current child scopeIgor Minar
- this change is needed because of previously reverted $route changes that used to propagate evals automatically. - also added docs to highlight how the eval propagation works
2011-01-24Revert "$route should create child scope via $new"Igor Minar
This reverts commit a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1. See 9ca2facb for reasoning.
2011-01-24Revert "fix ng:include issue introduced by a5eb3ed1"Igor Minar
This reverts commit 17ee0f031ac4a37bf9a1dc8c87ffac4bd164d1cc. 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.