Skip to content

Commit

Permalink
add versions
Browse files Browse the repository at this point in the history
  • Loading branch information
qstufie committed Feb 29, 2016
1 parent 7d53e88 commit ed59338
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.3
4 changes: 3 additions & 1 deletion dist/simple.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ function _c(obj) {
*/
var app;
app = function (name, cnf) {
this.version = '1.02';
// current version from build
this.version = '1.0.3';
this.aName = name;
// defaults
name = _s(name).hashCode();
Expand Down Expand Up @@ -806,5 +807,6 @@ w.SimpleApp = function (name, config) {
if (typeof exports != 'undefined') {
exports.SimpleApp = w.SimpleApp;
}

})
(this);
2 changes: 1 addition & 1 deletion dist/simple.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(0===this.length)return a
for(t=0,i=this.length;i>t;t++)e=this.charCodeAt(t),a=(a<<5)-a+e,a|=0
return Math.abs(a)}
var l
l=function(t,l){this.version="1.02",this.aName=t,t=n(t).hashCode()
l=function(t,l){this.version="1.0.3",this.aName=t,t=n(t).hashCode()
var o="_sj_"+t
if(this.name=t,r[o]=this,this.localStorageKey=o+"_data",this.container=null,this.state={},this.pState={},this.cnf={localStorageWrite:!0,localStorageRead:!0,partialRender:!0},"object"==typeof l)for(var c in l)this.cnf[c]=l[c]
this.callbacks={sta:{},fin:{},wrd:{},drd:{},rde:{},ped:{},siu:{}},this.getCallback=function(t,e){return e?"function"==typeof this.callbacks[t][e]?this.callbacks[t][e]:void 0:this.callbacks[t]},this.on=function(t,e,i){"object"==typeof this.callbacks[t]&&"function"==typeof i&&(this.callbacks[t][e]=i)},this._f=function(t){var e=this.getCallback(t)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"info": "echo 'Simple JS for Apps, supports defer/async and uses native JS with no external libs'",
"lint": "echo '=> JS Linkting' && jshint src/*.js",
"pretest": "npm run lint -s",
"build": "echo '=> Build All' && npm run build:dev && uglifyjs -c drop_console=true dist/simple.dev.js -o dist/simple.js && minify dist/simple.js && rm dist/simple.js",
"build": "echo '=> Build All' && npm run build:dev && uglifyjs -c drop_console=true dist/simple.dev.js -o dist/simple.js && minify dist/simple.js && rm dist/simple.js && sed -i '' -- \"s/{version}/$(cat VERSION)/g\" dist/*",
"build:dev": "echo '=> Build Dev' && cat src/start.inc src/app.js src/end.inc > dist/simple.dev.js",
"watch": "watch 'npm run build' src/",
"server": "http-server ./",
Expand Down
5 changes: 3 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ function _c(obj) {
*/
var app;
app = function (name, cnf) {
this.version = '1.02';
// current version from build
this.version = '{version}';
this.aName = name;
// defaults
name = _s(name).hashCode();
Expand Down Expand Up @@ -804,4 +805,4 @@ w.SimpleApp = function (name, config) {
// nodejs compatible
if (typeof exports != 'undefined') {
exports.SimpleApp = w.SimpleApp;
}
}

0 comments on commit ed59338

Please sign in to comment.