Skip to content

Commit

Permalink
Update version to 0.5.16
Browse files Browse the repository at this point in the history
mcfarljw committed Oct 30, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2ea94b7 commit 82bf0aa
Showing 3 changed files with 32 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/backbone-gelato.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Backbone Gelato
* Version: 0.5.15
* Date: Mon Oct 24 2016 10:18:19 GMT+0800 (CST)
* Version: 0.5.16
* Date: Sun Oct 30 2016 12:57:38 GMT+0800 (CST)
*/
html, body {
height: 100%;
32 changes: 28 additions & 4 deletions dist/backbone-gelato.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Backbone Gelato
* Version: 0.5.15
* Date: Mon Oct 24 2016 10:18:19 GMT+0800 (CST)
* Version: 0.5.16
* Date: Sun Oct 30 2016 12:57:38 GMT+0800 (CST)
*/
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -42,6 +42,28 @@ if (Backbone === undefined) {
window.Backbone = Backbone;
}

function getQueryString(name) {
var location = window.location;

var query = '';
if (location.hash.length) {
query = location.hash.substring(location.hash.indexOf('?') + 1);
} else {
query = location.search.substring(1);
}

var params = query.split('&');
for (var i = 0; i < params.length; i++) {
var pair = params[i].split('=');

if (pair[0] === name) {
return pair[1];
}
}

return null;
}

function getScreenHeight() {
return $(window).height();
}
@@ -79,6 +101,8 @@ function setCookie(name, value, days) {
document.cookie = name + '=' + value + expires + '; path=/';
}

Gelato.getQueryString = getQueryString;

Gelato.getScreenHeight = getScreenHeight;

Gelato.getScreenWidth = getScreenWidth;
@@ -89,9 +113,9 @@ Gelato.isLocalhost = isLocalhost;

Gelato.isWebsite = isWebsite;

Gelato._BUILD = 'Mon Oct 24 2016 10:18:19 GMT+0800 (CST)';
Gelato._BUILD = 'Sun Oct 30 2016 12:57:38 GMT+0800 (CST)';

Gelato._VERSION = '0.5.15';
Gelato._VERSION = '0.5.16';

var GelatoApplication = function (_Backbone$View) {
_inherits(GelatoApplication, _Backbone$View);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"email": "[email protected]",
"url": "http://www.jernung.com"
},
"version": "0.5.15",
"version": "0.5.16",
"license": "MIT",
"main": "./dist/backbone-gelato.js",
"repository": {
@@ -19,7 +19,7 @@
"test": "node ./scripts/test.js"
},
"devDependencies": {
"babel-preset-es2015": "~6.16.0",
"babel-preset-es2015": "~6.18.0",
"backbone": "~1.3.0",
"chai": "~3.5.0",
"gulp": "~3.9.0",

0 comments on commit 82bf0aa

Please sign in to comment.