Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Commit

Permalink
Update Ionic lib to 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVig committed Nov 3, 2016
1 parent c009d42 commit b7c22af
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 104 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,5 +1,5 @@
{
"name": "GoCo Student",
"name": "goco-student",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#latest"
Expand Down
4 changes: 2 additions & 2 deletions ionic.config.json
@@ -1,5 +1,5 @@
{
"name": "GoCo Student",
"name": "goco-student",
"app_id": "",
"gulpStartupTasks": [
"sass",
Expand All @@ -16,4 +16,4 @@
"version": "12.41.296.5"
}
]
}
}
10 changes: 5 additions & 5 deletions www/lib/ionic/.bower.json
@@ -1,7 +1,7 @@
{
"name": "ionic",
"version": "1.3.1",
"codename": "el salvador",
"version": "1.3.2",
"codename": "france",
"homepage": "https://github.com/driftyco/ionic",
"authors": [
"Max Lynch <max@drifty.com>",
Expand Down Expand Up @@ -34,11 +34,11 @@
"angular-sanitize": "1.5.3",
"angular-ui-router": "0.2.13"
},
"_release": "1.3.1",
"_release": "1.3.2",
"_resolution": {
"type": "version",
"tag": "v1.3.1",
"commit": "deade5ac92dc25febaa60b05336decd62f545bb5"
"tag": "v1.3.2",
"commit": "6c52bb340b72f464d2f73991cce48d3e93c666ae"
},
"_source": "git://github.com/driftyco/ionic-bower.git",
"_target": "*",
Expand Down
4 changes: 2 additions & 2 deletions www/lib/ionic/bower.json
@@ -1,7 +1,7 @@
{
"name": "ionic",
"version": "1.3.1",
"codename": "el salvador",
"version": "1.3.2",
"codename": "france",
"homepage": "https://github.com/driftyco/ionic",
"authors": [
"Max Lynch <max@drifty.com>",
Expand Down
2 changes: 1 addition & 1 deletion www/lib/ionic/css/ionic.css
Expand Up @@ -3,7 +3,7 @@
* Copyright 2015 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.3.1
* Ionic, v1.3.2
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
Expand Down
2 changes: 1 addition & 1 deletion www/lib/ionic/css/ionic.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 35 additions & 26 deletions www/lib/ionic/js/ionic-angular.js
Expand Up @@ -2,7 +2,7 @@
* Copyright 2015 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.3.1
* Ionic, v1.3.2
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
Expand Down Expand Up @@ -2204,7 +2204,8 @@ var LOADING_TPL =
* .controller('LoadingCtrl', function($scope, $ionicLoading) {
* $scope.show = function() {
* $ionicLoading.show({
* template: 'Loading...'
* template: 'Loading...',
* duration: 3000
* }).then(function(){
* console.log("The loading indicator is now displayed");
* });
Expand Down Expand Up @@ -2659,7 +2660,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
}

return $timeout(function() {
$ionicBody.removeClass(self.viewType + '-open');
if (!modalStack.length) {
$ionicBody.removeClass(self.viewType + '-open');
}
self.el.classList.add('hide');
}, self.hideDelay || 320);
},
Expand Down Expand Up @@ -3014,8 +3017,8 @@ IonicModule
* @description
* Add Cordova event listeners, such as `pause`, `resume`, `volumedownbutton`, `batterylow`,
* `offline`, etc. More information about available event types can be found in
* [Cordova's event documentation](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events).
* @param {string} type Cordova [event type](https://cordova.apache.org/docs/en/edge/cordova_events_events.md.html#Events).
* [Cordova's event documentation](https://cordova.apache.org/docs/en/latest/cordova/events/events.html).
* @param {string} type Cordova [event type](https://cordova.apache.org/docs/en/latest/cordova/events/events.html).
* @param {function} callback Called when the Cordova event is fired.
* @returns {function} Returns a deregistration function to remove the event listener.
*/
Expand Down Expand Up @@ -3126,7 +3129,7 @@ IonicModule
* $scope.$on('$destroy', function() {
* $scope.popover.remove();
* });
* // Execute action on hide popover
* // Execute action on hidden popover
* $scope.$on('popover.hidden', function() {
* // Execute action
* });
Expand Down Expand Up @@ -7769,20 +7772,15 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io

self.content.setTranslateX(amount);

if (amount >= 0) {
leftShowing = true;
rightShowing = false;
leftShowing = amount > 0;
rightShowing = amount < 0;

if (amount > 0) {
// Push the z-index of the right menu down
self.right && self.right.pushDown && self.right.pushDown();
// Bring the z-index of the left menu up
self.left && self.left.bringUp && self.left.bringUp();
}
if (amount > 0) {
// Push the z-index of the right menu down
self.right && self.right.pushDown && self.right.pushDown();
// Bring the z-index of the left menu up
self.left && self.left.bringUp && self.left.bringUp();
} else {
rightShowing = true;
leftShowing = false;

// Bring the z-index of the right menu up
self.right && self.right.bringUp && self.right.bringUp();
// Push the z-index of the left menu down
Expand Down Expand Up @@ -11068,9 +11066,9 @@ IonicModule.directive('ionOptionButton', [function() {
return function($scope, $element, $attr, itemCtrl) {
if (!itemCtrl.optionsContainer) {
itemCtrl.optionsContainer = jqLite(ITEM_TPL_OPTION_BUTTONS);
itemCtrl.$element.append(itemCtrl.optionsContainer);
itemCtrl.$element.prepend(itemCtrl.optionsContainer);
}
itemCtrl.optionsContainer.append($element);
itemCtrl.optionsContainer.prepend($element);

itemCtrl.$element.addClass('item-right-editable');

Expand Down Expand Up @@ -11780,7 +11778,6 @@ IonicModule
* @param {boolean=} no-tap-scroll By default, the navbar will scroll the content
* to the top when tapped. Set no-tap-scroll to true to disable this behavior.
*
* </table><br/>
*/
IonicModule
.directive('ionNavBar', function() {
Expand Down Expand Up @@ -12499,7 +12496,9 @@ IonicModule

$scope.$on('scroll.refreshComplete', function() {
$scope.$evalAsync(function() {
scrollCtrl.scrollView.finishPullToRefresh();
if(scrollCtrl.scrollView){
scrollCtrl.scrollView.finishPullToRefresh();
}
});
});
}
Expand Down Expand Up @@ -12541,6 +12540,7 @@ IonicModule
* @param {boolean=} paging Whether to scroll with paging.
* @param {expression=} on-refresh Called on pull-to-refresh, triggered by an {@link ionic.directive:ionRefresher}.
* @param {expression=} on-scroll Called whenever the user scrolls.
* @param {expression=} on-scroll-complete Called whenever the scrolling paging is completed.
* @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default true.
* @param {boolean=} scrollbar-y Whether to show the vertical scrollbar. Default true.
* @param {boolean=} zooming Whether to support pinch-to-zoom
Expand Down Expand Up @@ -12576,6 +12576,7 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
direction: '@',
paging: '@',
$onScroll: '&onScroll',
$onScrollComplete: '&onScrollComplete',
scroll: '@',
scrollbarX: '@',
scrollbarY: '@',
Expand Down Expand Up @@ -12617,18 +12618,26 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
maxZoom: $scope.$eval($scope.maxZoom) || 3,
minZoom: $scope.$eval($scope.minZoom) || 0.5,
preventDefault: true,
nativeScrolling: nativeScrolling
nativeScrolling: nativeScrolling,
scrollingComplete: onScrollComplete
};

if (isPaging) {
scrollViewOptions.speedMultiplier = 0.8;
scrollViewOptions.bouncing = false;
}

$controller('$ionicScroll', {
var scrollCtrl = $controller('$ionicScroll', {
$scope: $scope,
scrollViewOptions: scrollViewOptions
});

function onScrollComplete() {
$scope.$onScrollComplete && $scope.$onScrollComplete({
scrollTop: scrollCtrl.scrollView.__scrollTop,
scrollLeft: scrollCtrl.scrollView.__scrollLeft
});
}
}
}
};
Expand Down Expand Up @@ -13332,8 +13341,8 @@ function($animate, $timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $i
*
* $scope.$on("$ionicSlides.slideChangeEnd", function(event, data){
* // note: the indexes are 0-based
* $scope.activeIndex = data.activeIndex;
* $scope.previousIndex = data.previousIndex;
* $scope.activeIndex = data.slider.activeIndex;
* $scope.previousIndex = data.slider.previousIndex;
* });
*
* ```
Expand Down
8 changes: 4 additions & 4 deletions www/lib/ionic/js/ionic-angular.min.js

Large diffs are not rendered by default.

0 comments on commit b7c22af

Please sign in to comment.