From 054e183e30eb5bc60f4b5f1e7681a9d05f15693c Mon Sep 17 00:00:00 2001 From: Kabir Shah Date: Thu, 16 Feb 2017 17:10:21 -0800 Subject: [PATCH] v0.4.3 --- README.md | 8 +++----- dist/moon.js | 4 ++-- dist/moon.min.js | 4 ++-- package.json | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 089e91ab..f7444c58 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,9 @@

A minimal, blazing fast UI library.

-Build Status - -Code Coverage - -License + Build Status + Code Coverage + License

### What is it? diff --git a/dist/moon.js b/dist/moon.js index 82cc5197..0b2e36ff 100644 --- a/dist/moon.js +++ b/dist/moon.js @@ -1,5 +1,5 @@ /* -* Moon v0.4.2 +* Moon v0.4.3 * Copyright 2016-2017, Kabir Shah * https://github.com/KingPixil/moon/ * Free to use under the MIT license. @@ -1077,7 +1077,7 @@ /** * Version of Moon */ - Moon.version = '0.4.2'; + Moon.version = '0.4.3'; /** * Moon Utilities diff --git a/dist/moon.min.js b/dist/moon.min.js index 5605a6a1..9745f97b 100644 --- a/dist/moon.min.js +++ b/dist/moon.min.js @@ -1,8 +1,8 @@ /* -* Moon v0.4.2 +* Moon v0.4.3 * Copyright 2016-2017, Kabir Shah * https://github.com/KingPixil/moon/ * Free to use under the MIT license. * https://kingpixil.github.io/license */ -!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.Moon=e()}(this,function(){"use strict";function t(t){this.$opts=t||{},this.$id=o++,this.$name=this.$opts.name||"root",this.$parent=this.$opts.parent||null,this.$data=this.$opts.data||{},this.$render=this.$opts.render||C,this.$hooks=this.$opts.hooks||{},this.$methods=this.$opts.methods||{},this.$events={},this.$dom={},this.$destroyed=!1,this.$initialRender=!0,this.$queued=!1,this.init()}var e={},n={},r={},i={stop:"event.stopPropagation();",prevent:"event.preventDefault();",ctrl:"if(!event.ctrlKey) {return;};",shift:"if(!event.shiftKey) {return;};",alt:"if(!event.altKey) {return;};",enter:"if(event.keyCode !== 13) {return;};"},o=0,s=function(e){t.config.silent||console.log(e)},u=function(t){console.error("[Moon] ERR: "+t)},a=function(t){for(var e={},n=t.attributes,r=n.length;r--;)e[n[r].name]=n[r].value;return t.__moon__attrs__=e,e},c=function(){return{shouldRender:!0,component:!1,eventListeners:{}}},p=function(t){var e=/\n/g,n=/"/g;return t.replace(e,"\\n").replace(n,'\\"')},f=function(t,e){var n=/{{([A-Za-z0-9_]+)([A-Za-z0-9_.()\[\]]+)?}}/gi,r=t;return t.replace(n,function(t,n,i){i||(i=""),r=e?r.replace(t,'" + instance.get("'+n+'")'+i+' + "'):r.replace(t,'instance.get("'+n+'")'+i)}),r},l=function(t){var e={};if(!t)return e;var n="default";e[n]=[];for(var r=0;r",t.current);return r===-1?(t.tokens.push({type:"comment",value:e.slice(t.current)}),void(t.current=n)):(t.tokens.push({type:"comment",value:e.slice(t.current,r)}),void(t.current=r+3))},E=function(t){var e=t.input,n=(e.length,"/"===e.charAt(t.current+1));t.tokens.push({type:"tagStart",close:n}),t.current+=n?2:1;var r=S(t);T(t);var i="/"===e.charAt(t.current);t.tokens.push({type:"tagEnd",close:!1}),t.current+=i?2:1,i&&(t.tokens.push({type:"tagStart",close:!0}),t.tokens.push({type:"tag",value:r}),t.tokens.push({type:"attribute",value:{}}),t.tokens.push({type:"tagEnd",close:!1}))},S=function(t){for(var e=t.input,n=e.length,r=t.current;r"!==i&&" "!==i)break;r++}for(var o=r;o"===i||" "===i)break;o++}var s=e.slice(r,o);return t.tokens.push({type:"tag",value:s}),t.current=o,s},T=function(t){for(var e=t.input,n=e.length,r=t.current,i={},o="",s=/([^=\s]*)(=?)("[^"]*"|[^\s"]*)/gi;r"===u||"/"===u&&">"===a)break;o+=u,r++}o.replace(s,function(t,e,n,r){var o=r[0],s=r[r.length-1];("'"===o&&"'"===s||'"'===o&&'"'===s)&&(r=r.slice(1,-1)),r||(r=e),e&&r&&(i[e]=r)}),t.current=r,t.tokens.push({type:"attribute",value:i})},j=function(t){for(var e={type:"ROOT",children:[]},n={current:0,tokens:t};n.current",t.current);return r===-1?(t.tokens.push({type:"comment",value:e.slice(t.current)}),void(t.current=n)):(t.tokens.push({type:"comment",value:e.slice(t.current,r)}),void(t.current=r+3))},E=function(t){var e=t.input,n=(e.length,"/"===e.charAt(t.current+1));t.tokens.push({type:"tagStart",close:n}),t.current+=n?2:1;var r=S(t);T(t);var i="/"===e.charAt(t.current);t.tokens.push({type:"tagEnd",close:!1}),t.current+=i?2:1,i&&(t.tokens.push({type:"tagStart",close:!0}),t.tokens.push({type:"tag",value:r}),t.tokens.push({type:"attribute",value:{}}),t.tokens.push({type:"tagEnd",close:!1}))},S=function(t){for(var e=t.input,n=e.length,r=t.current;r"!==i&&" "!==i)break;r++}for(var o=r;o"===i||" "===i)break;o++}var s=e.slice(r,o);return t.tokens.push({type:"tag",value:s}),t.current=o,s},T=function(t){for(var e=t.input,n=e.length,r=t.current,i={},o="",s=/([^=\s]*)(=?)("[^"]*"|[^\s"]*)/gi;r"===u||"/"===u&&">"===a)break;o+=u,r++}o.replace(s,function(t,e,n,r){var o=r[0],s=r[r.length-1];("'"===o&&"'"===s||'"'===o&&'"'===s)&&(r=r.slice(1,-1)),r||(r=e),e&&r&&(i[e]=r)}),t.current=r,t.tokens.push({type:"attribute",value:i})},j=function(t){for(var e={type:"ROOT",children:[]},n={current:0,tokens:t};n.current