Masahiro Wakame
ecbdfe2832
Merge pull request #4907 from Softpagehomeware/bugfix/marionette/generics_for_collections
...
fixed the Collection- / Composite child view issue.
2015-08-21 22:34:32 +09:00
Ben Coveney
1360a859c9
Grouped function overloads into single definitions
...
Union types available in typescript as of 1.4. Some semantically identical overloaded function definitions have been tidied up into single definitions.
2015-08-03 15:50:30 +01:00
Ben Coveney
7ea45fcc6c
Fixed spelling mistakes, inconsistency
2015-07-31 13:44:56 +01:00
Basarat Ali Syed
dd4d30bbc3
Merge pull request #4931 from Wordenskjold/patch-2
...
Make it possible to initialize a Backbone.Collection from raw objects
2015-07-30 07:40:38 +10:00
Salehen Shovon Rahman
8b706fb1c6
Added slice to Backbone.Collection
...
Without it, TypeScript throws a type error, stating that `Collection<TModel>` does not have a method called `slice`.
2015-07-21 15:09:23 -07:00
Frederik Wordenskjold
ea103215ea
Make it possible to initialize a Backbone.Collection from raw objects
...
The following syntax is supported in Backbone, but is currently not compileable in Typescript:
var data = [
{ id: 1, bar: 'foo' },
{ id: 2, bar: 'baz' }
];
var myCollection = new Backbone.Collection(data);
As of now, the constructor expects an array of models. I've added the Object[] parameter type, in addition to the TModel[] type to support this syntax.
2015-07-15 16:20:54 +02:00
Sascha Thiel
2d2a7cc0d4
quckfix for the backbone part. To fully support the marionette changes.
2015-07-13 11:07:07 +02:00
pafflique
70761a5ae8
Allow mixed content in Collection.add
...
Valid for TypeScript 1.4
2015-07-07 17:11:04 +03:00
pafflique
3387b8b715
Collection.add signature fix
...
http://backbonejs.org/#Collection-add - "Returns the added (or preexisting, if duplicate) models."
2015-07-07 16:57:09 +03:00
Sascha Thiel
f42164e284
fixed the collection TModel workaround.
2015-05-22 14:19:45 +02:00
Yui T
a88024c770
Update breaking change from parsing class declaration in strict mode (as specified in ES6)
2015-04-08 11:35:43 -07:00
alphaleonis
025c836d3d
Fixed incorrect definition of attributes property in ViewOptions.
2015-01-08 19:33:21 +01:00
Peter Palotas
a5366e6012
Changed declaration of Backbone.Router.routes. This is not neccessarily a function, but may also be a simple hash.
2014-12-29 11:13:58 +01:00
Daniel Heim
7c55442aa2
Updated initialize methods.
...
Added initialize methods to View and Collection.
Updated initialize method in Model.
2014-12-04 22:33:56 +11:00
Daniel Heim
f3b608f4b2
RegExp support for Router.route;
...
Router.route allows for regular expressions, as well as strings, for the "route" argument. See http://backbonejs.org/#Router-route
2014-11-27 23:10:07 +11:00
Dave Taylor
320f0b1817
fix: Collection.map iterator return any rather than any
2014-11-26 08:39:11 +00:00
froginvasion
decf4875a6
removed methods in collection that were mixed in that are no longer there. Removed from View, it isnt there anymore since 0.9.0
2014-08-13 14:28:33 +02:00
Omid K. Rad
48a3150ca5
Backbone.emulateJSON
...
http://backbonejs.org/#Sync-emulateJSON
2014-07-21 16:04:35 -07:00
Omid K. Rad
c18eb2ad64
Added test for adding object literals as models
2014-07-16 19:42:09 -07:00
Omid K. Rad
d205eb8726
Updated collection tests and added comments
2014-07-16 18:34:55 -07:00
Omid K. Rad
06392eab94
How to access attributes in a strongly-typed manner
...
Only added comments and examples
2014-07-16 16:12:00 -07:00
Omid K. Rad
c743233ab0
Overloads for Collection.get method
2014-07-16 16:08:00 -07:00
Omid K. Rad
213d8c7da7
Adding back Backbone.$
...
http://backbonejs.org/#Utility-Backbone-$
Also removed `setDomLibrary`
Backbone change log 0.9.9 — Dec. 13, 2012:
To set what library Backbone uses for DOM manipulation and Ajax calls,
use `Backbone.$ = ...` instead of `setDomLibrary`.
2014-07-16 15:31:44 -07:00
dsuket
e259b16093
fixed bug. change Collection.collection to Model.collection
2014-07-08 08:39:28 +09:00
Bart van der Schoor
1d345f6c14
cleaned-up headers
2014-06-18 23:31:11 +02:00
vvakame
a23785ab1b
remove not required .tscparams
2014-05-11 11:22:03 +09:00
Omid K. Rad
c4d0c9a551
Backbone Generics
2014-04-24 17:45:31 -07:00
Trevor
192cf1c9c7
add set to Collection
2014-04-11 10:26:09 -07:00
Trevor
5954ef2842
add options to History
2014-04-11 10:25:09 -07:00
Trevor
749437f384
add ajax function to View
2014-04-11 10:23:58 -07:00
Zsolt Petrik
0531c60ccd
Added export as "backbone" module for AMD loading
2014-02-07 13:32:49 +01:00
Dang Tran
722c799832
added “findWhere” to collections
2014-01-30 16:03:03 -08:00
Eirik Hoem
a6f00d174c
Reverted URL change
2013-12-29 14:29:18 +01:00
Eirik Hoem
5d1fb5ab2e
Added url property as well
2013-12-29 14:03:19 +01:00
Eirik Hoem
1249a51a38
Model.url is now a method, see docs
2013-12-28 16:06:22 +01:00
Eirik Hoem
8f06917644
Model.isValid is now accepts options, see source
2013-12-28 16:06:08 +01:00
Natan Vivo
67c0a6fc37
Makes some parameters optional, as they are not required by backbone.
2013-12-12 12:13:10 -02:00
Natan Vivo
44161fb6f7
Added missing overloads, backbone collections convert raw objects into models on add/reset.
2013-12-10 11:19:06 -02:00
Masahiro Wakame
dbc68718e1
Remove not required .tscparams
2013-11-29 15:25:31 +09:00
Derek Cicerone
422822586b
Fix noImplicitAny
2013-11-28 13:19:53 -05:00
Derek Cicerone
473659fb66
More implicit anys
2013-11-27 17:12:00 -05:00
Natan Vivo
2e52be773f
Fix space/tab issue.
2013-11-24 17:33:14 -02:00
Natan Vivo
00bf83cd8e
Fix noConflict() definition to return typeof(Backbone), added declaration of Backbone.$;
2013-11-24 17:30:32 -02:00
basarat
c23d407d62
Fix backbonejs version
2013-11-15 08:14:01 +11:00
gscshoyru
aa043e12ae
Change model to any to try and pass tests
2013-11-12 17:16:56 -08:00
gscshoyru
f40bad2378
Add explicit types so that it passes the noImplicitAny rule
...
Also updated version number. Added appropriate types to all the functions where I could find them, otherwise typed them with any. This now will compile for typescript compilers that have the noImplictAny flag set.
2013-11-12 13:39:45 -08:00
Derek Cicerone
bacdd2e984
Fix future bugs in backbone.d.ts
...
Callbacks need to use Function if the arguments to it aren't known ahead of time - see discussion here: https://typescript.codeplex.com/discussions/462819
2013-10-24 14:40:40 -04:00
vvakame
2708bc05cd
Fixed tsc failed on Node.js v0.8.25
2013-10-03 11:23:38 +09:00
vvakame
3fe1f6bc4e
Fixed to CI test passing
2013-10-03 10:18:58 +09:00
areel
11e08e1d4e
If eventName is an instance of an event map e.g '{change:action}' then callback is not required. So callback should be marked as optional. Related to earlier commit ( cb1b628527)
2013-09-05 18:38:15 +01:00