From 56370aa0a7a09ad63bf0b6399de422a076ff016d Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 5 Nov 2011 17:46:53 +0100 Subject: [PATCH] 'use strict'; --- source/Ox.Geo/Ox.Geo.js | 2 ++ source/Ox.Image/Ox.Image.js | 2 ++ source/Ox.UI/Ox.UI.js | 4 +++- source/Ox.UI/js/Bar/Ox.Bar.js | 1 + source/Ox.UI/js/Bar/Ox.Progressbar.js | 2 ++ source/Ox.UI/js/Bar/Ox.Resizebar.js | 1 + source/Ox.UI/js/Bar/Ox.Tabbar.js | 1 + source/Ox.UI/js/Bar/Ox.Toolbar.js | 1 + source/Ox.UI/js/Calendar/Ox.Calendar.js | 2 ++ source/Ox.UI/js/Calendar/Ox.CalendarDate.js | 1 + source/Ox.UI/js/Calendar/Ox.ListCalendar.js | 2 ++ source/Ox.UI/js/Core/Ox.App.js | 2 ++ source/Ox.UI/js/Core/Ox.Clipboard.js | 1 + source/Ox.UI/js/Core/Ox.Container.js | 2 +- source/Ox.UI/js/Core/Ox.DocPage.js | 1 + source/Ox.UI/js/Core/Ox.DocPanel.js | 2 ++ source/Ox.UI/js/Core/Ox.Element.js | 2 ++ source/Ox.UI/js/Core/Ox.Event.js | 2 ++ source/Ox.UI/js/Core/Ox.Focus.js | 1 + source/Ox.UI/js/Core/Ox.History.js | 1 + source/Ox.UI/js/Core/Ox.JQueryElement.js | 2 ++ source/Ox.UI/js/Core/Ox.Keyboard.js | 1 + source/Ox.UI/js/Core/Ox.LoadingIcon.js | 1 + source/Ox.UI/js/Core/Ox.Progressbar.js | 3 ++- source/Ox.UI/js/Core/Ox.Request.js | 1 + source/Ox.UI/js/Core/Ox.SyntaxHighlighter.js | 2 ++ source/Ox.UI/js/Core/Ox.Theme.js | 2 ++ source/Ox.UI/js/Core/Ox.URL.js | 2 ++ source/Ox.UI/js/Form/Ox.ArrayInput.js | 2 ++ source/Ox.UI/js/Form/Ox.Button.js | 1 + source/Ox.UI/js/Form/Ox.ButtonGroup.js | 1 + source/Ox.UI/js/Form/Ox.Checkbox.js | 1 + source/Ox.UI/js/Form/Ox.CheckboxGroup.js | 1 + source/Ox.UI/js/Form/Ox.ColorInput.js | 1 + source/Ox.UI/js/Form/Ox.ColorPicker.js | 2 +- source/Ox.UI/js/Form/Ox.DateInput.js | 2 +- source/Ox.UI/js/Form/Ox.DateTimeInput.js | 2 +- source/Ox.UI/js/Form/Ox.Editable.js | 1 + source/Ox.UI/js/Form/Ox.Filter.js | 2 ++ source/Ox.UI/js/Form/Ox.Form.js | 2 ++ source/Ox.UI/js/Form/Ox.FormElementGroup.js | 2 ++ source/Ox.UI/js/Form/Ox.FormItem.js | 2 ++ source/Ox.UI/js/Form/Ox.Input.js | 1 + source/Ox.UI/js/Form/Ox.InputGroup.js | 2 ++ source/Ox.UI/js/Form/Ox.Label.js | 1 + source/Ox.UI/js/Form/Ox.OptionGroup.js | 2 ++ source/Ox.UI/js/Form/Ox.Picker.js | 1 + source/Ox.UI/js/Form/Ox.PlaceInput.js | 2 ++ source/Ox.UI/js/Form/Ox.PlacePicker.js | 2 ++ source/Ox.UI/js/Form/Ox.Range.js | 1 + source/Ox.UI/js/Form/Ox.Select.js | 2 ++ source/Ox.UI/js/Form/Ox.TimeInput.js | 2 ++ source/Ox.UI/js/List/Ox.IconItem.js | 2 ++ source/Ox.UI/js/List/Ox.IconList.js | 1 + source/Ox.UI/js/List/Ox.InfoList.js | 2 ++ source/Ox.UI/js/List/Ox.ItemInput.js | 2 ++ source/Ox.UI/js/List/Ox.List.js | 2 ++ source/Ox.UI/js/List/Ox.ListItem.js | 2 ++ source/Ox.UI/js/List/Ox.ListPage.js | 1 + source/Ox.UI/js/List/Ox.TextList.js | 2 ++ source/Ox.UI/js/List/Ox.TreeList.js | 2 ++ source/Ox.UI/js/Map/Ox.ListMap.js | 2 ++ source/Ox.UI/js/Map/Ox.Map.js | 2 ++ source/Ox.UI/js/Map/Ox.MapImage.js | 2 ++ source/Ox.UI/js/Map/Ox.MapMarker.js | 2 ++ source/Ox.UI/js/Map/Ox.MapMarkerImage.js | 2 ++ source/Ox.UI/js/Map/Ox.MapPlace.js | 2 ++ source/Ox.UI/js/Map/Ox.MapRectangle.js | 2 ++ source/Ox.UI/js/Map/Ox.MapRectangleMarker.js | 2 ++ source/Ox.UI/js/Menu/Ox.MainMenu.js | 2 ++ source/Ox.UI/js/Menu/Ox.Menu.js | 1 + source/Ox.UI/js/Menu/Ox.MenuItem.js | 1 + source/Ox.UI/js/Panel/Ox.CollapsePanel.js | 2 ++ source/Ox.UI/js/Panel/Ox.Panel.js | 2 ++ source/Ox.UI/js/Panel/Ox.SplitPanel.js | 1 + source/Ox.UI/js/Panel/Ox.TabPanel.js | 1 + source/Ox.UI/js/Video/Ox.AnnotationPanel.js | 2 ++ source/Ox.UI/js/Video/Ox.BlockTimeline.js | 2 ++ source/Ox.UI/js/Video/Ox.BlockVideoTimeline.js | 2 ++ source/Ox.UI/js/Video/Ox.LargeTimeline.js | 2 ++ source/Ox.UI/js/Video/Ox.LargeVideoTimeline.js | 2 ++ source/Ox.UI/js/Video/Ox.SmallTimeline.js | 2 ++ source/Ox.UI/js/Video/Ox.SmallVideoTimeline.js | 2 ++ .../js/Video/Ox.SmallVideoTimelineImage.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoEditor.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoElement.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoPlayer.js | 2 ++ source/Ox.UI/js/Video/Ox.VideoPreview.js | 2 ++ source/Ox.UI/js/Window/Ox.Dialog.js | 1 + source/Ox.UI/js/Window/Ox.Layer.js | 2 ++ source/Ox.UI/js/Window/Ox.Tooltip.js | 2 ++ source/Ox.Unicode/Ox.Unicode.js | 2 ++ source/Ox.js | 4 +++- source/Ox/js/Array.js | 2 ++ source/Ox/js/Collection.js | 2 ++ source/Ox/js/Color.js | 2 ++ source/Ox/js/Constants.js | 2 ++ source/Ox/js/Core.js | 17 ++++++++++++----- source/Ox/js/DOM.js | 4 +++- source/Ox/js/Date.js | 2 ++ source/Ox/js/Encoding.js | 2 ++ source/Ox/js/Fallback.js | 2 ++ source/Ox/js/Format.js | 3 ++- source/Ox/js/Geo.js | 2 ++ source/Ox/js/HTML.js | 2 ++ source/Ox/js/JavaScript.js | 2 ++ source/Ox/js/Math.js | 2 ++ source/Ox/js/Object.js | 2 ++ source/Ox/js/Request.js | 4 +++- source/Ox/js/String.js | 2 ++ source/Ox/js/Type.js | 2 ++ 113 files changed, 207 insertions(+), 15 deletions(-) diff --git a/source/Ox.Geo/Ox.Geo.js b/source/Ox.Geo/Ox.Geo.js index 763c0a3e..1f31941b 100644 --- a/source/Ox.Geo/Ox.Geo.js +++ b/source/Ox.Geo/Ox.Geo.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.load.Geo = function(options, callback) { Ox.getJSON(Ox.PATH + 'Ox.Geo/json/Ox.Geo.json', function(data) { diff --git a/source/Ox.Image/Ox.Image.js b/source/Ox.Image/Ox.Image.js index ac7812ec..04e85683 100644 --- a/source/Ox.Image/Ox.Image.js +++ b/source/Ox.Image/Ox.Image.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.load.Image = function(options, callback) { //@ Image ------------------------------------------------------------------ diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 34250a02..5520fffa 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.load.UI = function(options, callback) { options = Ox.extend({ @@ -250,7 +252,7 @@ Ox.load.UI = function(options, callback) { callbacks.forEach(function(callback) { callback(); }); - delete callbacks; + //delete callbacks; }); return function(callback) { if (Ox.UI.$window) { diff --git a/source/Ox.UI/js/Bar/Ox.Bar.js b/source/Ox.UI/js/Bar/Ox.Bar.js index 772a9c91..795770da 100644 --- a/source/Ox.UI/js/Bar/Ox.Bar.js +++ b/source/Ox.UI/js/Bar/Ox.Bar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Bar Bar () -> Bar object diff --git a/source/Ox.UI/js/Bar/Ox.Progressbar.js b/source/Ox.UI/js/Bar/Ox.Progressbar.js index 8732492e..59b77545 100644 --- a/source/Ox.UI/js/Bar/Ox.Progressbar.js +++ b/source/Ox.UI/js/Bar/Ox.Progressbar.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.Progressbar = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Bar/Ox.Resizebar.js b/source/Ox.UI/js/Bar/Ox.Resizebar.js index cbb8a2e0..c23ced3b 100644 --- a/source/Ox.UI/js/Bar/Ox.Resizebar.js +++ b/source/Ox.UI/js/Bar/Ox.Resizebar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Resizebar Resizebar () -> Resizebar object diff --git a/source/Ox.UI/js/Bar/Ox.Tabbar.js b/source/Ox.UI/js/Bar/Ox.Tabbar.js index 87e372c7..a6f38b6d 100644 --- a/source/Ox.UI/js/Bar/Ox.Tabbar.js +++ b/source/Ox.UI/js/Bar/Ox.Tabbar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Tabbar Tabbar () -> Tabbar object diff --git a/source/Ox.UI/js/Bar/Ox.Toolbar.js b/source/Ox.UI/js/Bar/Ox.Toolbar.js index 946357ef..9f930295 100644 --- a/source/Ox.UI/js/Bar/Ox.Toolbar.js +++ b/source/Ox.UI/js/Bar/Ox.Toolbar.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /** fixme: no need for this */ diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index d306399c..c844dfad 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Calendar Basic calendar object () -> Calendar object diff --git a/source/Ox.UI/js/Calendar/Ox.CalendarDate.js b/source/Ox.UI/js/Calendar/Ox.CalendarDate.js index fa4164a6..ba72edc2 100644 --- a/source/Ox.UI/js/Calendar/Ox.CalendarDate.js +++ b/source/Ox.UI/js/Calendar/Ox.CalendarDate.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.CalendarDate CalendarDate () -> CalendarData object diff --git a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js index 9bdf448b..8e440895 100644 --- a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js +++ b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.ListCalendar ListCalendar object @*/ diff --git a/source/Ox.UI/js/Core/Ox.App.js b/source/Ox.UI/js/Core/Ox.App.js index bb070338..2d6a4ee8 100644 --- a/source/Ox.UI/js/Core/Ox.App.js +++ b/source/Ox.UI/js/Core/Ox.App.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.App Basic application instance that communicates with a JSON API () -> App object diff --git a/source/Ox.UI/js/Core/Ox.Clipboard.js b/source/Ox.UI/js/Core/Ox.Clipboard.js index dcc8bcd0..75949013 100644 --- a/source/Ox.UI/js/Core/Ox.Clipboard.js +++ b/source/Ox.UI/js/Core/Ox.Clipboard.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Clipboard Basic clipboard handler copy Copy data to clipboard diff --git a/source/Ox.UI/js/Core/Ox.Container.js b/source/Ox.UI/js/Core/Ox.Container.js index 1b616955..1ac04f3d 100644 --- a/source/Ox.UI/js/Core/Ox.Container.js +++ b/source/Ox.UI/js/Core/Ox.Container.js @@ -1,9 +1,9 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; // fixme: wouldn't it be better to let the elements be, // rather then $element, $content, and potentially others, // 0, 1, 2, etc, so that append would append 0, and appendTo // would append (length - 1)? - /*@ Ox.Container Container (depricated) () -> Container object diff --git a/source/Ox.UI/js/Core/Ox.DocPage.js b/source/Ox.UI/js/Core/Ox.DocPage.js index c7c74ab8..d94cd124 100644 --- a/source/Ox.UI/js/Core/Ox.DocPage.js +++ b/source/Ox.UI/js/Core/Ox.DocPage.js @@ -1,3 +1,4 @@ +'use strict'; /*@ Ox.DocPage DocPage () -> DocPage object diff --git a/source/Ox.UI/js/Core/Ox.DocPanel.js b/source/Ox.UI/js/Core/Ox.DocPanel.js index 5320cc08..1101a07d 100644 --- a/source/Ox.UI/js/Core/Ox.DocPanel.js +++ b/source/Ox.UI/js/Core/Ox.DocPanel.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.DocPanel Documentation Panel () -> Documentation Panel diff --git a/source/Ox.UI/js/Core/Ox.Element.js b/source/Ox.UI/js/Core/Ox.Element.js index 53c5970d..cf160f56 100644 --- a/source/Ox.UI/js/Core/Ox.Element.js +++ b/source/Ox.UI/js/Core/Ox.Element.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Element Basic UI element object # Usage -------------------------------------------------------------------- diff --git a/source/Ox.UI/js/Core/Ox.Event.js b/source/Ox.UI/js/Core/Ox.Event.js index 8f8fc6b1..5a33bf34 100644 --- a/source/Ox.UI/js/Core/Ox.Event.js +++ b/source/Ox.UI/js/Core/Ox.Event.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.Event Basic event handler @*/ diff --git a/source/Ox.UI/js/Core/Ox.Focus.js b/source/Ox.UI/js/Core/Ox.Focus.js index 2c89e73a..2c021a4c 100644 --- a/source/Ox.UI/js/Core/Ox.Focus.js +++ b/source/Ox.UI/js/Core/Ox.Focus.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Focus Basic focus handler @*/ diff --git a/source/Ox.UI/js/Core/Ox.History.js b/source/Ox.UI/js/Core/Ox.History.js index 0ab160a7..2eb8c4c9 100644 --- a/source/Ox.UI/js/Core/Ox.History.js +++ b/source/Ox.UI/js/Core/Ox.History.js @@ -2,4 +2,5 @@ /*** Ox.History ***/ +'use strict'; diff --git a/source/Ox.UI/js/Core/Ox.JQueryElement.js b/source/Ox.UI/js/Core/Ox.JQueryElement.js index 780cf7a1..b1dd2c38 100644 --- a/source/Ox.UI/js/Core/Ox.JQueryElement.js +++ b/source/Ox.UI/js/Core/Ox.JQueryElement.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.JQueryElement Wrapper for jQuery # Usage diff --git a/source/Ox.UI/js/Core/Ox.Keyboard.js b/source/Ox.UI/js/Core/Ox.Keyboard.js index eac2edef..951705e9 100644 --- a/source/Ox.UI/js/Core/Ox.Keyboard.js +++ b/source/Ox.UI/js/Core/Ox.Keyboard.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Keyboard Basic keyboard handler @*/ diff --git a/source/Ox.UI/js/Core/Ox.LoadingIcon.js b/source/Ox.UI/js/Core/Ox.LoadingIcon.js index a0b3bacf..21c9cd79 100644 --- a/source/Ox.UI/js/Core/Ox.LoadingIcon.js +++ b/source/Ox.UI/js/Core/Ox.LoadingIcon.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.LoadingIcon Loading Icon Element () -> Loading Icon Element diff --git a/source/Ox.UI/js/Core/Ox.Progressbar.js b/source/Ox.UI/js/Core/Ox.Progressbar.js index 6b93946d..d03a38e5 100644 --- a/source/Ox.UI/js/Core/Ox.Progressbar.js +++ b/source/Ox.UI/js/Core/Ox.Progressbar.js @@ -1,5 +1,6 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /** Ox.Progressbar */ - +// FIXME: remove this! \ No newline at end of file diff --git a/source/Ox.UI/js/Core/Ox.Request.js b/source/Ox.UI/js/Core/Ox.Request.js index 32c79f80..ebe666c3 100644 --- a/source/Ox.UI/js/Core/Ox.Request.js +++ b/source/Ox.UI/js/Core/Ox.Request.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Request Basic request handler object FIXME: options is not a property, just documenting defaults diff --git a/source/Ox.UI/js/Core/Ox.SyntaxHighlighter.js b/source/Ox.UI/js/Core/Ox.SyntaxHighlighter.js index b313515f..3abb83d9 100644 --- a/source/Ox.UI/js/Core/Ox.SyntaxHighlighter.js +++ b/source/Ox.UI/js/Core/Ox.SyntaxHighlighter.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.SyntaxHighlighter Syntax Highlighter (options[, self]) -> Syntax Highlighter diff --git a/source/Ox.UI/js/Core/Ox.Theme.js b/source/Ox.UI/js/Core/Ox.Theme.js index 7b09b6c0..7efedfa5 100644 --- a/source/Ox.UI/js/Core/Ox.Theme.js +++ b/source/Ox.UI/js/Core/Ox.Theme.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Theme get/set theme () -> Get current theme diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 6467e0ce..e10b0a49 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.URL URL controller (options) -> URL controller diff --git a/source/Ox.UI/js/Form/Ox.ArrayInput.js b/source/Ox.UI/js/Form/Ox.ArrayInput.js index 90467a02..33f5a101 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayInput.js +++ b/source/Ox.UI/js/Form/Ox.ArrayInput.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.ArrayInput Array input @*/ diff --git a/source/Ox.UI/js/Form/Ox.Button.js b/source/Ox.UI/js/Form/Ox.Button.js index d128f558..797f101f 100644 --- a/source/Ox.UI/js/Form/Ox.Button.js +++ b/source/Ox.UI/js/Form/Ox.Button.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Button Button Object () -> Button Object diff --git a/source/Ox.UI/js/Form/Ox.ButtonGroup.js b/source/Ox.UI/js/Form/Ox.ButtonGroup.js index 0615277a..7ba2e6a0 100644 --- a/source/Ox.UI/js/Form/Ox.ButtonGroup.js +++ b/source/Ox.UI/js/Form/Ox.ButtonGroup.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.ButtonGroup ButtonGroup Object () -> ButtonGroup Object diff --git a/source/Ox.UI/js/Form/Ox.Checkbox.js b/source/Ox.UI/js/Form/Ox.Checkbox.js index d723222a..ce8674ab 100644 --- a/source/Ox.UI/js/Form/Ox.Checkbox.js +++ b/source/Ox.UI/js/Form/Ox.Checkbox.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Checkbox Checkbox Element () -> Checkbox Element diff --git a/source/Ox.UI/js/Form/Ox.CheckboxGroup.js b/source/Ox.UI/js/Form/Ox.CheckboxGroup.js index 29bed633..f6cd2bba 100644 --- a/source/Ox.UI/js/Form/Ox.CheckboxGroup.js +++ b/source/Ox.UI/js/Form/Ox.CheckboxGroup.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.CheckboxGroup CheckboxGroup Object () -> CheckboxGroup Object diff --git a/source/Ox.UI/js/Form/Ox.ColorInput.js b/source/Ox.UI/js/Form/Ox.ColorInput.js index 65595688..7adf00e1 100644 --- a/source/Ox.UI/js/Form/Ox.ColorInput.js +++ b/source/Ox.UI/js/Form/Ox.ColorInput.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.ColorInput ColorInput Element () -> ColorInput Element diff --git a/source/Ox.UI/js/Form/Ox.ColorPicker.js b/source/Ox.UI/js/Form/Ox.ColorPicker.js index ca446631..3e473b12 100644 --- a/source/Ox.UI/js/Form/Ox.ColorPicker.js +++ b/source/Ox.UI/js/Form/Ox.ColorPicker.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; /*@ Ox.ColorPicker ColorPicker Element () -> ColorPicker Element diff --git a/source/Ox.UI/js/Form/Ox.DateInput.js b/source/Ox.UI/js/Form/Ox.DateInput.js index 821d5a61..969b93d9 100644 --- a/source/Ox.UI/js/Form/Ox.DateInput.js +++ b/source/Ox.UI/js/Form/Ox.DateInput.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; /*@ Ox.DateInput DateInput Element () -> DateInput Element diff --git a/source/Ox.UI/js/Form/Ox.DateTimeInput.js b/source/Ox.UI/js/Form/Ox.DateTimeInput.js index 2d71cb6d..08722a45 100644 --- a/source/Ox.UI/js/Form/Ox.DateTimeInput.js +++ b/source/Ox.UI/js/Form/Ox.DateTimeInput.js @@ -1,5 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript - +'use strict'; /*@ Ox.DateTimeInput DateTimeInput Element () -> DateTimeInput Element diff --git a/source/Ox.UI/js/Form/Ox.Editable.js b/source/Ox.UI/js/Form/Ox.Editable.js index c638a0d8..58c4c7c5 100644 --- a/source/Ox.UI/js/Form/Ox.Editable.js +++ b/source/Ox.UI/js/Form/Ox.Editable.js @@ -1,3 +1,4 @@ +'use strict'; /*@ Ox.Editable Editable element () -> Input Element diff --git a/source/Ox.UI/js/Form/Ox.Filter.js b/source/Ox.UI/js/Form/Ox.Filter.js index 25fcc2f8..90ed2fe5 100644 --- a/source/Ox.UI/js/Form/Ox.Filter.js +++ b/source/Ox.UI/js/Form/Ox.Filter.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Filter Filter Object () -> Filter Object diff --git a/source/Ox.UI/js/Form/Ox.Form.js b/source/Ox.UI/js/Form/Ox.Form.js index 6c45a855..33bdd424 100644 --- a/source/Ox.UI/js/Form/Ox.Form.js +++ b/source/Ox.UI/js/Form/Ox.Form.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Form Form Object () -> Form Object diff --git a/source/Ox.UI/js/Form/Ox.FormElementGroup.js b/source/Ox.UI/js/Form/Ox.FormElementGroup.js index d41d08f3..0b2294ec 100644 --- a/source/Ox.UI/js/Form/Ox.FormElementGroup.js +++ b/source/Ox.UI/js/Form/Ox.FormElementGroup.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.FormElementGroup FormElementGroup Element () -> FormElementGroup Element diff --git a/source/Ox.UI/js/Form/Ox.FormItem.js b/source/Ox.UI/js/Form/Ox.FormItem.js index cc482666..2ac129e8 100644 --- a/source/Ox.UI/js/Form/Ox.FormItem.js +++ b/source/Ox.UI/js/Form/Ox.FormItem.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.FormItem FormItem Element, wrap form element with an error message () -> FormItem Element diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index 5bcb7622..213f6df2 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Input Input Element () -> Input Element diff --git a/source/Ox.UI/js/Form/Ox.InputGroup.js b/source/Ox.UI/js/Form/Ox.InputGroup.js index 585534a7..b78cff33 100644 --- a/source/Ox.UI/js/Form/Ox.InputGroup.js +++ b/source/Ox.UI/js/Form/Ox.InputGroup.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.InputGroup InputGroup Object () -> InputGroup Object diff --git a/source/Ox.UI/js/Form/Ox.Label.js b/source/Ox.UI/js/Form/Ox.Label.js index 57705e77..91876d5d 100644 --- a/source/Ox.UI/js/Form/Ox.Label.js +++ b/source/Ox.UI/js/Form/Ox.Label.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Label Label Object () -> Label Object diff --git a/source/Ox.UI/js/Form/Ox.OptionGroup.js b/source/Ox.UI/js/Form/Ox.OptionGroup.js index a81f5be5..23b2d0d0 100644 --- a/source/Ox.UI/js/Form/Ox.OptionGroup.js +++ b/source/Ox.UI/js/Form/Ox.OptionGroup.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.OptionGroup OptionGroup Helper object, used by ButtonGroup, CheckboxGroup, Select and Menu diff --git a/source/Ox.UI/js/Form/Ox.Picker.js b/source/Ox.UI/js/Form/Ox.Picker.js index 3c19fefa..7253534f 100644 --- a/source/Ox.UI/js/Form/Ox.Picker.js +++ b/source/Ox.UI/js/Form/Ox.Picker.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Picker Picker Object () -> Picker Object diff --git a/source/Ox.UI/js/Form/Ox.PlaceInput.js b/source/Ox.UI/js/Form/Ox.PlaceInput.js index 72279e20..2d81d9d6 100644 --- a/source/Ox.UI/js/Form/Ox.PlaceInput.js +++ b/source/Ox.UI/js/Form/Ox.PlaceInput.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.PlaceInput PlaceInput Object () -> PlaceInput Object diff --git a/source/Ox.UI/js/Form/Ox.PlacePicker.js b/source/Ox.UI/js/Form/Ox.PlacePicker.js index 35c18e89..568da32f 100644 --- a/source/Ox.UI/js/Form/Ox.PlacePicker.js +++ b/source/Ox.UI/js/Form/Ox.PlacePicker.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.PlacePicker PlacePicker Object () -> PlacePicker Object diff --git a/source/Ox.UI/js/Form/Ox.Range.js b/source/Ox.UI/js/Form/Ox.Range.js index 04461f5e..6c7695b5 100644 --- a/source/Ox.UI/js/Form/Ox.Range.js +++ b/source/Ox.UI/js/Form/Ox.Range.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Range Range Object () -> Range Object diff --git a/source/Ox.UI/js/Form/Ox.Select.js b/source/Ox.UI/js/Form/Ox.Select.js index 36ea4de3..a48b3978 100644 --- a/source/Ox.UI/js/Form/Ox.Select.js +++ b/source/Ox.UI/js/Form/Ox.Select.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Select Select Object () -> Select Object diff --git a/source/Ox.UI/js/Form/Ox.TimeInput.js b/source/Ox.UI/js/Form/Ox.TimeInput.js index e4127eaa..31563210 100644 --- a/source/Ox.UI/js/Form/Ox.TimeInput.js +++ b/source/Ox.UI/js/Form/Ox.TimeInput.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.TimeInput TimeInput Object () -> TimeInput Object diff --git a/source/Ox.UI/js/List/Ox.IconItem.js b/source/Ox.UI/js/List/Ox.IconItem.js index 8f1fc919..8b1f590e 100644 --- a/source/Ox.UI/js/List/Ox.IconItem.js +++ b/source/Ox.UI/js/List/Ox.IconItem.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +'use strict'; + /*@ Ox.IconItem IconItem Object () -> IconItem Object diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index 061a7039..6368d439 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=js +'use strict'; /*@ Ox.IconList IconList Object () -> IconList Object diff --git a/source/Ox.UI/js/List/Ox.InfoList.js b/source/Ox.UI/js/List/Ox.InfoList.js index e98dffc6..7e3b3aa3 100644 --- a/source/Ox.UI/js/List/Ox.InfoList.js +++ b/source/Ox.UI/js/List/Ox.InfoList.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.InfoList = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/List/Ox.ItemInput.js b/source/Ox.UI/js/List/Ox.ItemInput.js index eeb7fe2a..a7aacbe4 100644 --- a/source/Ox.UI/js/List/Ox.ItemInput.js +++ b/source/Ox.UI/js/List/Ox.ItemInput.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.ItemInput ItemInput Object () -> ItemInput Object diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 684d5236..493994ea 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.List List Element () -> List Object diff --git a/source/Ox.UI/js/List/Ox.ListItem.js b/source/Ox.UI/js/List/Ox.ListItem.js index 47bb0c46..f2e07634 100644 --- a/source/Ox.UI/js/List/Ox.ListItem.js +++ b/source/Ox.UI/js/List/Ox.ListItem.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.ListItem ListItem Object () -> ListItem Object diff --git a/source/Ox.UI/js/List/Ox.ListPage.js b/source/Ox.UI/js/List/Ox.ListPage.js index 274164e3..deaf7a7c 100644 --- a/source/Ox.UI/js/List/Ox.ListPage.js +++ b/source/Ox.UI/js/List/Ox.ListPage.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.ListPage ListPage Object () -> ListPage Object diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index d028cddf..79a43420 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.TextList TextList Object () -> TextList Object diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index 9efd552c..3e539e72 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.TreeList TreeList Object () -> TreeList Object diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index c0a42391..cfb233ef 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.ListMap ListMap object () -> ListMap object diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index 94f8ab5d..d38a101d 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Map Basic map object # DESCRIPTION -------------------------------------------------------------- diff --git a/source/Ox.UI/js/Map/Ox.MapImage.js b/source/Ox.UI/js/Map/Ox.MapImage.js index f8c9de6f..7f74e24c 100644 --- a/source/Ox.UI/js/Map/Ox.MapImage.js +++ b/source/Ox.UI/js/Map/Ox.MapImage.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapImage MapImage Object () -> MapImage Object diff --git a/source/Ox.UI/js/Map/Ox.MapMarker.js b/source/Ox.UI/js/Map/Ox.MapMarker.js index dcfdbc3c..fb5c5019 100644 --- a/source/Ox.UI/js/Map/Ox.MapMarker.js +++ b/source/Ox.UI/js/Map/Ox.MapMarker.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapMarker MapMarker Object (options) -> MapMarker Object diff --git a/source/Ox.UI/js/Map/Ox.MapMarkerImage.js b/source/Ox.UI/js/Map/Ox.MapMarkerImage.js index 4dfb29c4..f3e30d59 100644 --- a/source/Ox.UI/js/Map/Ox.MapMarkerImage.js +++ b/source/Ox.UI/js/Map/Ox.MapMarkerImage.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapMarkerImage MapMarkerImage Object (options) -> google.maps.MarkerImage diff --git a/source/Ox.UI/js/Map/Ox.MapPlace.js b/source/Ox.UI/js/Map/Ox.MapPlace.js index d9d11d9d..8b384616 100644 --- a/source/Ox.UI/js/Map/Ox.MapPlace.js +++ b/source/Ox.UI/js/Map/Ox.MapPlace.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapPlace MapPlace Object (options) -> MapPlace Object diff --git a/source/Ox.UI/js/Map/Ox.MapRectangle.js b/source/Ox.UI/js/Map/Ox.MapRectangle.js index d7a36899..2634e0cf 100644 --- a/source/Ox.UI/js/Map/Ox.MapRectangle.js +++ b/source/Ox.UI/js/Map/Ox.MapRectangle.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapRectangle MapRectangle Object () -> MapRectangle Object diff --git a/source/Ox.UI/js/Map/Ox.MapRectangleMarker.js b/source/Ox.UI/js/Map/Ox.MapRectangleMarker.js index db53ad70..0cec3c6e 100644 --- a/source/Ox.UI/js/Map/Ox.MapRectangleMarker.js +++ b/source/Ox.UI/js/Map/Ox.MapRectangleMarker.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MapRectangleMarker MapRectangleMarker Object () -> MapRectangleMarker Object diff --git a/source/Ox.UI/js/Menu/Ox.MainMenu.js b/source/Ox.UI/js/Menu/Ox.MainMenu.js index 1d1d79b7..04fb3b24 100644 --- a/source/Ox.UI/js/Menu/Ox.MainMenu.js +++ b/source/Ox.UI/js/Menu/Ox.MainMenu.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.MainMenu MainMenu Object () -> MainMenu Object diff --git a/source/Ox.UI/js/Menu/Ox.Menu.js b/source/Ox.UI/js/Menu/Ox.Menu.js index 4f51772a..38523f27 100644 --- a/source/Ox.UI/js/Menu/Ox.Menu.js +++ b/source/Ox.UI/js/Menu/Ox.Menu.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Menu Menu Object () -> Menu Object diff --git a/source/Ox.UI/js/Menu/Ox.MenuItem.js b/source/Ox.UI/js/Menu/Ox.MenuItem.js index 08b3e58b..f1e93e79 100644 --- a/source/Ox.UI/js/Menu/Ox.MenuItem.js +++ b/source/Ox.UI/js/Menu/Ox.MenuItem.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.MenuItem MenuItem Object () -> MenuItem Object diff --git a/source/Ox.UI/js/Panel/Ox.CollapsePanel.js b/source/Ox.UI/js/Panel/Ox.CollapsePanel.js index ef8b2915..01aed3d0 100644 --- a/source/Ox.UI/js/Panel/Ox.CollapsePanel.js +++ b/source/Ox.UI/js/Panel/Ox.CollapsePanel.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.CollapsePanel CollapsePanel Object () -> CollapsePanel Object diff --git a/source/Ox.UI/js/Panel/Ox.Panel.js b/source/Ox.UI/js/Panel/Ox.Panel.js index ce258cac..fd2511bd 100644 --- a/source/Ox.UI/js/Panel/Ox.Panel.js +++ b/source/Ox.UI/js/Panel/Ox.Panel.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Panel Panel Object () -> Panel Object diff --git a/source/Ox.UI/js/Panel/Ox.SplitPanel.js b/source/Ox.UI/js/Panel/Ox.SplitPanel.js index 4a8bb2d7..9f0598f6 100644 --- a/source/Ox.UI/js/Panel/Ox.SplitPanel.js +++ b/source/Ox.UI/js/Panel/Ox.SplitPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.SplitPanel SpliPanel Object () -> SpliPanel Object diff --git a/source/Ox.UI/js/Panel/Ox.TabPanel.js b/source/Ox.UI/js/Panel/Ox.TabPanel.js index 884f888a..6ce45070 100644 --- a/source/Ox.UI/js/Panel/Ox.TabPanel.js +++ b/source/Ox.UI/js/Panel/Ox.TabPanel.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; Ox.TabPanel = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js index f5cc50e9..e1e9dd08 100644 --- a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js +++ b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.AnnotationPanel AnnotationPanel Object () -> AnnotationPanel Object diff --git a/source/Ox.UI/js/Video/Ox.BlockTimeline.js b/source/Ox.UI/js/Video/Ox.BlockTimeline.js index 9f9a0576..91781b4a 100644 --- a/source/Ox.UI/js/Video/Ox.BlockTimeline.js +++ b/source/Ox.UI/js/Video/Ox.BlockTimeline.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.BlockTimeline BlockTimeline Object () -> BlockTimeline Object diff --git a/source/Ox.UI/js/Video/Ox.BlockVideoTimeline.js b/source/Ox.UI/js/Video/Ox.BlockVideoTimeline.js index 2e3fc858..4607738b 100644 --- a/source/Ox.UI/js/Video/Ox.BlockVideoTimeline.js +++ b/source/Ox.UI/js/Video/Ox.BlockVideoTimeline.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + Ox.BlockVideoTimeline = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Video/Ox.LargeTimeline.js b/source/Ox.UI/js/Video/Ox.LargeTimeline.js index 9ef9639d..48fb58b2 100644 --- a/source/Ox.UI/js/Video/Ox.LargeTimeline.js +++ b/source/Ox.UI/js/Video/Ox.LargeTimeline.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.LargeTimeline LargeTimeline Object () -> LargeTimeline Object diff --git a/source/Ox.UI/js/Video/Ox.LargeVideoTimeline.js b/source/Ox.UI/js/Video/Ox.LargeVideoTimeline.js index a011ee26..c0849f58 100644 --- a/source/Ox.UI/js/Video/Ox.LargeVideoTimeline.js +++ b/source/Ox.UI/js/Video/Ox.LargeVideoTimeline.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.LargeVideoTimeline LargeTimeline Object () -> LargeTimeline Object diff --git a/source/Ox.UI/js/Video/Ox.SmallTimeline.js b/source/Ox.UI/js/Video/Ox.SmallTimeline.js index 40764a0a..5918d72a 100644 --- a/source/Ox.UI/js/Video/Ox.SmallTimeline.js +++ b/source/Ox.UI/js/Video/Ox.SmallTimeline.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.SmallTimeline SmallTimeline Object () -> SmallTimeline Object diff --git a/source/Ox.UI/js/Video/Ox.SmallVideoTimeline.js b/source/Ox.UI/js/Video/Ox.SmallVideoTimeline.js index cc46b665..3467881b 100644 --- a/source/Ox.UI/js/Video/Ox.SmallVideoTimeline.js +++ b/source/Ox.UI/js/Video/Ox.SmallVideoTimeline.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.SmallVideoTimeline = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js b/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js index d67ccdce..1ab470bc 100644 --- a/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js +++ b/source/Ox.UI/js/Video/Ox.SmallVideoTimelineImage.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.SmallVideoTimelineImage = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index 3ecfa43b..cab0f7af 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.VideoEditor VideoEditor Object () -> VideoEditor Object diff --git a/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js b/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js index 1a8c5ad7..0d0120a4 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditorPlayer.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.VideoEditorPlayer VideoEditorPlayer Object () -> VideoEditorPlayer Object diff --git a/source/Ox.UI/js/Video/Ox.VideoElement.js b/source/Ox.UI/js/Video/Ox.VideoElement.js index 7a20c5be..d50e1331 100644 --- a/source/Ox.UI/js/Video/Ox.VideoElement.js +++ b/source/Ox.UI/js/Video/Ox.VideoElement.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.VideoElement VideoElement Object () -> VideoElement Object diff --git a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js index afb4be01..8ca0e306 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPanelPlayer.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.VideoPanelPlayer VideoPanelPlayer Object () -> VideoPanelPlayer Object diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 3cfcbc6e..c2bc381c 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.VideoPlayer Generic Video Player (options, self) -> Video Player diff --git a/source/Ox.UI/js/Video/Ox.VideoPreview.js b/source/Ox.UI/js/Video/Ox.VideoPreview.js index 849fe893..24edd38a 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPreview.js +++ b/source/Ox.UI/js/Video/Ox.VideoPreview.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + Ox.VideoPreview = function(options, self) { self = self || {}; diff --git a/source/Ox.UI/js/Window/Ox.Dialog.js b/source/Ox.UI/js/Window/Ox.Dialog.js index 359766d0..56617790 100644 --- a/source/Ox.UI/js/Window/Ox.Dialog.js +++ b/source/Ox.UI/js/Window/Ox.Dialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; /*@ Ox.Dialog Dialog object () -> Dialog object diff --git a/source/Ox.UI/js/Window/Ox.Layer.js b/source/Ox.UI/js/Window/Ox.Layer.js index 66a46b60..257408bd 100644 --- a/source/Ox.UI/js/Window/Ox.Layer.js +++ b/source/Ox.UI/js/Window/Ox.Layer.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Layer Background layer for dialogs and menus (options, self) -> Layer diff --git a/source/Ox.UI/js/Window/Ox.Tooltip.js b/source/Ox.UI/js/Window/Ox.Tooltip.js index 46176516..944feaf6 100644 --- a/source/Ox.UI/js/Window/Ox.Tooltip.js +++ b/source/Ox.UI/js/Window/Ox.Tooltip.js @@ -1,5 +1,7 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; + /*@ Ox.Tooltip Tooltip Object () -> Tooltip Object diff --git a/source/Ox.Unicode/Ox.Unicode.js b/source/Ox.Unicode/Ox.Unicode.js index f788cb7c..3370b9ba 100644 --- a/source/Ox.Unicode/Ox.Unicode.js +++ b/source/Ox.Unicode/Ox.Unicode.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.load.Unicode = function(options, callback) { Ox.getJSON(Ox.PATH + 'Ox.Unicode/json/Ox.Unicode.json', function(chars) { diff --git a/source/Ox.js b/source/Ox.js index f0995b1b..e7f8ac65 100644 --- a/source/Ox.js +++ b/source/Ox.js @@ -1,3 +1,5 @@ +'use strict'; + // Ox.js Developer Version /* @@ -8,7 +10,7 @@ Usage: Ox.load({module: options, module: options}, callback) */ -Ox = { +window.Ox = { load: function() { diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index 26153e58..054b6ffd 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.compact Returns an array w/o null or undefined > Ox.compact([null,,1,,2,,3]) diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index b5b1b1f1..4f9c9d70 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.avg Returns the average of an array's values, or an object's properties (collection) -> Average value diff --git a/source/Ox/js/Color.js b/source/Ox/js/Color.js index 0e99abff..16588b50 100644 --- a/source/Ox/js/Color.js +++ b/source/Ox/js/Color.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.hsl Takes RGB values and returns HSL values (rgb) <[n]> HSL values diff --git a/source/Ox/js/Constants.js b/source/Ox/js/Constants.js index 9353ae2f..ccdc2af3 100644 --- a/source/Ox/js/Constants.js +++ b/source/Ox/js/Constants.js @@ -1,3 +1,5 @@ +'use strict'; + //@ Ox.AMPM <[str]> ['AM', 'PM'] Ox.AMPM = ['AM', 'PM']; //@ Ox.BASE_32_ALIASES Base 32 aliases diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index 9417bc32..cfca5c1a 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -2,6 +2,8 @@ // OxJS (c) 2011 0x2620, dual-licensed GPL/MIT, see http://oxjs.org for details +'use strict'; + /* Some conventions: Functions @@ -113,6 +115,7 @@ Ox.load = function() { length = Ox.len(modules); Ox.forEach(modules, function(options, module) { Ox.loadFile(Ox.PATH + 'Ox.' + module + '/Ox.' + module + '.js', function() { + Ox.print('?', module) Ox.load[module](options, function(s) { success += s; ++counter == length && callback(success == counter); @@ -172,9 +175,9 @@ Ox.Log = (function() { if (!log.filterEnabled || log.filter.indexOf(args[0]) > -1) { date = new Date(); args.unshift( - Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().substr(-3), + Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().substr(-3)/*, (arguments.callee.caller && arguments.callee.caller.name) - || '(anonymous)' + || '(anonymous)'*/ ); window.console && window.console.log.apply(window.console, args); ret = args.join(' '); @@ -198,9 +201,9 @@ Ox.print = function() { var args = Ox.makeArray(arguments), date = new Date(); args.unshift( - Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().substr(-3), + Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().substr(-3)/*, (arguments.callee.caller && arguments.callee.caller.name) - || '(anonymous)' + || '(anonymous)'*/ ); window.console && window.console.log.apply(window.console, args); return args.join(' '); @@ -248,7 +251,11 @@ Ox.wrap = function(val, chained) { } }; Object.getOwnPropertyNames(Ox).forEach(function(name) { - if (name[0] == name[0].toLowerCase() && Ox.isFunction(Ox[name])) { + if ( + ['arguments', 'callee', 'caller', 'length'].indexOf(name) == -1 + && name[0] == name[0].toLowerCase() + && Ox.isFunction(Ox[name]) + ) { wrapper[name] = function() { var args = Array.prototype.slice.call(arguments), ret; args.unshift(val); diff --git a/source/Ox/js/DOM.js b/source/Ox/js/DOM.js index 38a2931c..bac0b2a3 100644 --- a/source/Ox/js/DOM.js +++ b/source/Ox/js/DOM.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.canvas Generic canvas object Returns an object with the properties: canvas, @@ -39,7 +41,7 @@ Ox.documentReady = (function() { callbacks.forEach(function(callback) { callback(); }); - delete callbacks; + //delete callbacks; } }; return function(callback) { diff --git a/source/Ox/js/Date.js b/source/Ox/js/Date.js index c9748a69..171bbe30 100644 --- a/source/Ox/js/Date.js +++ b/source/Ox/js/Date.js @@ -1,3 +1,5 @@ +'use strict'; + //@ Ox.getDate Get the day of a date, optionally UTC // see Ox.setSeconds for source code diff --git a/source/Ox/js/Encoding.js b/source/Ox/js/Encoding.js index 711151ef..81a7e256 100644 --- a/source/Ox/js/Encoding.js +++ b/source/Ox/js/Encoding.js @@ -1,3 +1,5 @@ +'use strict'; + (function() { function cap(width, height) { diff --git a/source/Ox/js/Fallback.js b/source/Ox/js/Fallback.js index eeef503c..e21cb7b1 100644 --- a/source/Ox/js/Fallback.js +++ b/source/Ox/js/Fallback.js @@ -1,3 +1,5 @@ +'use strict'; + // see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter if (!Array.prototype.filter) { Array.prototype.filter = function(fn, that) { diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index a489e3c1..d0ff62d5 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.formatArea Formats a number of meters as square meters or kilometers > Ox.formatArea(1000) @@ -268,7 +270,6 @@ Ox.formatDateRange = function(start, end, utc) { if (isOneUnit) { strings = [Ox.formatDate(dates[0], formats[precision[0] - 1], utc)]; } else { - format = formats[precision[0] - 1]; strings = [ Ox.formatDate(dates[0], formats[precision[0] - 1], utc), Ox.formatDate(dates[1], formats[precision[1] - 1], utc) diff --git a/source/Ox/js/Geo.js b/source/Ox/js/Geo.js index 6e04d2b0..5e931b62 100644 --- a/source/Ox/js/Geo.js +++ b/source/Ox/js/Geo.js @@ -1,3 +1,5 @@ +'use strict'; + (function() { // fixme: make all this work with different types of "points" diff --git a/source/Ox/js/HTML.js b/source/Ox/js/HTML.js index 5ec5de0c..6ef08898 100644 --- a/source/Ox/js/HTML.js +++ b/source/Ox/js/HTML.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.parseEmailAddresses Takes HTML and turns e-mail addresses into links @*/ diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index e7e6ada8..fd392c67 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.doc Generates documentation for annotated JavaScript (file, callback) -> undefined diff --git a/source/Ox/js/Math.js b/source/Ox/js/Math.js index 77571e30..186bd287 100644 --- a/source/Ox/js/Math.js +++ b/source/Ox/js/Math.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.asinh Inverse hyperbolic sine Strangely missing from Math. diff --git a/source/Ox/js/Object.js b/source/Ox/js/Object.js index bf32b7f9..155c1d5a 100644 --- a/source/Ox/js/Object.js +++ b/source/Ox/js/Object.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.extend Extends an object with one or more other objects > Ox.extend({a: 1, b: 1, c: 1}, {b: 2, c: 2}, {c: 3}) diff --git a/source/Ox/js/Request.js b/source/Ox/js/Request.js index 0e4c6697..6d50793f 100644 --- a/source/Ox/js/Request.js +++ b/source/Ox/js/Request.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.get Get a remote file # fixme: remote? same-origin-policy? jsonp? @@ -54,7 +56,7 @@ Ox.loadFile = (function() { return function (file, callback) { var element, request, - type = file.split('.').pop(); + type = file.split('.').pop(), isImage = type != 'css' && type != 'js'; if (!cache[file]) { if (isImage) { diff --git a/source/Ox/js/String.js b/source/Ox/js/String.js index 0efc270f..77c52127 100644 --- a/source/Ox/js/String.js +++ b/source/Ox/js/String.js @@ -1,3 +1,5 @@ +'use strict'; + Ox.basename = function(str) { /* fixme: deprecate diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index ae0d6e6b..28cdd39d 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -1,3 +1,5 @@ +'use strict'; + /*@ Ox.isArguments Tests if a value is an arguments "array" (value) -> True if the value is an arguments "array"