Skip to content
Snippets Groups Projects
Select Git revision
  • 562428d999b2cad04dd51aac542bb5f95e8ff14e
  • master default protected
  • chrome-manifest-v3
  • feature/migrate-cordova-13
  • feat/improve-network-scan
  • feat/force-migration-check
  • develop
  • feature/encrypted_comment
  • feature/android_api_19
  • gitlab_migration_1
  • rml8
  • v1.7.15-rc1
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.7.0-rc2
  • v1.7.0-rc1
  • v1.6.12
  • v1.6.11
31 results

ionic.bundle.js

Blame
  • ionic.bundle.js 1.86 MiB
    /*!
     * ionic.bundle.js is a concatenation of:
     * ionic.js, angular.js, angular-animate.js,
     * angular-sanitize.js, angular-ui-router.js,
     * and ionic-angular.js
     */
    
    /*!
     * Copyright 2014 Drifty Co.
     * http://drifty.com/
     *
     * Ionic, v1.0.1
     * A powerful HTML5 mobile app framework.
     * http://ionicframework.com/
     *
     * By @maxlynch, @benjsperry, @adamdbradley <3
     *
     * Licensed under the MIT license. Please see LICENSE for more information.
     *
     */
    
    (function() {
    
    // Create global ionic obj and its namespaces
    // build processes may have already created an ionic obj
    window.ionic = window.ionic || {};
    window.ionic.views = {};
    window.ionic.version = '1.0.1';
    
    (function (ionic) {
    
      ionic.DelegateService = function(methodNames) {
    
        if (methodNames.indexOf('$getByHandle') > -1) {
          throw new Error("Method '$getByHandle' is implicitly added to each delegate service. Do not list it as a method.");
        }
    
        function trueFn() { return true; }
    
        return ['$log', function($log) {
    
          /*
           * Creates a new object that will have all the methodNames given,
           * and call them on the given the controller instance matching given
           * handle.
           * The reason we don't just let $getByHandle return the controller instance
           * itself is that the controller instance might not exist yet.
           *
           * We want people to be able to do
           * `var instance = $ionicScrollDelegate.$getByHandle('foo')` on controller
           * instantiation, but on controller instantiation a child directive
           * may not have been compiled yet!
           *
           * So this is our way of solving this problem: we create an object
           * that will only try to fetch the controller with given handle
           * once the methods are actually called.
           */
          function DelegateInstance(instances, handle) {
            this._instances = instances;
            this.handle = handle;
          }
          methodNames.forEach(function(methodName) {
            DelegateInstance.prototype[methodName] = instanceMethodCaller(methodName);
          });
    
    
          /**
           * The delegate service (eg $ionicNavBarDelegate) is just an instance
           * with a non-defined handle, a couple extra methods for registering
           * and narrowing down to a specific handle.