aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
AgeCommit message (Collapse)Author
2011-09-01fix(jqLite): special-case attr('class') because of IE9 bugIgor Minar
2011-09-01docs(API): various api doc fixes from ToniIgor Minar
2011-08-23fix(jqlite): correct the jqLite.removeClass methodIgor Minar
2011-08-15refactor(jqLite): remove jqLite show/hide supportIgor Minar
it turns out that even with our tricks, jqLite#show is not usable in practice and definitely not on par with jQuery. so rather than introducing half-baked apis which introduce issues, I'm removing them. I also removed show/hide uses from docs, since they are not needed. Breaks jqLite.hide/jqLite.show which are no longer available.
2011-07-30doc(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-26chore(jqlite): clean up dead codeMisko 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-17feat(jqlite): added show(),hide() and eq() methods to jqliteDi Peng
- add those three methods to jqlite
2011-07-12fix:jqLite: Set event.target on IE<8Vojta Jina
IE<8's Event has not target property - it has srcElement property. Fix that to be consistent as jQuery.
2011-07-12fix:jqLite: Normalize non-existing attributes to undefined as jQueryVojta Jina
jqLite was returning null, but jQuery returns undefined
2011-07-12fix:jqLite: Fix binding to more events separated by spaceVojta Jina
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-06-08Added prepend() to jqLiteMisko Hevery
2011-06-08Proper handling of special attributes in jqliteMisko Hevery
2011-06-06yet another docs batchIgor Minar
2011-04-09fix build for IE9Igor Minar
all unit tests now pass under IE9
2011-03-31ignore jqLite#append for doc fragmentIgor Minar
this is needed to be compatible with jqQuery 1.5.1
2011-03-31fix jqLite#parent to be compatible with jQueryIgor Minar
our original implementation doesn't work with document fragments on IE - tests were added to cover missing cases
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-28fixing lint warningsIgor Minar
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-08fix ie7 regression in jqLite which preventedMisko Hevery
2011-02-19correct hashchange event registration on windowMisko Hevery
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-16rewrite of JQuery lite implementation, which now better supports selected setsMisko Hevery
2011-02-16refactored quickClone to cloneNode and exposed it on jQueryMisko Hevery
2011-02-16Add public API to retrieve scope from element.Misko Hevery
2011-02-16allow jquery to be declared after angular in the script loading orderMisko Hevery
2011-01-30jqlite should not generate exceptions when accessing attributes on DocumentIgor Minar
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-10bootstrap angular on "document ready" instead of window.onloadIgor Minar
- use jqLite api to bootstrap angular - when jQuery is present DOMContentLoaded or hacks for IE are used - when jqLite is present DOMContentLoaded is used for modern browsers and IE9 and window.onload is used for other browsers. - test html for comparing DOMContentLoaded with window.onload Closes #224
2011-01-10jqLite should recognize window as an element even in IEIgor Minar
in IE window object has length property which makes it look like a collection to jqLite. This commit makes jqLite properly identify window as an element even in IE. IE6 doesn't have Window type, so we need to check against window object and only then do a more general check against Window. This is not perfect, but I say screw IE6.
2011-01-10fix addEventLister detection for IE9Igor Minar
IE9 added support for addEventListener and it looks like some new events (e.g. DOMContentLoaded) can't be registered via attachEvent, only addEventListener correctly registeres these. So to make sure we are using the latest and greatest we need to look for addEventListener instead of attachEvent in the jqLite feature detection code.
2011-01-07$location service should utilize onhashchange events instead of pollingIgor Minar
2011-01-04avoid namespace conflicts between jqLite and window when running in ↵Igor Minar
bootstrap mode
2010-10-19Fix browser triggering in scenario to always do native events.Misko Hevery
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery
2010-10-19Significantly clean up the way the scenario DSL works and implement many ↵Elliott Sprehn
more DSL statements. - "this" always means the current chain scope inside a DSL - addFutureAction callbacks now take ($window, $document, done) - $document has a special method elements() that uses the currently selected nodes in the document as defined by using() statements. - $document.elements() allows placeholder insertion into selectors to make them more readable. ex. $document.elements('input[name="$1"]', myVar) will substitute the value of myVar for $1 in the selector. Subsequent arguments are $2 and so on. - $document.elements() results have a special method trigger(event) which should be used to events. This method implements some hacks to make sure browser UI controls update and the correct angular events fire. - futures now allow custom formatting. By default any chain that results in a future can use toJson() or fromJson() to convert the future value to and from json. A custom parser can be provided with parsedWith(fn) where fn is a callback(value) that must return the parsed result. Note: The entire widgets.html UI is now able to be controlled and asserted through DSL statements!!! Victory! :)
2010-10-06removing anchor spec and improving jqLite.trigger() methodIgor Minar
- removing the last anchor spec because it can't run reliably in all browsers - improving jqLite.trigger() method
2010-10-04fixed lint warningsIgor Minar
2010-10-01properly handle event's stopPropagation() and preventDefault() method in IEIgor Minar
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-08-11clean up for better obfuscationMisko Hevery
2010-07-29refactored $location service so that it correctly updates under all conditionsMisko Hevery
2010-07-27fix IE native mothods are not functions, and preventDefaultunknown
2010-07-27fix preventDefault for eventsMisko Hevery
2010-07-15fixed buildMisko Hevery
2010-07-14appease IE on CSS stylesMisko Hevery
2010-07-14ng:style remembers previous style and properly resets to itMisko Hevery
2010-04-26fix ie bug with null and orphans elementsMisko Hevery
2010-04-22fixed the way IE breaks parests on innerHTMLMisko Hevery