Brad Dunbar
8ef1730b73
Consolidate test boilerplate; use consistent names.
2012-08-31 11:39:34 -04:00
Brad Dunbar
65ed49bbaa
Clean up.
...
* Remove accidental globals.
* Add missing semicolon.
* Clean up test.
2012-08-31 08:51:09 -04:00
Brad Dunbar
dabc5caf31
Upgrade QUnit.
2012-08-31 08:46:35 -04:00
Brad Dunbar
f49272e19e
Fix variable scope error, provide test.
2012-08-29 18:41:08 -04:00
Jeremy Ashkenas
6a22f01bc8
Merge pull request #1599 from braddunbar/sync
...
Consolidate sync/error events in Backbone.sync.
2012-08-29 13:30:26 -07:00
Brad Dunbar
1f3f45252f
Consolidate sync/error events in Backbone.sync.
2012-08-29 16:14:48 -04:00
Brad Dunbar
4335fa885a
Merge pull request #1472 from 'contiamo/master'.
2012-08-29 14:57:11 -04:00
Brad Dunbar
d9f1e00f9f
No need to default options to {}.
2012-08-29 10:40:53 -04:00
Brad Dunbar
2af9f4d542
Merge pull request #1445 from 'emorikawa/master'.
2012-08-29 10:37:57 -04:00
Jeremy Ashkenas
38991ab5b3
Merge branch 'master' of github.com:documentcloud/backbone
2012-08-28 13:53:14 -04:00
Jeremy Ashkenas
cebc33a661
teense of clarification about urlRoot being a rare override
2012-08-28 13:53:13 -04:00
brad dunbar
355c48011a
Merge pull request #1590 from braddunbar/extend
...
Refactor extend.
2012-08-28 09:37:53 -07:00
Brad Dunbar
f36f11e5e3
Use Surrogate instead of Prototype.
2012-08-28 12:34:23 -04:00
Jeremy Ashkenas
8f271532a1
Merge pull request #1585 from braddunbar/default-history
...
Fix #1584 - Create default Backbone.history.
2012-08-28 06:50:05 -07:00
Brad Dunbar
62960e787d
Refactor extend.
...
* Use coffeescript style `this.constructor = child`.
* Extend child with parent and static props in one _.extend.
* Use _.has in place of hasOwnProperty.
2012-08-26 19:23:22 -04:00
Brad Dunbar
e70a38ef15
Fix #1584 - Create default Backbone.history.
2012-08-26 10:11:58 -04:00
brad dunbar
9747d235a3
Merge pull request #1459 from braddunbar/attr-spaces
...
Fix #1455 - Warn that attribute names should not contain spaces.
2012-08-24 06:55:28 -07:00
Brad Dunbar
e23c8714b6
Fix #1455 - Warn that attribute names should not contain spaces.
2012-08-24 09:54:33 -04:00
brad dunbar
ec06125031
Merge pull request #1579 from ngauthier/master
...
Add check for jsl in `Rakefile`
2012-08-24 06:49:06 -07:00
Nick Gauthier
e5a29107b2
add check for jsl
2012-08-24 13:53:13 +01:00
Jeremy Ashkenas
ab98b91ad9
Merge pull request #1571 from aeosynth/master
...
use inherits helper directly
2012-08-21 13:24:58 -07:00
James Campos
4c6f1926a2
use inherits helper directly
2012-08-21 13:09:48 -07:00
brad dunbar
a8cf11e622
Merge pull request #1569 from aeosynth/master
...
[style] coll -> collection
2012-08-21 07:06:23 -07:00
James Campos
3c67364405
[style] coll -> collection
2012-08-21 07:00:08 -07:00
Jeremy Ashkenas
cee30cf48c
Merge pull request #1557 from iros/collection.parse
...
Initializing collection from raw data doesn't pass it through parse method
2012-08-20 07:44:57 -07:00
Jeremy Ashkenas
6782ba2f8e
Merge pull request #1560 from braddunbar/aliases
...
Ensure that Collection proxies underscore aliases.
2012-08-20 06:50:55 -07:00
Brad Dunbar
952fb884f3
Ensure that Collection proxies underscore aliases.
...
Added the following aliases:
* collect
* foldl
* inject
* foldr
* head
* take
* tail
2012-08-17 22:42:55 -04:00
Jeremy Ashkenas
db9545c119
Merge branch 'master' of github.com:documentcloud/backbone
2012-08-17 09:49:25 -04:00
Jeremy Ashkenas
4e2da6692b
Fixes #1554 , removes FUD about _.template
2012-08-17 09:48:44 -04:00
Irene Ros
980f60e050
removing extra options check
2012-08-16 17:19:29 -04:00
Irene Ros
330f2ba182
adding model parsing for collections on initialization of a collection from raw data
2012-08-16 17:13:02 -04:00
Jeremy Ashkenas
3ae1af6df1
Merge pull request #1461 from braddunbar/view-dispose
...
Add View#dispose.
2012-08-15 14:11:47 -07:00
Brad Dunbar
971a5fb383
Add View#dispose.
2012-08-15 16:31:43 -04:00
Ted Han
71d0fe3dcc
escape todo items.
2012-08-14 00:31:41 -05:00
Brad Dunbar
281014319d
Tweak id/className test.
2012-08-08 11:40:54 -04:00
Jeremy Ashkenas
41333dfa90
Merge pull request #1520 from gsamokovarov/getvalue-id-classname
...
getValue for View::className and View::id
2012-08-08 08:34:01 -07:00
Genadi Samokovarov
51387ebc36
getValue for View::className and View::id
2012-08-02 01:18:46 +03:00
Jeremy Ashkenas
215805e2c6
Merge pull request #1519 from spicyj/ka
...
Update Khan Academy blurb and screenshot
2012-08-01 10:27:36 -07:00
Ben Alpert
abee26c5ef
Update Khan Academy blurb and screenshot
2012-08-01 10:19:50 -07:00
Jeremy Ashkenas
28f0b6a21f
Merge pull request #1518 from nullobject/master
...
Don't include everything into the npm package.
2012-07-31 05:26:45 -07:00
Josh Bassett
442a860aa7
Don't include everything into the npm package.
2012-07-31 12:51:26 +10:00
Jeremy Ashkenas
b75c3e1e70
Merge pull request #1512 from braddunbar/trigger-args-loop
...
Fix #1511 - Add a comment explaining performance concerns in `trigger`.
2012-07-27 08:27:34 -07:00
Brad Dunbar
9a81468be7
Tweak root normalization.
2012-07-27 10:38:52 -04:00
Brad Dunbar
037b3f529c
Fix #1511 - Add a comment explaining performance concerns in trigger.
2012-07-27 08:53:25 -04:00
Jamie Rolfs
596b12b56b
Added test case for trailing slashs changes to atRoot in Backbone.history.start()
2012-07-26 12:12:41 -06:00
Jamie Rolfs
3d6b20ca7a
Normalizing root url on Backbone.History.start, consistently matching root url for atRoot in History.start regardless of trailing slash
2012-07-26 11:44:07 -06:00
Jamie Rolfs
86cffe9bc2
Fixed Backbone.History.navigate and Backbone.History.start so any url changes include a slash between the root and route fragment when using pushState
2012-07-26 09:54:54 -06:00
Jeremy Ashkenas
8b23c013b0
tweaking wordpress example
2012-07-25 11:22:16 -04:00
Jeremy Ashkenas
6fef16b351
Merge pull request #1503 from nb/example-wpcom
...
Adding WordPress.com as an example app
2012-07-25 08:17:15 -07:00
Nikolay Bachiyski
75befbbbe3
Adding WordPress.com as an example app
2012-07-25 18:04:42 +03:00