Commit Graph
47 Commits
Author SHA1 Message Date
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
Boris Yankov dd35f69637 Big replacement: bool with boolean 2013-08-07 16:59:39 +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 3f0b158c4c Fix several tests 2013-05-25 18:27:49 +03:00
Boris Yankov 0a7d1d2943 Merge pull request #572 from diachedelic/master
knockout module definition
2013-05-25 04:00:56 -07: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
James Diacono 09a596f414 Removed extraneous duplication, fixed building with 0.9.0 2013-05-22 02:18:24 +01:00
James Diacono a9766db4a2 Added a version of knockout.d.ts for AMD compilation (i.e. RequireJS). Compiles in TypeScript 0.8.3 and will probably compile in 0.9.0 final (as of TypeScript 346c054bba830d566bc18c1e998cde327704fee4 it throws up when the template section at the bottom is included).
Haven't done any tests or anything...
2013-05-22 00:55:24 +01: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
Fyodor Soikin 91bb9c0ad2 Added types for ko.virtualElements.* 2013-05-17 11:27:04 -04:00
Natan Vivo 2a27b18c05 Removing unnecessary semicolons (required by TypeScript 0.9, shouldn't affect 0.8) 2013-05-10 21:34:52 -03:00
Diullei Gomes b8f2a0df2c resolved conflicts to pullrequest #387 2013-03-31 12:13:16 -03:00
Steve Fenton b7008627b5 Removal of logChange method and explanation
logChange is an example of an extension, not part of the standard library. To add extensions, simply extend the interface outside of the definition file:

interface KnockoutExtenders {
    logChange(target: KnockoutObservableAny, option: string): KnockoutObservableAny;
}
2013-03-16 09:31:04 +00:00
Diullei Gomes 0d7d1aea3c bug fix 'knockout->KnockoutExtenders' 2013-03-12 09:20:50 -03:00
Steve Fenton 0016ecf978 Added logChange to extenders.
Added logChange to extenders.

http://knockoutjs.com/documentation/extenders.html
2013-03-12 12:06:36 +00:00
Marius Schulz 600319c438 Added "KnockoutObservableObject" interface 2013-03-06 17:48:58 +01:00
Dan Ludwig d53bedb39c Remove ko.utils.setTextContent from public knockout utils API surface.
Although this function is available via knockout-{version}.debug.js, it is
not part of the minified knockout-{version}.js file. Invoking this function
will cause a runtime javascript error when invoked against the minified js.

See this for more info: https://github.com/SteveSanderson/knockout/issues/670
2013-02-25 15:15:13 -05:00
Diullei Gomes 51bbb57e1d adjusted knockout typings; added 'templating' tests; the test file structure was refactored; #312 2013-02-22 12:22:46 -03:00
Jason Swearingen a46ab6bb93 minor fixes+typings, mostly adding documentation
angularjs: docs around first page tutorials
jquery: fix for known lib.d.ts big
knockback: add typing for observable based on tutorial, add docs around
observable.
2013-02-14 18:34:00 +07:00
Dan Ludwig 346034b63d Add ko.utils.setHtml to KnockoutUtils interface (2 overloads total). 2013-02-07 13:01:28 -05:00
Boris Yankov 209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Boris Yankov c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00
Natan Vivo 92035d7ae1 ko.computed should accept an options argument.
http://knockoutjs.com/documentation/computedObservables.html#computed_observable_reference
2013-01-14 15:00:01 -02:00
Vladimir f5d3fc083c removed UTF-8 BOM to fix compilation error 2013-01-13 15:03:43 +04:00
BreeeZe 32010b4764 Added missing method 'replace' to KnockoutObservableArrayFunctions 2012-12-15 12:22:12 +01:00
BreeeZe de50ebadb3 Added 'ieVersion' , 'isIe6' and 'isIe7' to Knockout utils definition. 2012-12-13 20:19:04 +01:00
BreeeZe 45a825465e Added missing util method "isComputed" 2012-12-11 22:21:10 +01:00
BreeeZe 9c0146b01d Added missing method "ko.applyBindingsToNode" to knockout 2012-12-10 11:46:27 +01:00
BreeeZe f504c4eee4 Added missing ko method : "cleanNode" 2012-12-01 21:37:38 +01:00
Boris Yankov 4ecc87bee6 Update knockout.mapping reference path 2012-11-22 11:46:36 +02:00
Boris Yankov 7c82efb17a Update reference paths 2012-11-19 01:28:08 +02:00
Boris Yankov c91c45f9ae Move definitions and test in separate folders
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.
2012-11-18 22:28:44 +02:00