From ec20a255144f2f1618fd91eddb7defd5b37952da Mon Sep 17 00:00:00 2001 From: ElliotNB Date: Thu, 9 Jul 2020 13:38:38 -0700 Subject: [PATCH] Version increment to 0.1.5 --- README.md | 2 +- nimbly.js | 2 +- nimbly.min.js | 2 +- package.json | 2 +- test/suite/test.js | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4a2c7b9..8be8d0f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ https://github.com/elliotnb/nimbly -Version 0.1.4 +Version 0.1.5 Licensed under the MIT license: diff --git a/nimbly.js b/nimbly.js index 568e251..3826779 100644 --- a/nimbly.js +++ b/nimbly.js @@ -1,6 +1,6 @@ /* * Nimbly - * Version 0.1.4 + * Version 0.1.5 * https://github.com/elliotnb/nimbly * * Licensed under the MIT license: diff --git a/nimbly.min.js b/nimbly.min.js index 2fed64b..f2dbce4 100644 --- a/nimbly.min.js +++ b/nimbly.min.js @@ -1 +1 @@ -var Nimbly=function(u,o,e,t,r,n,h){if(void 0===u)throw new Error("Nimbly requires jQuery 1.9+.");if(void 0===o)throw new Error("Nimbly requires ObservableSlim 0.1.0+.");var l=0,i=[],s=[],d=function(e){-1===i.indexOf(e.instanceId)&&(s.push(e.instanceId),i.push(e.refresh));var t=i.length;setTimeout(function(){if(t==i.length){for(var e=i.length;e--;)i.pop()();s.length=0}},10)},m=[];new e(function(e){for(var t=m.length;t--;)null!==m[t].jqDom&&h.body.contains(m[t].jqDom[0])&&(m[t]._afterInDocument(),m.splice(t,1))}).observe(h,{attributes:!1,childList:!0,characterData:!1,subtree:!0});var c=function(e){var t=h.getElementById(e);if(!t)throw new Error("Nimbly::_getTemplate() could not find the template with element ID: '"+e+"'.");return t.innerHTML.trim()},a=function(e){return"function"==typeof e.render&&"function"==typeof e.init&&"function"==typeof e.isReady},f=function(e,t,n,i){var a=this;if(void 0===n)n={};if(void 0===i)i={};var r={};if(u.extend(!0,r,t.data,n),u.extend(!0,n,r),this.options=u.extend(!0,{},t,i,{data:n}),this._data=n,this.className=e,this._baseClassInstance=l++,this.jqDom=null,this.domNode=null,this.initialized=!1,this.initList=this.options.initList||[],this._pendingInit=!1,this._pendingFetchCount=0,this._initRendered=!1,this._delayRefresh=!1,this._renderRunning=!1,this._registeredDuringRender=!1,this._insertedIntoParent=!1,this._renderjQuery=this.options.renderjQuery||!1,this._cleanUpChildren=null,this.childComponents={default:[]},this._tagName=null,this._refreshList=[],this.templates={},this.options.templates instanceof Array){if(0==this.options.templates.length)throw new Error("Nimbly::constructor cannot continue -- no templates provided.");for(var s=0;s { + it('Simulated _afterInDocument handler.', (done) => { + helloWorld._afterInDocument(); setTimeout(() => { expect(helloWorld.data.in_document).to.equal(true); done();