diff --git a/archive/v0.1.22/change-log.html b/archive/v0.1.22/change-log.html index 61e94313..9ff1c577 100644 --- a/archive/v0.1.22/change-log.html +++ b/archive/v0.1.22/change-log.html @@ -90,7 +90,7 @@
  • gracefully degrade on IE exceptions when setting invalid values
  • fixes for Typescript definition file
  • fixed bug in keys algorithm when mixing keyed and unkeyed elements #246
  • -
  • added promise exception monitor and reverted promise exception handling semantics to v0.1.19 semantics (see [mithril.deferred.html#unchecked-error-handling]
  • +
  • added promise exception monitor and reverted promise exception handling semantics to v0.1.19 semantics (see docs)
  • fixed redraw scheduling bug in old version of IE
  • fixed incorrect diff when document is root, and html element is omitted
  • fixed querystring clobbering in links w/ config:m.route #261
  • diff --git a/archive/v0.1.22/mithril.computation.html b/archive/v0.1.22/mithril.computation.html index a0221d7e..a174de87 100644 --- a/archive/v0.1.22/mithril.computation.html +++ b/archive/v0.1.22/mithril.computation.html @@ -77,10 +77,12 @@

    m.startComputation / m.endComputation


    -

    How auto-redrawing-works -Integrating multiple execution threads -Integrating to legacy code -Signature

    +

    Typically, m.startComputation / m.endComputation don't need to be called from application space. These methods are only intended to be used by people who are writing libraries that do things asynchronously, or when calling vanilla javascript asynchronous functions from template config functions.

    If you need to do custom asynchronous calls without using Mithril's API, and find that your views are not redrawing, or that you're being forced to call m.redraw manually, you should consider using m.startComputation / m.endComputation so that Mithril can intelligently auto-redraw once your custom code finishes running.

    diff --git a/archive/v0.1.22/mithril.deferred.html b/archive/v0.1.22/mithril.deferred.html index b48578b7..dc53b03e 100644 --- a/archive/v0.1.22/mithril.deferred.html +++ b/archive/v0.1.22/mithril.deferred.html @@ -77,12 +77,14 @@

    m.deferred


    -

    Usage -Retrieving a value via the getter-setter API -Integrating to the Mithril redrawing system -Differences from Promises/A+ -The exception monitor -Signature

    +

    This is a low-level method in Mithril. It's a modified version of the Thenable API.

    A deferred is an asynchrony monad. It exposes a promise property which can bind callbacks to build a computation tree.

    diff --git a/archive/v0.1.22/mithril.deps.html b/archive/v0.1.22/mithril.deps.html index f59fc6f9..a9ecb946 100644 --- a/archive/v0.1.22/mithril.deps.html +++ b/archive/v0.1.22/mithril.deps.html @@ -77,8 +77,10 @@

    m.deps


    -

    Usage -Signature

    +

    This function overwrites the reference to the window object that is used internally by Mithril. It is useful for injecting a mock window dependency for the purposes of testing and for running Mithril in non-browser environments. The mock object used by Mithril for its own test suite can be found in the development repo.

    By default, Mithril uses window itself as the dependency. Note that Mithril only uses the mock object for browser APIs such as the DOM API and requestAnimationFrame, but relies on the environment for ECMAScript features like Object.keys.

    diff --git a/archive/v0.1.22/mithril.html b/archive/v0.1.22/mithril.html index 01a47993..90d77f7a 100644 --- a/archive/v0.1.22/mithril.html +++ b/archive/v0.1.22/mithril.html @@ -77,16 +77,18 @@

    m


    -

    Usage -Binding to data -Using HTML entities -Accessing the real DOM element -Persisting config data -Destructors -SVG -Dealing with focus -Dealing with sorting and deleting in lists -Signature

    +

    This is a convenience method to compose virtual elements that can be rendered via m.render().

    You are encouraged to use CSS selectors to define virtual elements. See "Signature" section for details.

    diff --git a/archive/v0.1.22/mithril.min.zip b/archive/v0.1.22/mithril.min.zip index c14a8352..433baebd 100644 Binary files a/archive/v0.1.22/mithril.min.zip and b/archive/v0.1.22/mithril.min.zip differ diff --git a/archive/v0.1.22/mithril.module.html b/archive/v0.1.22/mithril.module.html index 8b782300..562e8705 100644 --- a/archive/v0.1.22/mithril.module.html +++ b/archive/v0.1.22/mithril.module.html @@ -77,9 +77,11 @@

    m.module


    -

    Usage -Unloading modules -Signature

    +

    A module is an Object with two keys: controller and view. Each of those should point to a Javascript function.

    When using m.module, Mithril instantiates controllers as if they were class constructors. However, controllers may return objects if you want to use that Javascript feature to have more fine-grained control over a controller's lifecycle.

    diff --git a/archive/v0.1.22/mithril.prop.html b/archive/v0.1.22/mithril.prop.html index 5137c194..892a8814 100644 --- a/archive/v0.1.22/mithril.prop.html +++ b/archive/v0.1.22/mithril.prop.html @@ -77,10 +77,12 @@

    m.prop


    -

    Usage -Third-party promise library support -Serializing getter-setters -Signature

    +

    This is a getter-setter factory utility. It returns a function that stores information.

    Note that modifying the values of m.prop getter-setters does not trigger redrawing. Instead, Mithril's redrawing system relies on m.startComputation and m.endComputation. These functions are internally called by Mithril when you initialize a module via m.module or m.route, and when you trigger event handlers that were created within templates with m().

    diff --git a/archive/v0.1.22/mithril.redraw.html b/archive/v0.1.22/mithril.redraw.html index e9d5996a..ec0037a6 100644 --- a/archive/v0.1.22/mithril.redraw.html +++ b/archive/v0.1.22/mithril.redraw.html @@ -77,10 +77,12 @@

    m.redraw


    -

    Changing redraw strategy -Preventing redraws on events -Forcing redraw -Signature

    +

    Redraws the view for the currently active module. Use m.module() to activate a module.

    This method is called internally by Mithril's auto-redrawing system. Usually you don't need to call it manually unless you are doing recurring asynchronous operations (i.e. using setInterval) or if you want to decouple slow running background requests from the rendering context (see the background option in m.request.

    diff --git a/archive/v0.1.22/mithril.render.html b/archive/v0.1.22/mithril.render.html index c3528418..5118d5a8 100644 --- a/archive/v0.1.22/mithril.render.html +++ b/archive/v0.1.22/mithril.render.html @@ -77,9 +77,11 @@

    m.render


    -

    Usage -Subtree directives -Signature

    +

    This method generates a DOM tree inside of a given HTML element.

    If the method is run more than once with the same root element, it diffs the new tree against the existing one and intelligently modifies only the portions that have changed.

    diff --git a/archive/v0.1.22/mithril.request.html b/archive/v0.1.22/mithril.request.html index d05f4b08..d8cbeb4a 100644 --- a/archive/v0.1.22/mithril.request.html +++ b/archive/v0.1.22/mithril.request.html @@ -77,20 +77,22 @@

    m.request


    -

    Basic usage -Processing-web-service-data -Bind redirection code -Binding errors -Queuing operations -Casting the Response Data to a Class -Unwrapping Response Data -Using Different Data Transfer Formats -Using variable data formats -Extracting Metadata from the Response -Custom request rejections -Configuring the underlying XMLHttpRequest -Aborting a request -Signature

    +

    This is a high-level utility for working with web services, which allows writing asynchronous code relatively procedurally.

    By default, it assumes server responses are in JSON format and optionally instantiates a class with the response data.

    diff --git a/archive/v0.1.22/mithril.route.html b/archive/v0.1.22/mithril.route.html index 520c1211..01028a8e 100644 --- a/archive/v0.1.22/mithril.route.html +++ b/archive/v0.1.22/mithril.route.html @@ -77,13 +77,15 @@

    m.route


    -

    Defining routes -Variadic routes -Routes with querystrings -Running clean up code on route change -Redirecting -Reading the currently active route -Mode abstraction

    +

    Routing is a system that allows creating Single-Page-Applications (SPA), i.e. applications that can go from a page to another without causing a full browser refresh.

    It enables seamless navigability while preserving the ability to bookmark each page individually, and the ability to navigate the application via the browser's history mechanism.

    diff --git a/bubbles.html b/bubbles.html new file mode 100644 index 00000000..64eec728 --- /dev/null +++ b/bubbles.html @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/chain.html b/chain.html new file mode 100644 index 00000000..1cd5a7e7 --- /dev/null +++ b/chain.html @@ -0,0 +1,98 @@ + + + + Don't break the chain + + + + + + \ No newline at end of file diff --git a/clientaccess.html b/clientaccess.html new file mode 100644 index 00000000..06297f29 --- /dev/null +++ b/clientaccess.html @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/docs/change-log.md b/docs/change-log.md index ba4e5c76..78217790 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -15,7 +15,7 @@ - gracefully degrade on IE exceptions when setting invalid values - fixes for Typescript definition file - fixed bug in keys algorithm when mixing keyed and unkeyed elements [#246](https://github.com/lhorie/mithril.js/issues/246) -- added promise exception monitor and reverted promise exception handling semantics to v0.1.19 semantics (see [mithril.deferred.md#unchecked-error-handling] +- added promise exception monitor and reverted promise exception handling semantics to v0.1.19 semantics (see [docs](mithril.deferred.md#unchecked-error-handling)) - fixed redraw scheduling bug in old version of IE - fixed incorrect diff when document is root, and html element is omitted - fixed querystring clobbering in links w/ config:m.route [#261](https://github.com/lhorie/mithril.js/issues/261) diff --git a/docs/mithril.computation.md b/docs/mithril.computation.md index 04241a05..b625e34e 100644 --- a/docs/mithril.computation.md +++ b/docs/mithril.computation.md @@ -2,10 +2,10 @@ --- -[How auto-redrawing-works](#how-auto-redrawing-works) -[Integrating multiple execution threads](#integrating-multiple-execution-threads) -[Integrating to legacy code](#integrating-to-legacy-code) -[Signature](#signature) +- [How auto-redrawing-works](#how-auto-redrawing-works) +- [Integrating multiple execution threads](#integrating-multiple-execution-threads) +- [Integrating to legacy code](#integrating-to-legacy-code) +- [Signature](#signature) --- diff --git a/docs/mithril.deferred.md b/docs/mithril.deferred.md index 81e82a71..4b90ea01 100644 --- a/docs/mithril.deferred.md +++ b/docs/mithril.deferred.md @@ -2,12 +2,12 @@ --- -[Usage](#usage) -[Retrieving a value via the getter-setter API](#retrieving-a-value-via-the-getter-setter-api) -[Integrating to the Mithril redrawing system](#integrating-to-the-mithril-redrawing-system) -[Differences from Promises/A+](#differences-from-promises-a-) -[The exception monitor](#the-exception-monitor) -[Signature](#signature) +- [Usage](#usage) +- [Retrieving a value via the getter-setter API](#retrieving-a-value-via-the-getter-setter-api) +- [Integrating to the Mithril redrawing system](#integrating-to-the-mithril-redrawing-system) +- [Differences from Promises/A+](#differences-from-promises-a-) +- [The exception monitor](#the-exception-monitor) +- [Signature](#signature) --- diff --git a/docs/mithril.deps.md b/docs/mithril.deps.md index 78ad61b6..e561270e 100644 --- a/docs/mithril.deps.md +++ b/docs/mithril.deps.md @@ -2,8 +2,8 @@ --- -[Usage](#usage) -[Signature](#signature) +- [Usage](#usage) +- [Signature](#signature) --- diff --git a/docs/mithril.md b/docs/mithril.md index fcb0f109..bb5e1fac 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -2,16 +2,16 @@ --- -[Usage](#usage) -[Binding to data](#binding-to-data) -[Using HTML entities](#using-html-entities) -[Accessing the real DOM element](#accessing-the-real-dom-element) -[Persisting config data](#persisting-config-data) -[Destructors](#destructors) -[SVG](#svg) -[Dealing with focus](#dealing-with-focus) -[Dealing with sorting and deleting in lists](#dealing-with-sorting-and-deleting-in-lists) -[Signature](#signature) +- [Usage](#usage) +- [Binding to data](#binding-to-data) +- [Using HTML entities](#using-html-entities) +- [Accessing the real DOM element](#accessing-the-real-dom-element) +- [Persisting config data](#persisting-config-data) +- [Destructors](#destructors) +- [SVG](#svg) +- [Dealing with focus](#dealing-with-focus) +- [Dealing with sorting and deleting in lists](#dealing-with-sorting-and-deleting-in-lists) +- [Signature](#signature) --- diff --git a/docs/mithril.module.md b/docs/mithril.module.md index 1fe005b3..de33d49d 100644 --- a/docs/mithril.module.md +++ b/docs/mithril.module.md @@ -2,9 +2,9 @@ --- -[Usage](#usage) -[Unloading modules](#unloading-modules) -[Signature](#signature) +- [Usage](#usage) +- [Unloading modules](#unloading-modules) +- [Signature](#signature) --- diff --git a/docs/mithril.prop.md b/docs/mithril.prop.md index 3f66c345..7123800d 100644 --- a/docs/mithril.prop.md +++ b/docs/mithril.prop.md @@ -2,10 +2,10 @@ --- -[Usage](#usage) -[Third-party promise library support](#third-party-promise-library-support) -[Serializing getter-setters](#serializing-getter-setters) -[Signature](#signature) +- [Usage](#usage) +- [Third-party promise library support](#third-party-promise-library-support) +- [Serializing getter-setters](#serializing-getter-setters) +- [Signature](#signature) --- diff --git a/docs/mithril.redraw.md b/docs/mithril.redraw.md index c87f327f..16c8f504 100644 --- a/docs/mithril.redraw.md +++ b/docs/mithril.redraw.md @@ -2,10 +2,10 @@ --- -[Changing redraw strategy](#changing-redraw-strategy) -[Preventing redraws on events](#preventing-redraws-on-events) -[Forcing redraw](#forcing-redraw) -[Signature](#signature) +- [Changing redraw strategy](#changing-redraw-strategy) +- [Preventing redraws on events](#preventing-redraws-on-events) +- [Forcing redraw](#forcing-redraw) +- [Signature](#signature) --- diff --git a/docs/mithril.render.md b/docs/mithril.render.md index c2e11752..9874ac56 100644 --- a/docs/mithril.render.md +++ b/docs/mithril.render.md @@ -2,9 +2,9 @@ --- -[Usage](#usage) -[Subtree directives](#subtree directives) -[Signature](#signature) +- [Usage](#usage) +- [Subtree directives](#subtree directives) +- [Signature](#signature) --- diff --git a/docs/mithril.request.md b/docs/mithril.request.md index 635ef047..527770a0 100644 --- a/docs/mithril.request.md +++ b/docs/mithril.request.md @@ -2,20 +2,20 @@ --- -[Basic usage](#basic-usage) -[Processing-web-service-data](#processing-web-service-data) -[Bind redirection code](#bind-redirection-code) -[Binding errors](#binding-errors) -[Queuing operations](#queuing-operations) -[Casting the Response Data to a Class](#casting-the-response-data-to-a-class) -[Unwrapping Response Data](#unwrapping-response-data) -[Using Different Data Transfer Formats](#using-different-data-transfer-formats) -[Using variable data formats](#using-variable-data-formats) -[Extracting Metadata from the Response](#extracting-metadata-from-the-response) -[Custom request rejections](#custom-request-rejections) -[Configuring the underlying XMLHttpRequest](#configuring-the-underlying-xmlhttprequest) -[Aborting a request](#aborting-a-request) -[Signature](#signature) +- [Basic usage](#basic-usage) +- [Processing-web-service-data](#processing-web-service-data) +- [Bind redirection code](#bind-redirection-code) +- [Binding errors](#binding-errors) +- [Queuing operations](#queuing-operations) +- [Casting the Response Data to a Class](#casting-the-response-data-to-a-class) +- [Unwrapping Response Data](#unwrapping-response-data) +- [Using Different Data Transfer Formats](#using-different-data-transfer-formats) +- [Using variable data formats](#using-variable-data-formats) +- [Extracting Metadata from the Response](#extracting-metadata-from-the-response) +- [Custom request rejections](#custom-request-rejections) +- [Configuring the underlying XMLHttpRequest](#configuring-the-underlying-xmlhttprequest) +- [Aborting a request](#aborting-a-request) +- [Signature](#signature) --- diff --git a/docs/mithril.route.md b/docs/mithril.route.md index 5bf61875..26a419c6 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -2,13 +2,13 @@ --- -[Defining routes](#defining-routes) -[Variadic routes](#variadic-routes) -[Routes with querystrings](#routes-with-querystrings) -[Running clean up code on route change](#running-clean-up-code-on-route-change) -[Redirecting](#redirecting) -[Reading the currently active route](#reading-the-currently-active-route) -[Mode abstraction](#mode abstraction) +- [Defining routes](#defining-routes) +- [Variadic routes](#variadic-routes) +- [Routes with querystrings](#routes-with-querystrings) +- [Running clean up code on route change](#running-clean-up-code-on-route-change) +- [Redirecting](#redirecting) +- [Reading the currently active route](#reading-the-currently-active-route) +- [Mode abstraction](#mode abstraction) --- diff --git a/document.html b/document.html new file mode 100644 index 00000000..748e41d1 --- /dev/null +++ b/document.html @@ -0,0 +1,4 @@ + + \ No newline at end of file