-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest cujo releases via bower. Handle enter key when
editing todo but not changing it. Remove Template by. Remove unnecessary files.
- Loading branch information
1 parent
e38f482
commit b8d9ae5
Showing
226 changed files
with
8,412 additions
and
6,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<footer id="info"> | ||
<p>${edit}</p> | ||
<p>${templateBy} <a href="http://github.com/sindresorhus">Sindre Sorhus</a></p> | ||
<p>${createdBy} <a href="http://cujojs.com">cujojs</a></p> | ||
<p>${createdBy} <a href="http://cujojs.com">cujoJS</a></p> | ||
<p>${partOf} <a href="http://todomvc.com">TodoMVC</a></p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
labs/architecture-examples/cujo/bower_components/cola/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.idea/ | ||
node_modules | ||
/test/curl | ||
test/util |
9 changes: 9 additions & 0 deletions
9
labs/architecture-examples/cujo/bower_components/cola/.gitmodules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "test/curl"] | ||
path = test/curl | ||
url = https://unscriptable@github.com/cujojs/curl.git | ||
[submodule "test/util"] | ||
path = test/util | ||
url = https://unscriptable@github.com/cujojs/util.git | ||
[submodule "support/when"] | ||
path = support/when | ||
url = https://github.com/cujojs/when.git |
110 changes: 110 additions & 0 deletions
110
labs/architecture-examples/cujo/bower_components/cola/Collection.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/** | ||
* Collection | ||
*/ | ||
(function(define) { | ||
define(function(require) { | ||
|
||
var Base, resolver, eventTypes, simpleStrategy; | ||
|
||
Base = require('./hub/Base'); | ||
resolver = require('./collectionAdapterResolver'); | ||
simpleStrategy = require('./network/strategy/default'); | ||
|
||
eventTypes = extend(Base.prototype.eventTypes, { | ||
// collection item events. most of these come with data. devs can | ||
// decide to use these events for their own purposes or send | ||
// different data than described here, the following list outlines | ||
// the intended behavior. | ||
add: 1, // data == item added | ||
remove: 1, // data == item removed | ||
target: 1, // data == item targeted TODO: rename this to "point"? | ||
// multi-item events | ||
select: 1, // select an item (data == item) | ||
unselect: 1, // deselect an item (data == item) | ||
// batch events | ||
collect: 1, // start of batch mode (until abort or submit) (data = batch purpose) | ||
deliver: 1 // collected items (data = batch purpose with collected items array as property) | ||
}); | ||
|
||
function Collection(options) { | ||
Base.call(this, options); | ||
|
||
if(!options) { | ||
options = {}; | ||
} | ||
|
||
this.strategy = options.strategy; | ||
if (!this.strategy) this.strategy = simpleStrategy(options.strategyOptions); | ||
|
||
} | ||
|
||
Collection.prototype = Object.create(Base.prototype, { | ||
|
||
eventTypes: { value: eventTypes }, | ||
|
||
resolver: { value: resolver }, | ||
|
||
forEach: { | ||
value: function forEach(lambda) { | ||
var provider = this.getProvider(); | ||
return provider && provider.forEach(lambda); | ||
} | ||
}, | ||
|
||
findItem: { | ||
value: function (anything) { | ||
var info = this._findItemFor(anything); | ||
return info && info.item; | ||
} | ||
}, | ||
|
||
findNode: { | ||
value: function (anything) { | ||
var info = this._findNodeFor(anything); | ||
return info && info.node; | ||
} | ||
}, | ||
|
||
getProvider: { | ||
value: function () { | ||
var a, i = this.adapters.length; | ||
while(a = this.adapters[--i]) { | ||
if(a.provide) return a; | ||
} | ||
} | ||
}, | ||
|
||
_findNodeFor: { | ||
value: function (anything) { | ||
var node, i, adapters, adapter; | ||
|
||
adapters = this.adapters; | ||
|
||
// loop through adapters that have the findNode() method | ||
// to try to find out which adapter and which node | ||
i = 0; | ||
while (!node && (adapter = adapters[i++])) { | ||
if (adapter.findNode) { | ||
node = adapter.findNode(anything); | ||
} | ||
} | ||
|
||
return node && { node: node }; | ||
} | ||
} | ||
|
||
}); | ||
|
||
return Collection; | ||
|
||
function extend(base, mixin) { | ||
var extended = Object.create(base); | ||
for(var p in mixin) { | ||
extended[p] = mixin[p]; | ||
} | ||
|
||
return extended; | ||
} | ||
|
||
}); | ||
}(typeof define === 'function' ? define : function(factory) { module.exports = factory(require); })); |
Oops, something went wrong.