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
The below package.json works with braintree-web 3.2.0 | |
====================================================== | |
{ | |
"name": "myapp", | |
"version": "1.0.0", | |
"description": "Testing braintree-web", | |
"main": "main", | |
"scripts": { | |
}, | |
"repository": { |
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
//jobs model (Jobs.js) | |
define(['can/model/model'], function() { | |
var jobs = can.Model.extend({ | |
findAll: function(params, success, error) { | |
return can.ajax({ | |
type: 'GET', | |
url: '/job/All?' + params.queryString, |
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
//jobs model (Jobs.js) | |
define(['can/model/model'], function() { | |
var jobs = can.Model.extend({ | |
getJobsList: function(params, success, error) { | |
return can.ajax({ | |
type: 'GET', | |
url: '/job/All?' + params.queryString, |