Igor Oleinikov
3f015d97e1
Fixed ko.bindingProvider.
2014-06-28 19:49:55 +04:00
Igor Oleinikov
e001f7dd6e
Version bump to 3.2.0-beta.
2014-06-28 19:40:45 +04:00
Igor Oleinikov
73778d52f7
Added KnockoutTemplateAnonymous, fixed ko.templateSources.domElement.
2014-06-28 19:20:44 +04:00
Igor Oleinikov
d72558d159
Removed ko.bindingProvider.getBindingsString.
2014-06-28 19:06:51 +04:00
Igor Oleinikov
7b4b881fbc
Added ko.component
...
KnockoutComponents: register, isRegistered, unregister;
KnockoutComponentDefinition: template, createViewModel;
KnockoutComponentLoader: loadTemplate, loadViewModel;
KnockoutComponentConfig: template, createViewModel.
2014-06-28 18:55:04 +04:00
Igor Oleinikov
c181fd9309
Added KnockoutBindingProvider, KnockoutComponents, KnockoutComponentLoader.
...
Added stubs for KnockoutComponentDefinition, KnockoutComponentConfig.
2014-06-28 17:56:50 +04:00
Igor Oleinikov
b753ba68cc
Added trackArrayChanges extender, ko.getBindingHandler, ko.applyBindingAccessorsToNode.
2014-06-28 17:37:29 +04:00
Igor Oleinikov
2b88f1cf8b
Added rateLimit extender.
2014-06-28 14:47:31 +04:00
Igor Oleinikov
bb2432ce69
Added ko.computedContext, ko.pureComputed.
2014-06-28 14:18:59 +04:00
Marc-André Boivin
68fae9d85d
Update knockout.d.ts
...
Updated the allBindingsAccessor parameter in the KnockoutBindingHandler interface to support the get method.
2014-06-19 10:05:21 -04:00
Fredrik Holmqvist
1c50915a79
Fixed stringTokenize return type
...
The util function stringTokenize returns an string array according to the knockout source
2014-05-22 11:49:28 +02:00
Brian Dukes
b500036887
Use base type in ko.virtualElements interface
...
The knockout `virtualElements` API accepts all types of DOM nodes, not just HTML elements.
For example, I was trying to insert a text node (from `document.createTextNode`), and it was seen as invalid.
2014-04-11 10:43:57 -05:00
SomaticIT
a8ad85fec1
Fix knockout ko.utils.stringifyJson definition
2014-02-25 22:35:36 +01:00
Thomas Butler
b26095e9fa
Fixed KnockoutComputed polymorphism
...
Changed KnockoutComputed to inherit KnockoutObservable to enable
polymorphic/covariant reference conversion (see included unit test for
example).
2013-12-06 06:10:12 -05:00
Daniel Ferreira Monteiro Alves
56399e9b53
Merge branch 'master' of https://github.com/borisyankov/DefinitelyTyped
2013-11-18 02:28:05 -02:00
mihailik
b282b5a78a
Fix when compiling with the latest TypeScript (develop branch)
...
Latest TypeScript complains about Array type used without a generic parameter.
I suggest replacing Array with any[], which works for both old and new TypeScript versions.
knockout.d.ts(171,47): ↵
error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(172,76): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(200,36): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(202,36): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(204,38): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(363,110): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(489,71): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(490,66): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(491,90): error TS2173: Generic type references must include all type arguments. ↵
knockout.d.ts(492,85): error TS2173: Generic type references must include all type arguments. ↵
2013-11-16 11:11:55 +00:00
Daniel Ferreira Monteiro Alves
d9c1467ee5
Parameter dependency made soft on knockout
2013-11-16 01:08:39 -02:00
John Reilly
216d626ac6
Knockout: made sort generic
2013-11-12 15:50:44 +00:00
John Reilly
f87f7ed0fa
Knockout: Made arrayIndexOf generic
2013-11-11 16:12:55 +00:00
John Reilly
af41ded271
Knockout: dateItemAlias is optional
2013-11-07 12:16:09 +00:00
John Reilly
48986647b4
Knockout:Dealt with implicit any in knockout.d.ts
...
There are probably still more overloads required for renderTemplate and
renderTemplateForEach as these methods do a lot of different things and
allow many possibilites in terms of types of arguments to be passed.
2013-11-07 11:57:38 +00:00
basarat
7e81971a23
Merge pull request #1226 from johnnyreilly/master
...
Knockout:Removed non-generic overloads from utils / Globalize: reduced implicit anys
2013-11-05 16:05:38 -08:00
basarat
cdd8ba733e
Merge pull request #1203 from Igorbek/master
...
Minor changes in knockout; Added knockout.rx definitions
2013-11-05 16:03:03 -08:00
John Reilly
653653dfaa
Knockout:Removed non-generic overloads from utils
...
As far as I can tell these no longer fulfil a purpose and aren't needed
for backward compatibility. As an aside they appear to currently
confuse the TypeScript compiler as well (see
https://typescript.codeplex.com/workitem/1865 )
2013-11-05 12:17:20 +00:00
Daniel Ferreira Monteiro Alves
b45771bc28
Fix on extend method and others for compatibility with Knockout 3
2013-11-05 04:29:31 -02:00
Igor Oleinikov
87d312bed7
Removed read and write functions from subscribable
...
read/write defined only in observable and computed
2013-10-29 17:02:54 +04:00
Igor Oleinikov
3039e58e38
Fixed inheritance and function definitions in Kockout
...
- fixed inheritance
- fixed fn definitions
- *Functions interfaces made generic to allow generic extensions
- added more options in KnockoutComputedDefintion
2013-10-27 21:44:37 +04:00
Tom Kuijsten
b8829669a7
Added generic overload method declarations for the ko.utils.arrayX functions
2013-10-09 13:43:24 +02:00
Diullei
207b3fd04a
issue #371 - missed the ko.utils.peekObservable helper method
2013-09-16 23:35:26 -03:00
Richard Hepburn
5b52dd6dc9
Fixed the KnockoutExtenders interface definition
...
The TS 0.9.1.1 compiler was complaining that the throttle property was
missing a generic type argument.
2013-08-21 15:49:58 -04:00
Andrew Gaspar
be83964dad
Made knockout.d.ts support both AMD and static loading.
2013-08-15 17:17:36 -05:00
Boris Yankov
f6f5824cea
Merge pull request #844 from cbelisle/master
...
Add selectExtensions to knockout
2013-08-07 10:13:34 -07:00
Christian Bélisle
cb7fbc204f
Add selectExtensions to knockout
2013-08-07 12:03:59 -04:00
Boris Yankov
ffe87ddf41
Merge Updates to Knockout and Mocha
2013-08-07 18:52:06 +03:00
John Reilly
c848fbb3fa
Fix for TS 0.9.1
...
Removed extra overload of ensureSelectElementIsRenderedCorrectly to
prevent this compiler error with TS 0.9.1: "error TS2175: Overloads
cannot differ only by return type.". Also amended jasmine switching
bool to boolean so tests pass.
2013-08-07 11:00:22 +01:00
skideh
4c85dad3e0
Added ko.unwrap shortcut
...
Detailed in release notes for 2.3.0 https://github.com/knockout/knockout/releases/tag/v2.3.0
There is a shortcut for ko.utils.unwrapObservable, now a much nicer cleaner ko.unwrap
2013-07-26 23:58:05 -06:00
jfoliveira
661adf0b64
Added getSubscriptionsCount function to KnockoutComputedFunctions
...
This function was missing and is expected to be available to all KnockoutComputer<T> objects, as stated in the docs:
http://knockoutjs.com/documentation/computedObservables.html#computed_observable_reference
2013-07-22 14:47:40 +01:00
Jan Voráček
bcbe4c1199
unwrapObservable should be generic
2013-07-18 14:39:16 +02:00
Marc-Andre Roy
0592d2fb45
Update version number to 2.3
2013-07-17 10:48:04 -04:00
Marc-Andre Roy
2aa9a41e3b
Allow arrayPushAll to accept an ObservableArray as first parameter
2013-07-17 10:47:27 -04:00
BreeeZe
a55f110fe3
Added generic type as return type since shift() and pop() return an item from the array
2013-07-05 23:24:13 +02:00
Daniel Ferreira Monteiro Alves
3b6e8c80f0
Little fix for BindingHandlers
2013-06-26 02:01:08 -03:00
Nicholas Wolverson
6c9592fdc4
Simplify optional overloads
2013-06-24 09:36:51 +01:00
Natan Vivo
b6307ba232
Fix wrong signature on knockout computed. Missing options argument.
...
Ref: http://knockoutjs.com/documentation/computedObservables.html#computed_observable_reference
2013-06-22 13:50:10 -03:00
Diullei Gomes
b4adabde42
Merge pull request #641
2013-06-21 02:01:23 -03:00
Nicholas Wolverson
92011c1772
Fix Knockout tests for 0.9/generics
...
Allows ko.observable()
2013-06-19 13:32:56 +01:00
Boris Yankov
bcc1a8bb52
Merge pull request #613 from JudahGabriel
2013-06-19 04:33:08 +03:00
Boris Yankov
00be80c886
Merge pull request #573 from fsoikin/KO-virtual-elements
...
Added ko.virtualElements.childNodes
2013-05-24 05:37:33 -07:00
Fyodor Soikin
f50ea2c3e5
Added ko.virtualElements.childNodes
2013-05-22 00:16:00 -04:00
Boris Yankov
086c1aa31b
Merge pull request #558 from fsoikin/KO-virtual-elements
...
Added types for ko.virtualElements.*
2013-05-19 12:05:10 -07:00