Skip to content
Snippets Groups Projects
  1. Mar 24, 2017
    • Alexandre Bonneau's avatar
      Fix issue #415 Support undo and redo actions · f69f3cc5
      Alexandre Bonneau authored
      
      Add a new `historySize` option that allows to set how many undo states each AutoNumeric object should keep in memory.
      Always use the `_setRawValue()` function to set the `rawValue` ; directly setting `this.settings.rawValue = 'foo'` is not allowed anymore.
      Modify the `set()` function signature by allowing to pass a third parameter to prevent saving the changed state to the history table.
      Update the `keyName` enumeration with the capitalized letters.
      Upgrade the `getElementSelection()` helper function in order to support contenteditable-enabled elements and hidden inputs.
      Add an `arrayTrim()` helper function that trim the start of an array.
      Create undo/redo end-to-end tests.
      
      Signed-off-by: default avatarAlexandre Bonneau <alexandre.bonneau@linuxfr.eu>
  2. Mar 19, 2017
  3. Mar 18, 2017
  4. Mar 17, 2017
  5. Mar 16, 2017
    • Alexandre Bonneau's avatar
      Add unit tests for the new `global.*` features · a5fc577e
      Alexandre Bonneau authored
      
      Fix issue #412 Using `set('')` does not respect the `emptyInputBehavior` option when it's set to `'always'`
      Add a `createLocalList` option which allow to control whether a local list of AutoNumeric objects should be saved on initializations.
      Add a `global.update()` function to update the settings on a local list.
      Modify the `global.clear()` function to be able to force a `clear` call.
      Add a `global.nuke()` function to `remove` then delete the local list DOM element from the DOM.
      Update the `global.clear()` function signature with the `clear()` one.
      Fix the `global.addObject()` function that did not update the local list of the added element.
      Fix the `global.addObject()` function so that if it add an AutoNumeric object that already has a local list with multiple other AutoNumeric objects, it merges the list.
      Fix the `global.removeObject()` function to make it update all the objects local list. Also add special behaviors when an AutoNumeric element removes itself or another one.
      Fix the `global.empty()` function to match the `removeObject` behavior.
      Simplify the `init()` method by removing a negation in one of its parameter.
      Fix the `init()` method initialization process by preventing creating a local list, then removing it immediately if the user wanted a detached element. Now, the local list is just not created (Using the `createLocalList` option set to `false`).
      Add an end-to-end test for the `remove()` method.
      Add a `_hasLocalList()` method that tests if the AutoNumeric element has a local list and that it has at least one element in it (itself usually).
      
      Signed-off-by: default avatarAlexandre Bonneau <alexandre.bonneau@linuxfr.eu>
  6. Mar 14, 2017
  7. Mar 10, 2017
  8. Mar 09, 2017
  9. Mar 08, 2017
  10. Mar 07, 2017
  11. Mar 06, 2017
  12. Mar 03, 2017
  13. Mar 02, 2017
  14. Mar 01, 2017
Loading