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
requirejs.config({ | |
map: { | |
'*': { | |
'jquery': 'jquery-adapter' | |
}, | |
'jquery-adapter': { | |
'jquery': 'jquery' | |
} | |
}); |
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
//Set up the adapter config, so that any module asking | |
//for jquery gets an adapter module that has modified | |
//jquery before other modules can use it. | |
//Needs RequireJS 2.0+ to work correctly | |
//More info on map config: | |
//http://requirejs.org/docs/api.html#config-map | |
requirejs.config({ | |
map: { | |
'*': { | |
'jquery': 'jquery.adapter' |
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
module.exports = { | |
onCreate: { | |
run: [ | |
'git submodule init', | |
'git submodule update' | |
] | |
} | |
}; |
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
//Store this file at CarePassMe/Controllers/DefaultRouter.js | |
define(['backbone', '../Collections/Course', '../Views/CourseList', '../Collections/Page', '../Views/Pages'], | |
function (Backbone, Course, CourseList, Page, Pages) { | |
//The default router for the application. | |
//If you wanted to keep the globals for use outside of requirejs modules, | |
//note the assignment as part of the return. Otherwise, if the globals | |
are not needed just return Backbone.Router.extend()... |
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
// Filename: src/js/collections/store/ArticlesCollection.js | |
define([ | |
'require', | |
'underscore', | |
'backbone', | |
'models/store/ArticleModel' | |
], function (require, _, Backbone, ArticleModel) { | |
var ArticlesCollection = Backbone.Collection.extend({ | |
model: function () { |
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
/* | |
Generated with a build that does: | |
main: | |
include: ["almond", "event-queue", "mailapi/same-frame-setup"] | |
account: | |
exclude: ['event-queue', 'mailapi/same-frame-setup'] | |
include: ['mailapi/activesync/account'] |
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
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make clean | |
rm -rf data/deps | |
rm -rf node-transformed-deps | |
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make all-tests | |
mkdir -p node-transformed-deps | |
rsync -avL node-deps/addressparser node-transformed-deps | |
building file list ... done | |
addressparser/ | |
addressparser/.git | |
addressparser/.gitignore |
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
diff --git a/apps/email/js/ext/mailapi/activesync/configurator.js b/apps/email/js/ext/mailapi/activesync/configurator.js | |
index 38d7a5a..69fe6cb 100644 | |
--- a/apps/email/js/ext/mailapi/activesync/configurator.js | |
+++ b/apps/email/js/ext/mailapi/activesync/configurator.js | |
@@ -2931,8 +2931,12 @@ ActiveSyncAccount.prototype = { | |
}); | |
} | |
else { // ActiveSync 12.x and lower | |
+ var encoder = new TextEncoder('UTF-8'); | |
+ |
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
//in test1.js | |
define({ | |
paths: {}, | |
deps: ['test/_', 'test/$', 'dep1', 'dep2'], | |
callback: function (_, $, dep1, dep2) { | |
//test dep1 and dep2 in here | |
} | |
}); | |
//in test2.js |
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
define({ | |
load: function (id, require, onload, config) { | |
if (config.isBuild) { | |
return onload(); | |
} | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', id + '?bust=' + Date.now(), true); | |
xhr.send(null); | |
xhr.onreadystatechange = function (evt) { |