aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
AgeCommit message (Collapse)Author
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.
2011-01-19fix ng:include issue introduced by a5eb3ed1Igor Minar
2011-01-19add ng:view widgetIgor Minar
2011-01-19$route should create child scope via $newIgor Minar
2011-01-18fix broken build for IE. Read option.type==select-multiple rather then check ↵Misko Hevery
presence of multiple attribute
2011-01-14support compilation in HTML widgetsMisko Hevery
2011-01-14fixed select with ng:formatMisko Hevery
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-10complete rewrite of documentation generationMisko Hevery
- romeved mustache.js - unified templates - improved testability of the code
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
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-07change to keydown from keyup; add delayed $updateViewMisko Hevery
- 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-04rename scope.$inject to scope.$serviceIgor Minar
see changelog diff for more info
2011-01-04removing support for 'eager-published' servicesIgor Minar
2010-12-11Closes #153: input widgets without name are ignoredMisko Hevery
2010-12-11Fire $eval only if the value has actually changed on inputMisko Hevery
2010-12-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-11-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar
2010-11-18fix docs and examples for ng:format, ng:required and ng:validateIgor Minar
2010-11-18move attribute widgets to widgets.js fileIgor Minar
- 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-16add onload attribute to ng:includeIgor Minar
2010-11-15added remaining directives and search box.Misko Hevery
2010-11-10added ng:switch-when-default; changed $watch to always fire on init. (may be ↵Misko Hevery
backward incompatible)
2010-11-09Better example widgetIgor Minar
- syntax highlighting - tabless design - rename widget to doc:example - rename widget files (wiki_widget.* -> doc_widget.*) - example section is now optional
2010-11-07Added documentation for validators.Misko Hevery
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-05added tests for documentationMisko Hevery
2010-11-04added documentation for ng:include and ng:widget and test for doc collector.Misko Hevery
2010-11-03jsdoc parser + generator + viewer + scenario runnerMisko Hevery
- parse jsdocs from source code - generate prerendered (markdown + mustache) partials - generate json - generate scenario runner for examples in docs - basic angular doc viewer
2010-10-26fixes IE related failures, and form submit event handling in ieMisko Hevery
2010-10-23Fix for getting into recursive $eval on scope. Close #59Misko Hevery
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-18JSON parser is now strict (ie, expressions are not allowed for security)Misko Hevery
Close #57
2010-10-16ng:include should remove the reference to childScope when src is blankIgor Minar