diff --git a/.publish b/.publish index 36264ac..134d171 160000 --- a/.publish +++ b/.publish @@ -1 +1 @@ -Subproject commit 36264ac3d7caa8d08f5ec7da0ca686df70859508 +Subproject commit 134d17104da849acd2b266cca19444254487e924 diff --git a/bower.json b/bower.json index 813f958..799796a 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "murk", "main": "./dist/murk.js", - "version": "0.6.0", + "version": "0.7.0", "homepage": "https://github.com/dhigginbotham/murk", "authors": [ "David Higginbotham " diff --git a/dist/murk.js b/dist/murk.js index 42837d0..34d5325 100644 --- a/dist/murk.js +++ b/dist/murk.js @@ -1 +1 @@ -!function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t:window[e]=t}("murk",function e(t){function r(e,t,r){return"boolean"==typeof t&&"undefined"==typeof r&&(r=t,t=r),r="undefined"!=typeof r?r:!0,"undefined"!=typeof t&&"string"==typeof e?(k.model[e]=t,k.elems.hasOwnProperty(e)&&a(k.elems[e]),this):(r?P(k.model,e):k.model=e,o(),this)}function n(e){return"undefined"!=typeof e?k.model.hasOwnProperty(e)?k.model[e]:null:k.model}function o(){var e=k.dom.length?k.dom:i();Array.prototype.forEach.call(e,a)}function s(e){e="undefined"==typeof e?document:e;var t=i(e);Array.prototype.forEach.call(t,a)}function i(e){return e="undefined"==typeof e?document:e,e.getElementsByTagName("*")}function a(e){var t,r;t=b(e),r=t(v.selectorPrefix),r&&(t(v.selectorPrefix+"-id")||t(v.selectorPrefix+"-id",v.id),t(v.selectorPrefix+"-id")==v.id&&(k.elems.hasOwnProperty(r)||(k.elems[r]=e,~k.keys.indexOf(r)||(k.keys.push(r),k.dom.push(e)),e.innerHTML&&!k.model.hasOwnProperty(r)&&(k.model[r]=e.innerHTML)),k.model.hasOwnProperty(r)&&(l(r),++k.totalCount)))}function l(e){k.subscribers.hasOwnProperty(e)||(k.subscribers[e]=Array.prototype.slice.call(v.defaultSubscribers));for(var t,r=Array.prototype.slice.call(k.subscribers[e]);t=r.shift();)t.call(k.elems[e],e)}function d(e,t){function r(e){k.subscribers.hasOwnProperty(e)||(k.subscribers[e]=Array.prototype.slice.call(v.defaultSubscribers)),k.subscribers[e].push(t)}return e instanceof Array||(e=[e]),Array.prototype.forEach.call(e,r),this}function u(e){var t,r,n=b(e);if(n&&(t=n(v.selectorPrefix+"-repeat-key"),r=n(v.selectorPrefix+"-repeat-bind"),t&&this.hasOwnProperty(t)&&(e.innerHTML!=this[t]&&m(e,this[t]),r))){var o=this.$key+"."+t;n(v.selectorPrefix)||n(v.selectorPrefix,o),a(e)}}function f(e){var t,r,n,o;if(k.model[e]instanceof Array){if("none"!=this.style.display&&(this.style.display="none"),t=k.model[e],k.repeats.hasOwnProperty(e)||(k.repeats[e]={}),n=document.createDocumentFragment(),r=Object.keys(k.repeats[e]),r.length>t.length)for(var s=t.length;st.length)for(var i=t.length;i