Permalink
Browse files

All: Update boilerplate

Fixes gh-7973
Closes gh-8062
  • Loading branch information...
gabrielschulhof authored and arschmitz committed Apr 8, 2015
1 parent 79d8d1a commit 62a1e787c38033bf6cb75afc7b9473880cfa816e
Showing with 2,506 additions and 1,483 deletions.
  1. +2 −3 bower.json
  2. +1 −3 build/tasks/options/bowercopy.js
  3. +3 −9 build/tasks/options/requirejs.js
  4. +0 −59 external/requirejs/plugins/json.js
  5. +0 −308 external/requirejs/plugins/text.js
  6. +1 −0 js/.jshintrc
  7. +25 −10 js/animationComplete.js
  8. +23 −7 js/core.js
  9. +25 −8 js/data.js
  10. +24 −14 js/defaults.js
  11. +26 −8 js/degradeInputs.js
  12. +26 −10 js/events.js
  13. +27 −11 js/events/navigate.js
  14. +26 −9 js/events/orientationchange.js
  15. +22 −8 js/events/scroll.js
  16. +24 −8 js/events/throttledresize.js
  17. +25 −8 js/events/touch.js
  18. +25 −8 js/fieldContain.js
  19. +26 −8 js/grid.js
  20. +25 −12 js/helpers.js
  21. +0 −4 js/index.php
  22. +34 −20 js/init.js
  23. +0 −5 js/jquery.mobile.define.js
  24. +74 −62 js/jquery.mobile.js
  25. +25 −10 js/links.js
  26. +25 −8 js/media.js
  27. +37 −20 js/navigation.js
  28. +25 −12 js/navigation/base.js
  29. +27 −8 js/navigation/history.js
  30. +29 −8 js/navigation/method.js
  31. +29 −13 js/navigation/navigator.js
  32. +26 −10 js/navigation/path.js
  33. +27 −11 js/nojs.js
  34. +26 −9 js/ns.js
  35. +28 −7 js/support.js
  36. +25 −8 js/support/orientation.js
  37. +26 −8 js/support/touch.js
  38. +24 −8 js/transitions/concurrent.js
  39. +26 −8 js/transitions/handlers.js
  40. +25 −8 js/transitions/serial.js
  41. +30 −14 js/transitions/transition.js
  42. +30 −16 js/transitions/visuals.js
  43. +23 −11 js/transitions/visuals/flip.js
  44. +23 −11 js/transitions/visuals/flow.js
  45. +23 −11 js/transitions/visuals/pop.js
  46. +23 −11 js/transitions/visuals/slide.js
  47. +23 −11 js/transitions/visuals/slidedown.js
  48. +23 −11 js/transitions/visuals/slidefade.js
  49. +23 −11 js/transitions/visuals/slideup.js
  50. +23 −11 js/transitions/visuals/turn.js
  51. +24 −10 js/vmouse.js
  52. +27 −11 js/widget.js
  53. +25 −14 js/widgets/accordion.js
  54. +25 −8 js/widgets/addFirstLastClasses.js
  55. +37 −18 js/widgets/collapsible.js
  56. +29 −13 js/widgets/collapsibleSet.js
  57. +28 −16 js/widgets/controlgroup.backcompat.js
  58. +27 −14 js/widgets/controlgroup.js
  59. +29 −12 js/widgets/dialog.js
  60. +28 −11 js/widgets/filterable.backcompat.js
  61. +28 −12 js/widgets/filterable.js
  62. +33 −10 js/widgets/fixedToolbar.js
  63. +33 −9 js/widgets/fixedToolbar.workarounds.js
  64. +26 −12 js/widgets/forms/autogrow.js
  65. +31 −18 js/widgets/forms/button.backcompat.js
  66. +30 −16 js/widgets/forms/button.js
  67. +29 −16 js/widgets/forms/checkboxradio.backcompat.js
  68. +28 −15 js/widgets/forms/checkboxradio.js
  69. +26 −11 js/widgets/forms/clearButton.js
  70. +30 −14 js/widgets/forms/flipswitch.js
  71. +33 −15 js/widgets/forms/rangeslider.js
  72. +25 −8 js/widgets/forms/reset.js
  73. +31 −20 js/widgets/forms/select.custom.js
  74. +33 −16 js/widgets/forms/select.js
  75. +32 −14 js/widgets/forms/slider.js
  76. +27 −10 js/widgets/forms/slider.tooltip.js
  77. +31 −9 js/widgets/forms/textinput.js
  78. +27 −9 js/widgets/listview.autodividers.js
  79. +27 −9 js/widgets/listview.hidedividers.js
  80. +28 −9 js/widgets/listview.js
  81. +33 −15 js/widgets/loader.js
  82. +29 −9 js/widgets/navbar.js
  83. +28 −12 js/widgets/page.dialog.js
  84. +34 −8 js/widgets/page.js
  85. +40 −20 js/widgets/pagecontainer.js
  86. +29 −9 js/widgets/panel.js
  87. +25 −12 js/widgets/popup.arrow.js
  88. +41 −20 js/widgets/popup.js
  89. +29 −14 js/widgets/table.columntoggle.js
  90. +28 −10 js/widgets/table.js
  91. +26 −9 js/widgets/table.reflow.js
  92. +30 −19 js/widgets/tabs.ajax.js
  93. +32 −15 js/widgets/toolbar.js
  94. +24 −14 js/widgets/widget.backcompat.js
  95. +24 −12 js/widgets/widget.theme.js
  96. +25 −8 js/zoom.js
  97. +24 −8 js/zoom/iosorientationfix.js
  98. +0 −4 tests/integration/navigation/index.html
  99. +0 −1 tests/unit/event/index.html
  100. +0 −3 tests/unit/kitchensink/index.html
  101. +0 −6 tests/unit/path/index.html
