This file contains hidden or 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
| var View = require("ampersand-view"); | |
| var CustomView = View.extend({ | |
| initialize: function() { | |
| this.on("remove", function() { | |
| this.el.innerHTML = "I was removed??" | |
| }); | |
| } | |
| }); |
This file contains hidden or 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
| var rfc6902 = require("rfc6902"); | |
| var starting = { | |
| arr: [] | |
| }; | |
| var goal = { | |
| arr: [1,2,3,4,5,6] | |
| }; | |
| var diff = rfc6902.createPatch(starting, goal); |
This file contains hidden or 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
| var sync = require("ampersand-sync"); | |
| var xhr = require("xhr"); | |
| var options = { | |
| url: 'http://jsonplaceholder.typicode.com/posts',//a test endpoint | |
| headers: { | |
| "Content-Type": "application/json" | |
| }, | |
| json: { | |
| foo: "bar" |
This file contains hidden or 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
| { | |
| "excludeFiles": ["node_modules/**"], | |
| "esnext": true, | |
| "requireCurlyBraces": [ | |
| "if", | |
| "else", | |
| "for", | |
| "while", | |
| "do", | |
| "try", |
This file contains hidden or 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
| { | |
| "Fault": { | |
| "Error": [ | |
| { | |
| "Message": "An application error has occurred while processing your request", | |
| "Detail": "System Failure Error: An unexpected error occurred while accessing or saving your data. Please wait a few minutes and try again. If the problem persists, contact customer support.", | |
| "code": "10000" | |
| } | |
| ], | |
| "type": "SystemFault" |
OlderNewer