compass-jquery-plugin 0.3.2.6 → 0.3.2.7.nil
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION.yml +2 -2
- data/lib/handle_js_files.rb +21 -2
- data/templates/dynatree/jquery.dynatree.js +23 -20
- data/templates/dynatree/jquery.dynatree.min.js +38 -38
- data/templates/dynatree/jquery/dynatree/aero.scss +1 -1
- data/templates/dynatree/jquery/dynatree/aqua.scss +1 -1
- data/templates/dynatree/jquery/dynatree/crystal.scss +1 -1
- data/templates/dynatree/jquery/dynatree/xp.scss +2 -2
- data/templates/ical/jquery/ical.scss +10 -10
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-lt.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +155 -65
- data/templates/jqgrid/jquery.jqGrid.min.js +396 -393
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +166 -195
- data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
- data/templates/jqtouch/jquery/touch/apple.scss +5 -5
- data/templates/jqtouch/jquery/touch/default.scss +5 -5
- data/templates/jqtouch/jquery/touch/jqt.scss +12 -7
- data/templates/jqtouch/jquery/touch/jqtouch.scss +11 -13
- data/templates/jquery/history.adapter.jquery.js +54 -67
- data/templates/jquery/history.adapter.jquery.min.js +2 -2
- data/templates/jquery/history.html4.js +587 -680
- data/templates/jquery/history.html4.min.js +8 -18
- data/templates/jquery/history.js +1670 -1289
- data/templates/jquery/history.min.js +25 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +23 -0
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.min.js +2 -0
- data/templates/jquery/jquery-ui.js +97 -61
- data/templates/jquery/jquery-ui.min.js +175 -175
- data/templates/jquery/jquery.dst.js +86 -151
- data/templates/jquery/jquery/ui/_theme.scss +13 -13
- data/templates/jquery/json2.js +214 -214
- data/templates/jquery/manifest.rb +2 -0
- data/templates/mobile/jquery.mobile.js +324 -225
- data/templates/mobile/jquery.mobile.min.js +4 -4
- data/templates/mobile/jquery/mobile/_base.scss +60 -48
- data/templates/mobile/jquery/mobile/default.scss +57 -80
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia.scss +61 -73
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/manifest.rb +0 -8
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/tiny_mce/manifest.rb +16 -0
- data/templates/tiny_mce/tiny_mce/jquery.tinymce.js +1 -1
- data/templates/tiny_mce/tiny_mce/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/langs/en.js +1 -222
- data/templates/tiny_mce/tiny_mce/plugins/advhr/css/advhr.css +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advhr/editor_plugin_src.js +1 -57
- data/templates/tiny_mce/tiny_mce/plugins/advhr/js/rule.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advhr/langs/en_dlg.js +1 -7
- data/templates/tiny_mce/tiny_mce/plugins/advhr/rule.htm +1 -58
- data/templates/tiny_mce/tiny_mce/plugins/advimage/css/advimage.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advimage/editor_plugin_src.js +1 -50
- data/templates/tiny_mce/tiny_mce/plugins/advimage/image.htm +1 -235
- data/templates/tiny_mce/tiny_mce/plugins/advimage/js/image.js +1 -445
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advimage/langs/en_dlg.js +1 -45
- data/templates/tiny_mce/tiny_mce/plugins/advlink/css/advlink.css +1 -8
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlink/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/advlink/js/advlink.js +1 -525
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/advlink/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/advlink/link.htm +1 -338
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/advlist/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autoresize/editor_plugin_src.js +1 -119
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/autosave/editor_plugin_src.js +1 -431
- data/templates/tiny_mce/tiny_mce/plugins/autosave/langs/en.js +1 -4
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/bbcode/editor_plugin_src.js +1 -120
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/contextmenu/editor_plugin_src.js +1 -154
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/directionality/editor_plugin_src.js +1 -82
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/emotions/editor_plugin_src.js +1 -43
- data/templates/tiny_mce/tiny_mce/plugins/emotions/emotions.htm +1 -41
- data/templates/tiny_mce/tiny_mce/plugins/emotions/js/emotions.js +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/emotions/langs/en_dlg.js +1 -20
- data/templates/tiny_mce/tiny_mce/plugins/example/dialog.htm +1 -22
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/example/editor_plugin_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/plugins/example/js/dialog.js +1 -19
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/example/langs/en_dlg.js +1 -3
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/css/fullpage.css +1 -182
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/editor_plugin_src.js +1 -166
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/fullpage.htm +1 -571
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/js/fullpage.js +1 -492
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/fullpage/langs/en_dlg.js +1 -85
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/fullscreen/fullscreen.htm +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/iespell/editor_plugin_src.js +1 -54
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/editor_plugin_src.js +1 -696
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/inlinepopups/template.htm +1 -387
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/insertdatetime/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/layer/editor_plugin_src.js +1 -214
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/legacyoutput/editor_plugin_src.js +1 -139
- data/templates/tiny_mce/tiny_mce/plugins/media/css/media.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/media/editor_plugin_src.js +1 -770
- data/templates/tiny_mce/tiny_mce/plugins/media/js/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/media/js/media.js +1 -340
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/media/langs/en_dlg.js +1 -109
- data/templates/tiny_mce/tiny_mce/plugins/media/media.htm +1 -812
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/noneditable/editor_plugin_src.js +1 -90
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/pagebreak/editor_plugin_src.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/paste/editor_plugin_src.js +1 -899
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pastetext.js +1 -36
- data/templates/tiny_mce/tiny_mce/plugins/paste/js/pasteword.js +1 -51
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/paste/langs/en_dlg.js +1 -5
- data/templates/tiny_mce/tiny_mce/plugins/paste/pastetext.htm +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/paste/pasteword.htm +1 -21
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/preview/editor_plugin_src.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/preview/example.html +17 -16
- data/templates/tiny_mce/tiny_mce/plugins/preview/jscripts/embed.js +1 -73
- data/templates/tiny_mce/tiny_mce/plugins/preview/preview.html +10 -9
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/print/editor_plugin_src.js +1 -34
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/save/editor_plugin_src.js +1 -101
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/css/searchreplace.css +1 -6
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/editor_plugin_src.js +1 -61
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/js/searchreplace.js +1 -140
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/langs/en_dlg.js +1 -16
- data/templates/tiny_mce/tiny_mce/plugins/searchreplace/searchreplace.htm +1 -100
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/css/content.css +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/spellchecker/editor_plugin_src.js +1 -415
- data/templates/tiny_mce/tiny_mce/plugins/style/css/props.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/style/editor_plugin_src.js +1 -55
- data/templates/tiny_mce/tiny_mce/plugins/style/js/props.js +1 -635
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/style/langs/en_dlg.js +1 -70
- data/templates/tiny_mce/tiny_mce/plugins/style/props.htm +1 -838
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/tabfocus/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/table/cell.htm +1 -178
- data/templates/tiny_mce/tiny_mce/plugins/table/css/cell.css +1 -17
- data/templates/tiny_mce/tiny_mce/plugins/table/css/row.css +1 -25
- data/templates/tiny_mce/tiny_mce/plugins/table/css/table.css +1 -13
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/table/editor_plugin_src.js +1 -1183
- data/templates/tiny_mce/tiny_mce/plugins/table/js/cell.js +1 -284
- data/templates/tiny_mce/tiny_mce/plugins/table/js/merge_cells.js +1 -27
- data/templates/tiny_mce/tiny_mce/plugins/table/js/row.js +1 -232
- data/templates/tiny_mce/tiny_mce/plugins/table/js/table.js +1 -450
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/table/langs/en_dlg.js +1 -74
- data/templates/tiny_mce/tiny_mce/plugins/table/merge_cells.htm +1 -32
- data/templates/tiny_mce/tiny_mce/plugins/table/row.htm +1 -157
- data/templates/tiny_mce/tiny_mce/plugins/table/table.htm +1 -188
- data/templates/tiny_mce/tiny_mce/plugins/template/blank.htm +1 -12
- data/templates/tiny_mce/tiny_mce/plugins/template/css/template.css +1 -23
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/template/editor_plugin_src.js +1 -159
- data/templates/tiny_mce/tiny_mce/plugins/template/js/template.js +1 -106
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/template/langs/en_dlg.js +1 -15
- data/templates/tiny_mce/tiny_mce/plugins/template/template.htm +1 -31
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/visualchars/editor_plugin_src.js +1 -83
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/wordcount/editor_plugin_src.js +1 -114
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/abbr.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/acronym.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/attributes.htm +1 -149
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/cite.htm +1 -142
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/attributes.css +1 -11
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/css/popup.css +1 -9
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/del.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +1 -1
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +1 -132
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/ins.htm +1 -162
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/abbr.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/acronym.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/attributes.js +1 -125
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/cite.js +1 -28
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/del.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/element_common.js +1 -229
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/js/ins.js +1 -53
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +1 -32
- data/templates/tiny_mce/tiny_mce/themes/advanced/about.htm +1 -52
- data/templates/tiny_mce/tiny_mce/themes/advanced/anchor.htm +1 -26
- data/templates/tiny_mce/tiny_mce/themes/advanced/charmap.htm +1 -51
- data/templates/tiny_mce/tiny_mce/themes/advanced/color_picker.htm +1 -74
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/advanced/editor_template_src.js +1 -1328
- data/templates/tiny_mce/tiny_mce/themes/advanced/image.htm +1 -80
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/about.js +1 -73
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/anchor.js +1 -42
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/charmap.js +1 -354
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/color_picker.js +1 -329
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/image.js +1 -247
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/link.js +1 -153
- data/templates/tiny_mce/tiny_mce/themes/advanced/js/source_editor.js +1 -56
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en.js +1 -68
- data/templates/tiny_mce/tiny_mce/themes/advanced/langs/en_dlg.js +1 -54
- data/templates/tiny_mce/tiny_mce/themes/advanced/link.htm +1 -57
- data/templates/tiny_mce/tiny_mce/themes/advanced/shortcuts.htm +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/content.css +1 -47
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/dialog.css +1 -117
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/default/ui.css +1 -213
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/content.css +1 -23
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +1 -105
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/highcontrast/ui.css +1 -101
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/content.css +1 -46
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/dialog.css +1 -116
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui.css +1 -215
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +1 -8
- data/templates/tiny_mce/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +1 -5
- data/templates/tiny_mce/tiny_mce/themes/advanced/source_editor.htm +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template.js +1 -1
- data/templates/tiny_mce/tiny_mce/themes/simple/editor_template_src.js +1 -84
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/de.js +1 -0
- data/templates/tiny_mce/tiny_mce/themes/simple/langs/en.js +1 -11
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/content.css +1 -25
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/default/ui.css +1 -32
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/content.css +1 -17
- data/templates/tiny_mce/tiny_mce/themes/simple/skins/o2k7/ui.css +1 -35
- data/templates/tiny_mce/tiny_mce/tiny_mce.js +1 -1
- data/templates/tiny_mce/tiny_mce/tiny_mce_popup.js +1 -5
- data/templates/tiny_mce/tiny_mce/utils/editable_selects.js +1 -70
- data/templates/tiny_mce/tiny_mce/utils/form_utils.js +1 -207
- data/templates/tiny_mce/tiny_mce/utils/mctabs.js +1 -162
- data/templates/tiny_mce/tiny_mce/utils/validate.js +1 -252
- metadata +32 -17
- data/templates/mobile/jquery/mobile/default/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/default/form-radio-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-check-on.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-off.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/form-radio-on.png +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* jQuery UI CSS Framework 1.8.
|
2
|
+
* jQuery UI CSS Framework 1.8.11
|
3
3
|
*
|
4
4
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -83,7 +83,7 @@
|
|
83
83
|
|
84
84
|
|
85
85
|
/*
|
86
|
-
* jQuery UI Accordion 1.8.
|
86
|
+
* jQuery UI Accordion 1.8.11
|
87
87
|
*
|
88
88
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
89
89
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -137,7 +137,7 @@
|
|
137
137
|
|
138
138
|
|
139
139
|
/*
|
140
|
-
* jQuery UI Autocomplete 1.8.
|
140
|
+
* jQuery UI Autocomplete 1.8.11
|
141
141
|
*
|
142
142
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
143
143
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -156,7 +156,7 @@
|
|
156
156
|
/* without this, the menu expands to 100% in IE6 */
|
157
157
|
|
158
158
|
/*
|
159
|
-
* jQuery UI Menu 1.8.
|
159
|
+
* jQuery UI Menu 1.8.11
|
160
160
|
*
|
161
161
|
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
162
162
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -196,7 +196,7 @@
|
|
196
196
|
|
197
197
|
|
198
198
|
/*
|
199
|
-
* jQuery UI Button 1.8.
|
199
|
+
* jQuery UI Button 1.8.11
|
200
200
|
*
|
201
201
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
202
202
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -292,7 +292,7 @@ button.ui-button::-moz-focus-inner {
|
|
292
292
|
|
293
293
|
|
294
294
|
/*
|
295
|
-
* jQuery UI Datepicker 1.8.
|
295
|
+
* jQuery UI Datepicker 1.8.11
|
296
296
|
*
|
297
297
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
298
298
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -491,7 +491,7 @@ button.ui-button::-moz-focus-inner {
|
|
491
491
|
|
492
492
|
|
493
493
|
/*
|
494
|
-
* jQuery UI Dialog 1.8.
|
494
|
+
* jQuery UI Dialog 1.8.11
|
495
495
|
*
|
496
496
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
497
497
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -627,7 +627,7 @@ button.ui-button::-moz-focus-inner {
|
|
627
627
|
|
628
628
|
|
629
629
|
/*
|
630
|
-
* jQuery UI Progressbar 1.8.
|
630
|
+
* jQuery UI Progressbar 1.8.11
|
631
631
|
*
|
632
632
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
633
633
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -645,7 +645,7 @@ button.ui-button::-moz-focus-inner {
|
|
645
645
|
|
646
646
|
|
647
647
|
/*
|
648
|
-
* jQuery UI Resizable 1.8.
|
648
|
+
* jQuery UI Resizable 1.8.11
|
649
649
|
*
|
650
650
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
651
651
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -723,7 +723,7 @@ button.ui-button::-moz-focus-inner {
|
|
723
723
|
|
724
724
|
|
725
725
|
/*
|
726
|
-
* jQuery UI Selectable 1.8.
|
726
|
+
* jQuery UI Selectable 1.8.11
|
727
727
|
*
|
728
728
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
729
729
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -847,7 +847,7 @@ button.ui-button::-moz-focus-inner {
|
|
847
847
|
|
848
848
|
|
849
849
|
/*
|
850
|
-
* jQuery UI Slider 1.8.
|
850
|
+
* jQuery UI Slider 1.8.11
|
851
851
|
*
|
852
852
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
853
853
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -912,7 +912,7 @@ button.ui-button::-moz-focus-inner {
|
|
912
912
|
|
913
913
|
|
914
914
|
/*
|
915
|
-
* jQuery UI Tabs 1.8.
|
915
|
+
* jQuery UI Tabs 1.8.11
|
916
916
|
*
|
917
917
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
918
918
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -967,7 +967,7 @@ button.ui-button::-moz-focus-inner {
|
|
967
967
|
|
968
968
|
|
969
969
|
/*
|
970
|
-
* jQuery UI CSS Framework 1.8.
|
970
|
+
* jQuery UI CSS Framework 1.8.11
|
971
971
|
*
|
972
972
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
973
973
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
data/templates/jquery/json2.js
CHANGED
@@ -1,159 +1,159 @@
|
|
1
1
|
/*
|
2
|
-
|
3
|
-
|
2
|
+
http://www.JSON.org/json2.js
|
3
|
+
2011-01-18
|
4
4
|
|
5
|
-
|
5
|
+
Public Domain.
|
6
6
|
|
7
|
-
|
7
|
+
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
8
8
|
|
9
|
-
|
9
|
+
See http://www.JSON.org/js.html
|
10
10
|
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
This code should be minified before deployment.
|
13
|
+
See http://javascript.crockford.com/jsmin.html
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
|
16
|
+
NOT CONTROL.
|
17
17
|
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
This file creates a global JSON object containing two methods: stringify
|
20
|
+
and parse.
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
JSON.stringify(value, replacer, space)
|
23
|
+
value any JavaScript value, usually an object or array.
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
replacer an optional parameter that determines how object
|
26
|
+
values are stringified for objects. It can be a
|
27
|
+
function or an array of strings.
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
space an optional parameter that specifies the indentation
|
30
|
+
of nested structures. If it is omitted, the text will
|
31
|
+
be packed without extra whitespace. If it is a number,
|
32
|
+
it will specify the number of spaces to indent at each
|
33
|
+
level. If it is a string (such as '\t' or ' '),
|
34
|
+
it contains the characters used to indent at each level.
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
When an object value is found, if the object contains a toJSON
|
39
|
-
method, its toJSON method will be called and the result will be
|
40
|
-
stringified. A toJSON method does not serialize: it returns the
|
41
|
-
value represented by the name/value pair that should be serialized,
|
42
|
-
or undefined if nothing should be serialized. The toJSON method
|
43
|
-
will be passed the key associated with the value, and this will be
|
44
|
-
bound to the value
|
45
|
-
|
46
|
-
For example, this would serialize Dates as ISO strings.
|
47
|
-
|
48
|
-
Date.prototype.toJSON = function (key) {
|
49
|
-
function f(n) {
|
50
|
-
// Format integers to have at least two digits.
|
51
|
-
return n < 10 ? '0' + n : n;
|
52
|
-
}
|
36
|
+
This method produces a JSON text from a JavaScript value.
|
53
37
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
38
|
+
When an object value is found, if the object contains a toJSON
|
39
|
+
method, its toJSON method will be called and the result will be
|
40
|
+
stringified. A toJSON method does not serialize: it returns the
|
41
|
+
value represented by the name/value pair that should be serialized,
|
42
|
+
or undefined if nothing should be serialized. The toJSON method
|
43
|
+
will be passed the key associated with the value, and this will be
|
44
|
+
bound to the value
|
61
45
|
|
62
|
-
|
63
|
-
key and value of each member, with this bound to the containing
|
64
|
-
object. The value that is returned from your method will be
|
65
|
-
serialized. If your method returns undefined, then the member will
|
66
|
-
be excluded from the serialization.
|
46
|
+
For example, this would serialize Dates as ISO strings.
|
67
47
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
Values that do not have JSON representations, such as undefined or
|
74
|
-
functions, will not be serialized. Such values in objects will be
|
75
|
-
dropped; in arrays they will be replaced with null. You can use
|
76
|
-
a replacer function to replace those with JSON values.
|
77
|
-
JSON.stringify(undefined) returns undefined.
|
78
|
-
|
79
|
-
The optional space parameter produces a stringification of the
|
80
|
-
value that is filled with line breaks and indentation to make it
|
81
|
-
easier to read.
|
82
|
-
|
83
|
-
If the space parameter is a non-empty string, then that string will
|
84
|
-
be used for indentation. If the space parameter is a number, then
|
85
|
-
the indentation will be that many spaces.
|
86
|
-
|
87
|
-
Example:
|
88
|
-
|
89
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
90
|
-
// text is '["e",{"pluribus":"unum"}]'
|
91
|
-
|
92
|
-
|
93
|
-
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
94
|
-
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
95
|
-
|
96
|
-
text = JSON.stringify([new Date()], function (key, value) {
|
97
|
-
return this[key] instanceof Date ?
|
98
|
-
'Date(' + this[key] + ')' : value;
|
99
|
-
});
|
100
|
-
// text is '["Date(---current time---)"]'
|
48
|
+
Date.prototype.toJSON = function (key) {
|
49
|
+
function f(n) {
|
50
|
+
// Format integers to have at least two digits.
|
51
|
+
return n < 10 ? '0' + n : n;
|
52
|
+
}
|
101
53
|
|
54
|
+
return this.getUTCFullYear() + '-' +
|
55
|
+
f(this.getUTCMonth() + 1) + '-' +
|
56
|
+
f(this.getUTCDate()) + 'T' +
|
57
|
+
f(this.getUTCHours()) + ':' +
|
58
|
+
f(this.getUTCMinutes()) + ':' +
|
59
|
+
f(this.getUTCSeconds()) + 'Z';
|
60
|
+
};
|
61
|
+
|
62
|
+
You can provide an optional replacer method. It will be passed the
|
63
|
+
key and value of each member, with this bound to the containing
|
64
|
+
object. The value that is returned from your method will be
|
65
|
+
serialized. If your method returns undefined, then the member will
|
66
|
+
be excluded from the serialization.
|
67
|
+
|
68
|
+
If the replacer parameter is an array of strings, then it will be
|
69
|
+
used to select the members to be serialized. It filters the results
|
70
|
+
such that only members with keys listed in the replacer array are
|
71
|
+
stringified.
|
72
|
+
|
73
|
+
Values that do not have JSON representations, such as undefined or
|
74
|
+
functions, will not be serialized. Such values in objects will be
|
75
|
+
dropped; in arrays they will be replaced with null. You can use
|
76
|
+
a replacer function to replace those with JSON values.
|
77
|
+
JSON.stringify(undefined) returns undefined.
|
78
|
+
|
79
|
+
The optional space parameter produces a stringification of the
|
80
|
+
value that is filled with line breaks and indentation to make it
|
81
|
+
easier to read.
|
82
|
+
|
83
|
+
If the space parameter is a non-empty string, then that string will
|
84
|
+
be used for indentation. If the space parameter is a number, then
|
85
|
+
the indentation will be that many spaces.
|
86
|
+
|
87
|
+
Example:
|
88
|
+
|
89
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}]);
|
90
|
+
// text is '["e",{"pluribus":"unum"}]'
|
91
|
+
|
92
|
+
|
93
|
+
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
|
94
|
+
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
|
95
|
+
|
96
|
+
text = JSON.stringify([new Date()], function (key, value) {
|
97
|
+
return this[key] instanceof Date ?
|
98
|
+
'Date(' + this[key] + ')' : value;
|
99
|
+
});
|
100
|
+
// text is '["Date(---current time---)"]'
|
101
|
+
|
102
|
+
|
103
|
+
JSON.parse(text, reviver)
|
104
|
+
This method parses a JSON text to produce an object or array.
|
105
|
+
It can throw a SyntaxError exception.
|
106
|
+
|
107
|
+
The optional reviver parameter is a function that can filter and
|
108
|
+
transform the results. It receives each of the keys and values,
|
109
|
+
and its return value is used instead of the original value.
|
110
|
+
If it returns what it received, then the structure is not modified.
|
111
|
+
If it returns undefined then the member is deleted.
|
112
|
+
|
113
|
+
Example:
|
114
|
+
|
115
|
+
// Parse the text. Values that look like ISO date strings will
|
116
|
+
// be converted to Date objects.
|
117
|
+
|
118
|
+
myData = JSON.parse(text, function (key, value) {
|
119
|
+
var a;
|
120
|
+
if (typeof value === 'string') {
|
121
|
+
a =
|
122
|
+
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
123
|
+
if (a) {
|
124
|
+
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
125
|
+
+a[5], +a[6]));
|
126
|
+
}
|
127
|
+
}
|
128
|
+
return value;
|
129
|
+
});
|
130
|
+
|
131
|
+
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
132
|
+
var d;
|
133
|
+
if (typeof value === 'string' &&
|
134
|
+
value.slice(0, 5) === 'Date(' &&
|
135
|
+
value.slice(-1) === ')') {
|
136
|
+
d = new Date(value.slice(5, -1));
|
137
|
+
if (d) {
|
138
|
+
return d;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
return value;
|
142
|
+
});
|
102
143
|
|
103
|
-
JSON.parse(text, reviver)
|
104
|
-
This method parses a JSON text to produce an object or array.
|
105
|
-
It can throw a SyntaxError exception.
|
106
144
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
If it returns what it received, then the structure is not modified.
|
111
|
-
If it returns undefined then the member is deleted.
|
112
|
-
|
113
|
-
Example:
|
114
|
-
|
115
|
-
// Parse the text. Values that look like ISO date strings will
|
116
|
-
// be converted to Date objects.
|
117
|
-
|
118
|
-
myData = JSON.parse(text, function (key, value) {
|
119
|
-
var a;
|
120
|
-
if (typeof value === 'string') {
|
121
|
-
a =
|
122
|
-
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
|
123
|
-
if (a) {
|
124
|
-
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
|
125
|
-
+a[5], +a[6]));
|
126
|
-
}
|
127
|
-
}
|
128
|
-
return value;
|
129
|
-
});
|
130
|
-
|
131
|
-
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
|
132
|
-
var d;
|
133
|
-
if (typeof value === 'string' &&
|
134
|
-
value.slice(0, 5) === 'Date(' &&
|
135
|
-
value.slice(-1) === ')') {
|
136
|
-
d = new Date(value.slice(5, -1));
|
137
|
-
if (d) {
|
138
|
-
return d;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
return value;
|
142
|
-
});
|
143
|
-
|
144
|
-
|
145
|
-
This is a reference implementation. You are free to copy, modify, or
|
146
|
-
redistribute.
|
147
|
-
*/
|
145
|
+
This is a reference implementation. You are free to copy, modify, or
|
146
|
+
redistribute.
|
147
|
+
*/
|
148
148
|
|
149
149
|
/*jslint evil: true, strict: false, regexp: false */
|
150
150
|
|
151
151
|
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
152
|
+
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
|
153
|
+
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
|
154
|
+
lastIndex, length, parse, prototype, push, replace, slice, stringify,
|
155
|
+
test, toJSON, toString, valueOf
|
156
|
+
*/
|
157
157
|
|
158
158
|
|
159
159
|
// Create a JSON object only if one does not already exist. We create the
|
@@ -177,35 +177,35 @@ if (!JSON) {
|
|
177
177
|
Date.prototype.toJSON = function (key) {
|
178
178
|
|
179
179
|
return isFinite(this.valueOf()) ?
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
180
|
+
this.getUTCFullYear() + '-' +
|
181
|
+
f(this.getUTCMonth() + 1) + '-' +
|
182
|
+
f(this.getUTCDate()) + 'T' +
|
183
|
+
f(this.getUTCHours()) + ':' +
|
184
|
+
f(this.getUTCMinutes()) + ':' +
|
185
|
+
f(this.getUTCSeconds()) + 'Z' : null;
|
186
186
|
};
|
187
187
|
|
188
|
-
String.prototype.toJSON
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
188
|
+
String.prototype.toJSON =
|
189
|
+
Number.prototype.toJSON =
|
190
|
+
Boolean.prototype.toJSON = function (key) {
|
191
|
+
return this.valueOf();
|
192
|
+
};
|
193
193
|
}
|
194
194
|
|
195
195
|
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
196
|
+
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
197
|
+
gap,
|
198
|
+
indent,
|
199
|
+
meta = { // table of character substitutions
|
200
|
+
'\b': '\\b',
|
201
|
+
'\t': '\\t',
|
202
|
+
'\n': '\\n',
|
203
|
+
'\f': '\\f',
|
204
|
+
'\r': '\\r',
|
205
|
+
'"' : '\\"',
|
206
|
+
'\\': '\\\\'
|
207
|
+
},
|
208
|
+
rep;
|
209
209
|
|
210
210
|
|
211
211
|
function quote(string) {
|
@@ -219,7 +219,7 @@ if (!JSON) {
|
|
219
219
|
return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
|
220
220
|
var c = meta[a];
|
221
221
|
return typeof c === 'string' ? c :
|
222
|
-
|
222
|
+
'\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
223
223
|
}) + '"' : '"' + string + '"';
|
224
224
|
}
|
225
225
|
|
@@ -229,12 +229,12 @@ if (!JSON) {
|
|
229
229
|
// Produce a string from holder[key].
|
230
230
|
|
231
231
|
var i, // The loop counter.
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
232
|
+
k, // The member key.
|
233
|
+
v, // The member value.
|
234
|
+
length,
|
235
|
+
mind = gap,
|
236
|
+
partial,
|
237
|
+
value = holder[key];
|
238
238
|
|
239
239
|
// If the value has a toJSON method, call it to obtain a replacement value.
|
240
240
|
|
@@ -253,98 +253,98 @@ if (!JSON) {
|
|
253
253
|
// What happens next depends on the value's type.
|
254
254
|
|
255
255
|
switch (typeof value) {
|
256
|
-
|
257
|
-
|
256
|
+
case 'string':
|
257
|
+
return quote(value);
|
258
258
|
|
259
|
-
|
259
|
+
case 'number':
|
260
260
|
|
261
261
|
// JSON numbers must be finite. Encode non-finite numbers as null.
|
262
262
|
|
263
|
-
|
263
|
+
return isFinite(value) ? String(value) : 'null';
|
264
264
|
|
265
|
-
|
266
|
-
|
265
|
+
case 'boolean':
|
266
|
+
case 'null':
|
267
267
|
|
268
268
|
// If the value is a boolean or null, convert it to a string. Note:
|
269
269
|
// typeof null does not produce 'null'. The case is included here in
|
270
270
|
// the remote chance that this gets fixed someday.
|
271
271
|
|
272
|
-
|
272
|
+
return String(value);
|
273
273
|
|
274
274
|
// If the type is 'object', we might be dealing with an object or an array or
|
275
275
|
// null.
|
276
276
|
|
277
|
-
|
277
|
+
case 'object':
|
278
278
|
|
279
279
|
// Due to a specification blunder in ECMAScript, typeof null is 'object',
|
280
280
|
// so watch out for that case.
|
281
281
|
|
282
|
-
|
283
|
-
|
284
|
-
|
282
|
+
if (!value) {
|
283
|
+
return 'null';
|
284
|
+
}
|
285
285
|
|
286
286
|
// Make an array to hold the partial results of stringifying this object value.
|
287
287
|
|
288
|
-
|
289
|
-
|
288
|
+
gap += indent;
|
289
|
+
partial = [];
|
290
290
|
|
291
291
|
// Is the value an array?
|
292
292
|
|
293
|
-
|
293
|
+
if (Object.prototype.toString.apply(value) === '[object Array]') {
|
294
294
|
|
295
295
|
// The value is an array. Stringify every element. Use null as a placeholder
|
296
296
|
// for non-JSON values.
|
297
297
|
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
298
|
+
length = value.length;
|
299
|
+
for (i = 0; i < length; i += 1) {
|
300
|
+
partial[i] = str(i, value) || 'null';
|
301
|
+
}
|
302
302
|
|
303
303
|
// Join all of the elements together, separated with commas, and wrap them in
|
304
304
|
// brackets.
|
305
305
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
306
|
+
v = partial.length === 0 ? '[]' : gap ?
|
307
|
+
'[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
|
308
|
+
'[' + partial.join(',') + ']';
|
309
|
+
gap = mind;
|
310
|
+
return v;
|
311
|
+
}
|
312
312
|
|
313
313
|
// If the replacer is an array, use it to select the members to be stringified.
|
314
314
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
}
|
315
|
+
if (rep && typeof rep === 'object') {
|
316
|
+
length = rep.length;
|
317
|
+
for (i = 0; i < length; i += 1) {
|
318
|
+
k = rep[i];
|
319
|
+
if (typeof k === 'string') {
|
320
|
+
v = str(k, value);
|
321
|
+
if (v) {
|
322
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
324
323
|
}
|
325
324
|
}
|
326
|
-
}
|
325
|
+
}
|
326
|
+
} else {
|
327
327
|
|
328
328
|
// Otherwise, iterate through all of the keys in the object.
|
329
329
|
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
}
|
330
|
+
for (k in value) {
|
331
|
+
if (Object.hasOwnProperty.call(value, k)) {
|
332
|
+
v = str(k, value);
|
333
|
+
if (v) {
|
334
|
+
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
336
335
|
}
|
337
336
|
}
|
338
337
|
}
|
338
|
+
}
|
339
339
|
|
340
340
|
// Join all of the member texts together, separated with commas,
|
341
341
|
// and wrap them in braces.
|
342
342
|
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
343
|
+
v = partial.length === 0 ? '{}' : gap ?
|
344
|
+
'{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
|
345
|
+
'{' + partial.join(',') + '}';
|
346
|
+
gap = mind;
|
347
|
+
return v;
|
348
348
|
}
|
349
349
|
}
|
350
350
|
|
@@ -383,7 +383,7 @@ if (!JSON) {
|
|
383
383
|
rep = replacer;
|
384
384
|
if (replacer && typeof replacer !== 'function' &&
|
385
385
|
(typeof replacer !== 'object' ||
|
386
|
-
|
386
|
+
typeof replacer.length !== 'number')) {
|
387
387
|
throw new Error('JSON.stringify');
|
388
388
|
}
|
389
389
|
|
@@ -436,7 +436,7 @@ if (!JSON) {
|
|
436
436
|
if (cx.test(text)) {
|
437
437
|
text = text.replace(cx, function (a) {
|
438
438
|
return '\\u' +
|
439
|
-
|
439
|
+
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
440
440
|
});
|
441
441
|
}
|
442
442
|
|
@@ -455,8 +455,8 @@ if (!JSON) {
|
|
455
455
|
|
456
456
|
if (/^[\],:{}\s]*$/
|
457
457
|
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
|
458
|
-
|
459
|
-
|
458
|
+
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
|
459
|
+
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
|
460
460
|
|
461
461
|
// In the third stage we use the eval function to compile the text into a
|
462
462
|
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
|
@@ -469,7 +469,7 @@ if (!JSON) {
|
|
469
469
|
// each name/value pair to a reviver function for possible transformation.
|
470
470
|
|
471
471
|
return typeof reviver === 'function' ?
|
472
|
-
|
472
|
+
walk({'': j}, '') : j;
|
473
473
|
}
|
474
474
|
|
475
475
|
// If the text is not JSON parseable, then a SyntaxError is thrown.
|