View
@@ -19,8 +19,7 @@
"devDependencies": {
"requirejs": "2.1.2",
"qunit": "1.17.1",
"jshint": "2.4.0",
"requirejs-text": "2.0.3",
"requirejs-plugins": "millermedeiros/requirejs-plugins#34330a5d735474ac0b518eb1eb270c9e5505a537"
"qunit-assert-classes": "0.1.7",
"jshint": "2.4.0"
}
}
@@ -19,9 +19,7 @@ module.exports = function( grunt ) {
},
requirejs: {
files: {
"requirejs/require.js": "requirejs/require.js",
"requirejs/plugins/text.js": "requirejs-text/text.js",
"requirejs/plugins/json.js": "requirejs-plugins/src/json.js"
"requirejs/require.js": "requirejs/require.js"
}
},
jquery: {
@@ -24,17 +24,11 @@ module.exports = function( grunt ) {
include: [ "jquery.mobile" ],
exclude: [
"jquery",
"json",
"json!../package.json"
],
exclude: [ "jquery" ],
out: path.join( "dist", "<%= name %>" ) + "<%= versionSuffix %>.js",
excludeShallow: [ "jquery.mobile" ],
pragmasOnSave: {
jqmBuildExclude: true
},
out: path.join( "dist", "<%= name %>" ) + "<%= versionSuffix %>.js",
//File paths are relative to the build file, or if running a commmand
//line build, the current directory.
@@ -1,59 +0,0 @@
/** @license
* RequireJS plugin for loading JSON files
* - depends on Text plugin and it was HEAVILY "inspired" by it as well.
* Author: Miller Medeiros
* Version: 0.3.0 (2012/10/29)
* Released under the MIT license
*/
define(['text'], function(text){
var CACHE_BUST_QUERY_PARAM = 'bust',
CACHE_BUST_FLAG = '!bust',
jsonParse = (typeof JSON !== 'undefined' && typeof JSON.parse === 'function')? JSON.parse : function(val){
return eval('('+ val +')'); //quick and dirty
},
buildMap = {};
function cacheBust(url){
url = url.replace(CACHE_BUST_FLAG, '');
url += (url.indexOf('?') < 0)? '?' : '&';
return url + CACHE_BUST_QUERY_PARAM +'='+ Math.round(2147483647 * Math.random());
}
//API
return {
load : function(name, req, onLoad, config) {
if ( config.isBuild && (config.inlineJSON === false || name.indexOf(CACHE_BUST_QUERY_PARAM +'=') !== -1) ) {
//avoid inlining cache busted JSON or if inlineJSON:false
onLoad(null);
} else {
text.get(req.toUrl(name), function(data){
if (config.isBuild) {
buildMap[name] = data;
onLoad(data);
} else {
onLoad(jsonParse(data));
}
},
onLoad.error
);
}
},
normalize : function (name, normalize) {
//used normalize to avoid caching references to a "cache busted" request
return (name.indexOf(CACHE_BUST_FLAG) === -1)? name : cacheBust(name);
},
//write method based on RequireJS official text plugin by James Burke
//https://github.com/jrburke/requirejs/blob/master/text.js
write : function(pluginName, moduleName, write){
if(moduleName in buildMap){
var content = buildMap[moduleName];
write('define("'+ pluginName +'!'+ moduleName +'", function(){ return '+ content +';});\n');
}
}
};
});
Oops, something went wrong.

0 comments on commit 62a1e78

Please sign in to comment.