From 1e4b4ea0396e9733aa5b328ca40d073335f28424 Mon Sep 17 00:00:00 2001 From: orianda Date: Thu, 5 Feb 2015 17:03:50 +0100 Subject: [PATCH] Extended initialization in order to accept also html element object --- .gitignore | 2 +- js/heartcode-canvasloader.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9bea433..90ac674 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ - +/.idea .DS_Store diff --git a/js/heartcode-canvasloader.js b/js/heartcode-canvasloader.js index 53c9b69..a053e2f 100644 --- a/js/heartcode-canvasloader.js +++ b/js/heartcode-canvasloader.js @@ -112,7 +112,7 @@ * Initialization method * @method init * @protected - * @param id {String} The id of the placeholder div, where the loader will be nested into + * @param pId {String|HTMLElement} Either an html node element or the id of the placeholder div, where the loader will be nested into * @param opt {Object} Optional parameters

* Possible values of optional parameters:
*