mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-09 00:20:29 +08:00
using lodash instead of underscore
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
require.config({
|
||||
|
||||
//load lib files required
|
||||
paths: {
|
||||
jquery: "vendor/jquery.min",
|
||||
underscore: "vendor/underscore",
|
||||
lodash:"vendor/lodash.min",
|
||||
backbone: "vendor/backbone",
|
||||
modernizr:"vendor/custom.modernizr",
|
||||
socket:"vendor/socket.io.min",
|
||||
lodash:"vendor/lodash.min"
|
||||
socket:"vendor/socket.io.min"
|
||||
},
|
||||
|
||||
shim: {
|
||||
|
||||
shim: {
|
||||
backbone: {
|
||||
deps: ["underscore", "jquery"],
|
||||
deps: ["lodash", "jquery"],
|
||||
exports: "Backbone"
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
waitSeconds: 5
|
||||
@@ -26,7 +24,6 @@ require.config({
|
||||
require([
|
||||
'views/page'
|
||||
],
|
||||
|
||||
function( App ) {
|
||||
new App();
|
||||
});
|
||||
|
||||
@@ -66,6 +66,7 @@ constants
|
||||
},
|
||||
|
||||
update: function(e) {
|
||||
console.log("update here");
|
||||
if ( e.which === constants.ENTER_KEY ) {
|
||||
Tasks.add({content:'', parent_id: this.model.get('parent_id')});
|
||||
this.$input.blur();
|
||||
|
||||
Reference in New Issue
Block a user