knockout.app
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -37,12 +37,13 @@ /*global module:false*/ | ||
qunit: { | ||
options: { | ||
urls: [ | ||
'http://localhost:8000/tests/index.html' | ||
] | ||
}, | ||
all: [] // this is needed otherwise no test would run | ||
all: { | ||
options: { | ||
urls: [ | ||
'http://localhost:8000/tests/index.html' | ||
] | ||
} | ||
} | ||
}, | ||
connect: { | ||
server: {}, // keep the server running using 'grunt connect:server:keepalive' | ||
server: {} // keep the server running using 'grunt connect:server:keepalive' | ||
}, | ||
@@ -78,3 +79,3 @@ | ||
build = 'git add -f ' + files, | ||
commit = 'git commit -m\'publishing v' + version + '\'' | ||
commit = 'git commit -m\'publishing v' + version + '\'', | ||
tag = 'git tag ' + version, | ||
@@ -85,6 +86,6 @@ push = 'git push origin master && git push --tags', | ||
// Site | ||
cdSite = 'cd _site' | ||
cdSite = 'cd _site', | ||
commitSite = 'git add -A && git commit -m\'publishing site for v' + version + '\' && git tag gh-pages-' + version, | ||
pushSite = 'git push origin gh-pages && git push --tags', | ||
backSite = 'cd ..' | ||
backSite = 'cd ..', | ||
site = cdSite + ' && ' + commitSite + ' && ' + pushSite + ' && ' + backSite; | ||
@@ -91,0 +92,0 @@ return build + ' && ' + commit + ' && ' + tag + ' && ' + push + ' && ' + publish + ' && ' + back + ' && ' + site; |
@@ -6,3 +6,3 @@ { | ||
"author": "Matteo Pagliazzi <matteopagliazzi@gmail.com>", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "main": "build/knockout.app.js", |
**KnockoutApp** is a framework for building apps using [KnockoutJS](http://knockoutjs.com/). | ||
The last version released is 0.2.2 | ||
The last version released is 0.2.3 | ||
@@ -11,3 +11,3 @@ **Documentation**, **downloads**, how to **contribute**, **tests**, **example application** and more can be found on the [website](http://paglias.net/KnockoutApp). | ||
Credits can be found in [CREDITS.md](https://github.com/paglias/KnockoutApp/blob/master/CREDITS.md). | ||
Credits can be found in [CREDITS.md](CREDITS.md). | ||
@@ -20,7 +20,2 @@ // ## KnockoutApp.Sync | ||
// On error response calls KnockoutApp.Utils.wrapError | ||
params.error = function(){ | ||
KnockoutApp.Utils.wrapError(arguments); | ||
}; | ||
//Get the url of the model/collection (model.url or model.url()) | ||
@@ -27,0 +22,0 @@ params.url = Utils.unwrapValue(model, 'url'); |
@@ -254,2 +254,3 @@ module("Model"); | ||
contentType: 'text/json', | ||
responseText: {}, | ||
data: { // check that the data sent is correct | ||
@@ -262,6 +263,7 @@ id: 77, | ||
var result = false; // necessary to check the update has been successful | ||
var result = false; // necessary to check that the update has been successful | ||
instance.save({ | ||
success: function(data){ | ||
console.log("successful") | ||
result = true; // update successful | ||
@@ -313,3 +315,3 @@ } | ||
var saved2 = new model({ | ||
id: 66 | ||
id: 67 | ||
}); | ||
@@ -323,4 +325,5 @@ | ||
type: 'DELETE', | ||
url: '/tasks/66', | ||
url: '/tasks/*', | ||
responseTime: 5, | ||
responseText: {}, | ||
contentType: 'text/json' | ||
@@ -334,4 +337,4 @@ }); | ||
strictEqual(saved1.collection, undefined); | ||
strictEqual(saved2.collection, undefined); | ||
strictEqual(saved2.collection, undefined); | ||
equal(coll.models().length, 0); | ||
@@ -338,0 +341,0 @@ |
Sorry, the diff of this file is not supported yet
268922
31
4555